espleaf/include/prototypes.h

38 lines
647 B
C++

#pragma once
#include "my_fastled.h"
#include <list>
#include <vector>
#include <map>
#include "config.h"
#include "node.h"
#include "corner.h"
class Node;
extern std::vector<Node*> nodes;
extern std::vector<Corner*> corners;
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,
AM_STATIC,
AM_RAINBOW
};
extern std::map<AnimationMode, const char*> animation_mode_names;
extern AnimationMode mode;
extern AnimationMode temp_mode;
extern unsigned long temp_mode_until;
extern int return_to_brightness;
extern uint8_t speedup;