FastLED 3.9.7
Loading...
Searching...
No Matches
Painter.h
1#ifndef PAINTER_H
2#define PAINTER_H
3
4#include "./Keyboard.h"
5#include "./ApproximatingFunction.h"
6#include "./util.h"
7#include "./settings.h"
8#include "./led_rope_interface.h"
9
10struct Painter {
11
12 enum VisState {
13 kVUMidNote = 0,
14 kColumnNote,
15 kBlockNote,
16 kVUNote,
17 kVUSpaceInvaders,
18 kVegas,
19 kBrightSurprise,
20
21 kNumVisStates,
22 };
23
25 static void Paint(uint32_t now_ms,
26 uint32_t delta_ms,
27 VisState vis_state,
28 KeyboardState* keyboard,
29 LedRopeInterface* light_rope);
30private:
31 static void PaintVuNotes(uint32_t now_ms,
32 const KeyboardState& keyboard,
33 const int* led_column_table, int led_column_table_length,
34 LedRopeInterface* led_rope);
35
36 static void PaintVuMidNotesFade(uint32_t delta_ms,
37 const KeyboardState& keyboard,
38 const int* led_column_table, int led_column_table_length,
39 LedRopeInterface* led_rope);
40
41 // This is a crazy effect, lets keep this around.
42 static void VegasVisualizer(const KeyboardState& keyboard,
43 const int* led_column_table, int led_column_table_length,
44 LedRopeInterface* led_rope);
45
46 static void PaintBrightSurprise(const KeyboardState& keyboard,
47 const int* led_column_table, int led_column_table_length,
48 LedRopeInterface* led_rope);
49
50
51
52 static void PaintVuSpaceInvaders(uint32_t now_ms,
53 const KeyboardState& keyboard,
54 const int* led_column_table, int led_column_table_length,
55 LedRopeInterface* led_rope);
56};
57
58#endif // PAINTER_H