-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBixi.h
39 lines (32 loc) · 989 Bytes
/
Bixi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#define USE_OCTOWS2811
#include "OctoWS2811.h"
#include "FastLED.h"
#include "PixelArray.h"
#include "Addressing.h"
class CBixi
{
public:
static constexpr size_t c_indicatorPin = 13;
static constexpr size_t c_indicatorDelayMs = 1000;
static constexpr size_t c_num_shapes = 22;
public: // singleton
static CBixi& Instance();
CBixi();
~CBixi();
public:
void Continue();
void ShutDown() { m_shutting_down = true; }
bool ShuttingDown() { return m_shutting_down; }
static size_t Iteration() { return s_iteration; }
protected:
virtual void Show(CPixelArray* pixels);
private:
size_t m_lastIndicator = 0;
bool m_indicatorOn = false;
CPixelArray* m_geometry = nullptr;
CPixelArray* m_show = nullptr;
bool m_shutting_down = false;
private:
static size_t s_iteration;
};