Question: Please help with question #3 Assignment: Save each program so you can demonstrate it. 1) Based on last weeks lab hookup leds use attachlinterrupts to
Please help with question #3

Assignment: Save each program so you can demonstrate it. 1) Based on last weeks lab hookup leds use attachlinterrupts to detect a switch press and toggle and LED. Demo 2.) Using Interrupts start by declaring a variable that keeps count of how many times Switchl is pressed. When Switch2 is pressed have it blink that many times. After it has finished blinking clear the count. DEMO 3.) Use two attachInterrupt function to adjust the brightness of an LED. UP and DOWN ( S1 up S2 Down) (how would you store that value so the brightness was the same after a power up/reset?) DEMO 4.) Use the randomseed and random to write a different value to all three LEDS whenever a switch is pressed. Serial.print the values to the serial monitor. DEMO 5.) Add in the ability to send a number using Serial.parseInt() to blink the number of times indicated from the serialEvent. DEMO Assignment: Save each program so you can demonstrate it. 1) Based on last weeks lab hookup leds use attachlinterrupts to detect a switch press and toggle and LED. Demo 2.) Using Interrupts start by declaring a variable that keeps count of how many times Switchl is pressed. When Switch2 is pressed have it blink that many times. After it has finished blinking clear the count. DEMO 3.) Use two attachInterrupt function to adjust the brightness of an LED. UP and DOWN ( S1 up S2 Down) (how would you store that value so the brightness was the same after a power up/reset?) DEMO 4.) Use the randomseed and random to write a different value to all three LEDS whenever a switch is pressed. Serial.print the values to the serial monitor. DEMO 5.) Add in the ability to send a number using Serial.parseInt() to blink the number of times indicated from the serialEvent. DEMO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
