Description
–
Related Tags
–
from ptpma.components import PMAButton, PMALed
button = PMAButton("D3")
led = PMALed("D1")
while True:
if button.is_pressed:
led.on()
else:
led.off()
button = PMAButton("D3")
led = PMALed("D1")
while True:
if button.is_pressed:
led.on()
else:
led.off()