Use pins 22 & 23

This commit is contained in:
Jimmy 2021-12-05 22:31:22 +13:00
parent eb9b7ba225
commit d32add571f
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
from machine import Pin from machine import Pin
from time import sleep from time import sleep
button = Pin(13, Pin.IN) #D7 button = Pin(22, Pin.IN, Pin.PULL_UP) #D7
button2 = Pin(14, Pin.IN) #d5 button2 = Pin(23, Pin.IN, Pin.PULL_UP) #d5
while True: while True:
print(button.value(), button2.value()) print(button.value(), button2.value())
sleep(1) sleep(0.1)