Kris Scholte Lubberink
/
SSS_Ble
Ble for smart sOlutions
Diff: source/MyStripSingleton.cpp
- Revision:
- 11:d6ed1437c2ee
- Parent:
- 10:d845189d146e
diff -r d845189d146e -r d6ed1437c2ee source/MyStripSingleton.cpp --- a/source/MyStripSingleton.cpp Fri Jun 14 10:24:57 2019 +0200 +++ b/source/MyStripSingleton.cpp Thu Jun 20 13:20:24 2019 +0200 @@ -33,18 +33,6 @@ return Color(0, WheelPos * 3, 255 - WheelPos * 3); } } -void MyStripSingleton::rainbow(uint8_t waittime) { - int i, j; - - for (j=0; j < 256; j++) { // 3 cycles of all 256 colors in the wheel - for (i=0; i < strip.numPixels(); i++) { - strip.setPixelColor(i, Wheel( (i + j) % 255)); - } - strip.show(); // write all the pixels out - wait_ms(waittime);// (wait); - } -} - // Slightly different, this one makes the rainbow wheel equally distributed // along the chain void MyStripSingleton::rainbowCycle(uint8_t waittime) {