ボタン

2022/07/11

MicroPython1.17(ESP32)

import machine

btn_pin = machine.Pin(39, machine.Pin.IN, machine.Pin.PULL_UP)

if btn_pin.value() == False:
    pass

動作確認:ATOM Lite