Push button
Contents
Description
With a button we can select which of the two sides are connected to the middle. It is similar to a switch but it only stays in the state as long as it is pressed.
How to connect it electrically
How to control it in MicroPython
1 from machine import Pin
2 in26 = Pin(26, Pin.IN)
3 print(in26.value())
Related Tutorial Videos
Digital Input