/
CEBManual.h
56 lines (45 loc) · 1.2 KB
/
CEBManual.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "Arduino.h"
typedef boolean (*fnptr)(int);
#define DIECIMILA 1
#ifdef TEENSY
const int blink_pin = 11;
// sensor pins
const int sensor_primary = 16;
const int sensor_secondary = 17;
// output pins
const int primary_down = 15;
const int primary_up = 14;
const int secondary_left = 4;
const int secondary_right = 5;
const int shaker = 9;
// button pins
const int manual_down = 18;
const int manual_up = 19;
const int manual_left = 20;
const int manual_right = 21;
const int manual_shaker = 13;
#endif
#ifdef DIECIMILA
const boolean invert_output = true;
// const int blink_pin = ;
const int pause_pin = 12;
const int mode_pin = 7;
const boolean invert_mode_pin = true;
// sensor pins
const int sensor_primary = A4;
const int sensor_secondary = A5;
const int sensor_pressure = A3;
const int knob_primary = A2;
// output pins
const int primary_down = 2;
const int primary_up = 3;
const int secondary_left = 4;
const int secondary_right = 5;
const int shaker = 6;
// button pins
const int manual_down = 8;
const int manual_up = 9;
const int manual_left = 10;
const int manual_right = 11;
const int manual_shaker = 13;
#endif