Outcome
- This should provide at least one clear illustration of the final outcome (photo or video as appropriate).
Exercise 6: Create an ambient calendar alert using a Neopixel strip to send an alert to my device a few minutes before an appointment.
I broke this apart into pieces as advised on the website and first learnt how to work with mills()in order to change color from red to blue. It took me multiple attempts and many hours to understand the syntax, I'm still not an expert but I think I understand the logic of syntax better thanks to this struggle.
int setRed(String f){ //functions for particle.function start with an int and take only string commands
int rValue = f.toInt(); //first:convert string to number
uint32_t red = strip.Color(rValue, 0, 0); //second: use the newly converted int to define color
uint16_t i;
for (i=0; i < strip.numPixels(); i++){
strip.setPixelColor(i, red);
strip.show();
}
delay(500);
return 1;
You can upload files of up to 20MB using this form.