This is a small interactive system based on Arduino coding. I create this interaction project based on EPS32 board , made the LED bulb manipulated by a button through the bread board and set the coding on Arduino.
If anyone press the botton, the bulb will generate a current loop and the bulb will light up.
At the same time, I set a delay function, if people press and then hold the bottom, the led can blink at a constant speed.
In this coding, I wrote two PinMode modes, I set the LED Bulb as an Input, and the Button as an Output. In the 'if' statement, I set if the button's digitalread is active, the LED will flash alternately with high-frequency brightness and low-frequency brightness.
created with
Website Builder Software .