Question: Question 5 ( 4 0 marks ) : C programming language Write a C program that will cause the Arduino board's LEDs to turn off
Question marks: C programming language
Write a C program that will cause the Arduino board's LEDs to turn off and on from left to left, in an infinite loop. Assuming a white circle means "LED is on and a black circle means "LED is off", then for one second the LEDs will look like:
then the LEDS look like:
then:
then:
then:
then:
and finally back to:
in a loop forever.
Recall the mapping of port bits to LEDs:
port B bit
port B bit
port L bit
port L bit
port L bit
port L bit
Write your answer on the page opposite The C program's file has been started for you. Some marks will be given for the quality of your solution.
Remember: if you want a onesecond delay, usedelayms; at that spot in your program.
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
