Digital Input demo¶
Demo file : esp32_digital_input_demo.slx
This example shows how to use the Digital Input Block on ESP32. The state of the digital input pin (GPIO 4) will be represented on the digital output pin (GPIO 2).
What should be happening?¶
Once the digital input pin is connected to a button and the digital output pin is connected to a LED when running the demo on ESP32 , the LED turns on when the button is pressed and the LED turns off when the button is released.