Dezibot 4
Loading...
Searching...
No Matches
ColorCycle.ino
Go to the documentation of this file.
1#include "Dezibot.h"
2
3
4Dezibot dezibot = Dezibot();
5void setup() {
6 // put your setup code here, to run once:
7dezibot.begin();
8}
9
10void loop() {
11 // put your main code here, to run repeatedly:
12 for (int d = 0; d < 255; d++) {
13 dezibot.multiColorLight.setLed(ALL,dezibot.multiColorLight.color(d,0,255-d));
14 delay(2);
15 }
16
17 for (int d = 0; d < 255; d++) {
18 dezibot.multiColorLight.setLed(ALL, dezibot.multiColorLight.color(255-d, d, 0));
19 delay(2);
20 }
21
22 for (int d = 0; d < 255; d++) {
23 dezibot.multiColorLight.setLed(ALL, dezibot.multiColorLight.color(0, 255-d, d));
24 delay(2);
25 }
26}