Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- byte wipeOrder[NUM_STRIPS] = {0,4,1,3,2}; // order to load strips in. used to stop it from looking like it wipes down every refresh
- void scroll() {
- for (int i=0; i<NUM_STRIPS; i++) {
- shift(leds, message[wipeOrder[i]]);
- FastLED[wipeOrder[i]].showLeds();
- }
- delay(1000/FPS);
- }
- void shift(CRGB* arr, byte* msg) {
- for (int j=0; j<NUM_LEDS; j++) { // fill LEDs based on message, using counter as an offset
- arr[j] = msg[(counter + j) % min(realLength + 5, MSG_LENGTH)] == 0 ? CRGB(0,0,0) : on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment