Excellent! Our print statement is showing up in our console! Try changing the printed
text to something else.
import board
import digitalio
import time
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
while True:
print("Hello back to you!")
led.value = True
time.sleep(1)
led.value = False
time.sleep(1)
Keep your serial console window where you can see it. Save your file. You'll see what
the serial console displays when the board reboots. Then you'll see your new change!
The
Traceback (most recent call last):
was doing before you saved your file. This is normal behavior and will happen every
time the board resets. This is really handy for troubleshooting. Let's introduce an error
so you can see how it is used.
Delete the
at the end of
e
d.value = Tru
import board
import digitalio
import time
©Adafruit Industries
from the line
True
is telling you the last thing your board
led.value = True
so that it says
le
Page 55 of 263
Need help?
Do you have a question about the ESP32-S3 and is the answer not in the manual?