My objective is , when am pressed the button , the led should glow , and when am released the button , the led should turn off.
am a beginner to this platform , please anyone can help me for the above problem
Hi , can anyone say , how to configure the digital input and output in esp32 and how to read the digital input..?
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Hi , can anyone say , how to configure the digital input and output in esp32 and how to read the digital input..?
Hi Reeshma,
I suggest the following:
1. Install Arduino IDE
2. Get blink.ino example working.
3. Get another example (that shows how to read digital input) working.
At this point you should be able to write a program doing what you described.
I suggest the following:
1. Install Arduino IDE
2. Get blink.ino example working.
3. Get another example (that shows how to read digital input) working.
At this point you should be able to write a program doing what you described.
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: Hi , can anyone say , how to configure the digital input and output in esp32 and how to read the digital input..?
@dotthree, Instead of Arduino IDE you can use esp-idf and program in plain C and/or C++.Many would prefer to avoid arduino IDE.
Esp-idf provides example with four GIPO pins set up and working simultaneously.I personally would really love to see a comprehensive GPIO example which shows multiple pins set up and working simultaneously.
Re: Hi , can anyone say , how to configure the digital input and output in esp32 and how to read the digital input..?
Thank you, i will try with the above suggestion.
Re: Hi , can anyone say , how to configure the digital input and output in esp32 and how to read the digital input..?
What exactly is your requirement ? I suggest you to go through basics of freeRTOS : Task, Queue, Semaphore. They would help you understand examples in esp-idf better. Also go through the readme files in each example folder.
Regards,
Kewal Shah
Kewal Shah
Who is online
Users browsing this forum: No registered users and 94 guests