Today we'll see how to read MicroPython Digital input and output in ESP8266 and ESP32 in MicroPython Programming. Reading digital inputs allows us to know the state of a GPIO pin. This is useful to know if a push button was pressed, for example.
Pushbutton pressed -------------------------------LED on.
Pushbutton not pressed--------------------------LED off
More about this with Script analysis
https://www.mechatronicslab.net/micro...
Follow ME👉️:
For any help✅️: / mechatronicslab
Like my page✅️: / mechatronicslab.net
Follow Me ✅️: / sarful.hassan
✅️ / mechatronicslab
✅️ / sarful-hassan-4ab039119