#include #include char auth[] = "b5b961bbfd0044bbac5a30f94e20d6d0"; #define PIN 19 #define NUMPIXELS 3 Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); // Input a value 0 to 255 to get a color value. // The colours are a transition r - g - b - back to r. uint32_t Wheel(byte WheelPos) { if (WheelPos < 85) { return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0); } else if (WheelPos < 170) { WheelPos -= 85 ; return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3); } else { WheelPos -= 170 ; return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3); } } int ledR = 0; int ledG = 0; int ledB = 0; int pixelBrightness = 50; int Mode = 0, j = 0, Speed = 20; BLYNK_WRITE(V0) //pick a color of LED { ledR = param[0].asInt(); ledG = param[1].asInt(); ledB = param[2].asInt(); for(int i=0;i256){ j = 0; } rainbowCycle(Speed, j); } }