Question: Q 2 ( a ) An LED is directly connected to the digital pin 6 of an ESP 3 2 microcontroller that based on sinking
Qa An LED is directly connected to the digital pin of an ESP microcontroller that based on sinking mode. While a push button switch is connected to the digital pin of the microcontroller that based on pulldown resistor concept so that the logic signal is low when the push button switch is released.
i Sketch a schematic for the microcontroller that connected to the LED and the push button.
marks
ii Write a complete C statement code in void setup subroutine for relevant configurations.
marks
iii Write a complete Cstatement code in void loop subroutine for controlling the LED based on the push button switch state, ie when the push button switch is released, the LED will be turned off, and vice versa.
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
