Answer to Question #98998 in Functional Programming for N/A

Question #98998
Modify the example in the Arduino to such that the red LED light flashes 3 times for 0.5 seconds, followed by 2 one-second flashes of the green LED light.

Example:
/* PRIZM Controller example program
* Blink the PRIZM red LED at a 1 second flash rate
* author PWU on 08/05/2016
*/

#include <PRIZM.h> // include the PRIZM library

PRIZM prizm; // instantiate a PRIZM object "prizm" so we can use its functions

void setup() {

prizm.PrizmBegin(); // initialize the PRIZM controller

}

void loop() { // repeat this code in a loop

prizm.setRedLED(HIGH); // turn the RED LED on
delay(1000); // wait here for 1000ms (1 second)
prizm.setRedLED(LOW); // turn the RED LED off
delay(1000); // wait here for 1000ms (1 second)


}
1
Expert's answer
2019-11-21T06:30:29-0500
Dear N/A, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS