espleaf/include/prototypes.h

38 lines
647 B
C
Raw Normal View History

2021-01-03 16:12:47 +00:00
#pragma once
#include "my_fastled.h"
2021-01-03 16:12:47 +00:00
#include <list>
#include <vector>
2021-01-18 04:53:11 +00:00
#include <map>
2021-01-03 16:12:47 +00:00
#include "config.h"
#include "node.h"
#include "corner.h"
class Node;
2021-01-03 16:12:47 +00:00
extern std::vector<Node*> nodes;
extern std::vector<Corner*> corners;
2021-01-03 16:12:47 +00:00
extern CRGB leds[LED_COUNT];
extern CRGB color;
enum AnimationMode {
AM_CORNERS,
AM_FIRST_CORNER,
AM_NODES,
AM_FIRST_NODE,
AM_FLASH,
AM_OFF,
AM_ERROR,
AM_NONE,
2021-01-19 19:52:40 +00:00
AM_STATIC,
AM_RAINBOW
2021-01-08 04:54:55 +00:00
};
2021-01-18 04:53:11 +00:00
extern std::map<AnimationMode, const char*> animation_mode_names;
2021-01-08 04:54:55 +00:00
extern AnimationMode mode;
extern AnimationMode temp_mode;
extern unsigned long temp_mode_until;
extern int return_to_brightness;
extern uint8_t speedup;