Added effect 'rainbow'.

This commit is contained in:
fabian committed 2021-01-19 19:52:40 +00:00
1 parent d9708d9159
commit 8949041812
6 files changed
+46 -13

No files matched your search

+1
View File
@@ -26,6 +26,7 @@ class Node {
Node(uint16_t number, Coords c, uint8_t direction);
Node* create_neighbour(uint8_t edge);
Coords coords_at_direction(uint8_t edge);
uint16_t distance_from_start = 0;
void blend_to(CRGB color, uint16_t effect_id=0, uint8_t effect_speed=0);
void set_color(CRGB color);
+2 -1
View File
@@ -24,7 +24,8 @@ enum AnimationMode {
AM_OFF,
AM_ERROR,
AM_NONE,
AM_STATIC
AM_STATIC,
AM_RAINBOW
};
extern std::map<AnimationMode, const char*> animation_mode_names;