Created
November 17, 2020 14:42
-
-
Save idriszmy/9daf19d7035dbf524249984c84d6cb41 to your computer and use it in GitHub Desktop.
LED berkelip pada board Cucumber ESP32-S2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Board: Cucumber ESP32-S2 | |
import time | |
import board | |
from digitalio import DigitalInOut, Direction | |
led = DigitalInOut(board.IO2) | |
led.direction = Direction.OUTPUT | |
while True: | |
led.value = True | |
time.sleep(1) | |
led.value = False | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment