]> vault307.fbx.one Git - random.git/blob - ledButton.py
different projects to learn new things
[random.git] / ledButton.py
1 from machine import Pin
2 import time
3
4 led=Pin(15,Pin.OUT)
5 button=Pin(14,Pin.IN,Pin.PULL_DOWN)
6
7 while True:
8 if button.value():
9 led.toggle()
10 time.sleep(.0)