RadiantRVA
/
rbVectorIQ
share for RS
Fork of rbVectorIQ by
Diff: patterns.cpp
- Revision:
- 13:047bbd59f351
- Parent:
- 11:45f76d2b5b8c
--- a/patterns.cpp Thu Dec 22 20:48:49 2016 +0000 +++ b/patterns.cpp Tue Apr 18 17:00:37 2017 +0000 @@ -161,4 +161,63 @@ neopixel_show(&m_strip); wait_ms(delay); } +} + +void easter(int delay, uint8_t numLEDs, neopixel_strip_t m_strip) { + //All purple + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 102,0,102); + neopixel_show(&m_strip); + wait_ms(1000); + //All white + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,255,255); + neopixel_show(&m_strip); + wait_ms(1000); + //All gold + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,204,0); + neopixel_show(&m_strip); + wait_ms(1000); +} + +void spring(int delay, uint8_t numLEDs, neopixel_strip_t m_strip) { + //All pink + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,102,255); + neopixel_show(&m_strip); + wait_ms(1000); + //All blue + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 153,204,255); + neopixel_show(&m_strip); + wait_ms(1000); + //All green + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 153,255,153); + neopixel_show(&m_strip); + wait_ms(1000); + //All yellow + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,255,153); + neopixel_show(&m_strip); + wait_ms(1000); +} + +void memorial(int delay, uint8_t numLEDs, neopixel_strip_t m_strip) { + //All red + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,0,0); + neopixel_show(&m_strip); + wait_ms(1000); + //All white + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 255,255,255); + neopixel_show(&m_strip); + wait_ms(1000); + //All blue + for (int j=0; j<numLEDs; j++) + neopixel_set_color(&m_strip, j, 0,0,255); + neopixel_show(&m_strip); + wait_ms(1000); } \ No newline at end of file