Question: For the microcontroller code for the Arduino UNO below explain each line of code and also the function of the overall program. ( 1 4

For the microcontroller code for the Arduino UNO below explain each
line of code and also the function of the overall program.
(14 marks)
void setup(){
pinMode(8, INPUT);
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
}
void loop(){
if(digitalRead(8)==HIGH){
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!