-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.h
More file actions
43 lines (35 loc) · 773 Bytes
/
Copy pathconfig.h
File metadata and controls
43 lines (35 loc) · 773 Bytes
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
40
41
42
43
#ifndef CONFIG_H
#define CONFIG_H
#include <Arduino.h>
// Device Identity
#define DEVICE_NAME "Madge-ician"
#define MANUF_NAME "console.lukewakeford.co.uk"
#define RGB_PIN 21
// MIDI Constants
#define CC_FETCH 127
#define PREFS_NAME "magician-v2"
// Global Device Settings
struct GlobalConfig {
int midiChannel;
int idleR;
int idleG;
int idleB;
};
// Per-Pad Settings
struct InputConfig {
bool enabled;
int note;
int threshold;
int maskTime;
int scanTime;
int r, g, b;
};
// Function Prototypes
void saveAllConfigs();
void loadAllConfigs();
void handleSysEx(byte* array, unsigned size);
void sendFullStateToWeb();
// External variables (defined in storage.cpp)
extern InputConfig inputs[10];
extern GlobalConfig global;
#endif