Files
PowerBank_Python/blink.py

9 lines
158 B
Python

from machine import Pin
from time import sleep
led = Pin('LED', Pin.OUT)
print('Blinking LED Example')
while True:
led.value(not led.value())
sleep(0.5)