Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void rgb_propeller() { //-m27-RGB PROPELLER
- idex++;
- int N3 = int(NUM_LEDS / 3);
- int N6 = int(NUM_LEDS / 6);
- int N12 = int(NUM_LEDS / 12);
- for (int i = 0; i < N3; i++ ) {
- int j0 = (idex + i + NUM_LEDS + N12) % NUM_LEDS;
- int j1 = (j0 + N3) % NUM_LEDS;
- int j2 = (j1 + N3) % NUM_LEDS;
- leds[j0] = CHSV(255, 255, 255);//Red
- leds[j1] = CHSV(255, 0, 255);//White
- leds[j2] = CHSV(350, 255, 255);//Green
- }
- LEDS.show();
- delay(10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement