Esp32 tutorial - Ch3 | Using esp32 boot button as button input
Ch3 | Using esp32 boot button as button input
In this tutorial you will learn
1. How to use esp32
hardware button
2. How to turn on
inbuilt led using
hardware button
Esp32_InbuiltButtonExample.ino
//Good news, the BOOT button is connected to GPIO0 (which is also a bootstrapping pin to set the boot mode), so pressing it will pull GPIO0 low.
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(0, INPUT);
// initialize digital pin 2 as an output.
pinMode(2, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
int Push_button_state = digitalRead(0);
if ( Push_button_state == HIGH )
{
digitalWrite(2,LOW );
}
else
{
digitalWrite(2, HIGH);
}
}
Search tags used:
Using esp32 boot button as button
Control the lighting of LED by push button with ESP32
Using esp32 inbuilt button
Push button with ESP32
using esp32 button simple example
using esp32 inbuilt button simple example
can we use esp32 button ?
esp32 button click
esp32 boot button simple program
Using esp32 boot button as button input
esp32 boot button led example
esp32 inbuilt led example with boot button
Social Links: [FOLLOW]
Social network section
Twitter: https://twitter.com/myzingonline
Facebook : https://www.facebook.com/myzingonline/
Blog : http://blog.myzingonline.com
Youtube Channel : https://www.youtube.com/channel/UCivd...
YouTube User ID: ivd6M0sL-YaWMgwAvDtfOA
YouTube Channel ID: UCivd6M0sL-YaWMgwAvDtfOA
0 comments:
Post a Comment