Question: EECT 222 Week 5 Lab with counting and interrupts. Spring 2020 Enter this program, compile it and up load to your Arduino Hook up 8
EECT 222 Week 5 Lab with counting and interrupts. Spring 2020 Enter this program, compile it and up load to your Arduino Hook up 8 LEDS, through ports 2 - 9 with resistors. Verify this program works: W the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. for (int led-2: led 9 led++) { pinMode(led, OUTPUT); int dir=1: int num = 0; W the loop routine runs over and over again forever: void loop( { unsigned char x = num; for (int i=0; i 255 ) { num- dir0: delay(1000); } else { num if (num 255 ) { num- dir0: delay(1000); } else { num if (num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
