Toggle Navigation
Hatchery
Eggs
special addon blink
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
from machine import Pin p1 = Pin(26, Pin.OUT) p2 = Pin(27, Pin.OUT) import time import buttons pieru = False x = .25 while True: p1.value(True) p2.value(False) time.sleep(x) p1.value(False) p2.value(True) time.sleep(x) if buttons.value(buttons.BTN_LEFT): x = .15 if buttons.value(buttons.BTN_RIGHT): x = .3 if buttons.value(buttons.BTN_UP): pieru = not pieru if buttons.value(buttons.BTN_DOWN): p1.value(False) p2.value(False) break