48 {
49 static size_t frame_count = 0;
50 int frame_cycle = frame_count % 4;
51 frame_count++;
52
54 switch (frame_cycle) {
55 case 0:
57 break;
58 case 1:
60 break;
61 case 2:
63 break;
64 case 3:
66 break;
67 }
68
69 for (int i = -1; i < frame_cycle; ++i) {
71 delay(200);
73 delay(200);
74 }
75 delay(1000);
76}
void fillAndShow(CRGB color)
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an RGB pixel (Red, Green, Blue)