3#include "../shared/defs.h"
10#include "shared/Painter.h"
21#define PIN_POT_COLOR_SENSOR D3
22#define PIN_POT_VEL_SENSOR D4
24#define PIN_POT_COLOR_SENSOR A3
25#define PIN_POT_VEL_SENSOR A4
28#define PIN_VIS_SELECT 2
29#define PIN_COLOR_SELECT 4
34float read_color_selector() {
35 return color_pot.Read();
38float read_velocity_bias() {
39 return velocity_pot.Read();
51ui_state ui_update(uint32_t now_ms, uint32_t delta_ms) {
53 vis_selector.Update(now_ms);
54 color_selector.Update();
55 int32_t curr_val = vis_selector.curr_val();
56 FASTLED_DBG(
"curr_val: " << curr_val);
58 out.color_scheme = color_selector.curr_val();
79 out.which_visualizer =
static_cast<Painter::VisState
>(curr_val % Painter::kNumVisStates);