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
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment