-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
44 lines (33 loc) · 1.54 KB
/
config.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
// =======================================
// Configurations file for RoboMote
// =======================================
// Address of your remote. Set this to a value no one else has.
static const uint16_t necAddr = 0xABC;
// ========== BUTTONS ===========
static const int8 okPin = 4;
static const int8 backPin = 6;
static const int8 startPin = 7;
static const int8 stopPin = 5;
static const int8 programPin = 8;
static const int8 encoderPin1 = 2;
static const int8 encoderPin2 = 3;
#define PRESS_DELAY 300 // Delay before another click
#define FLOAT_POINTS 6 // Floating point precision
#define ACCEL_TIME_OUT 100 // How long until input acceleration times out?
#define ACCEL_FACT_DIV 140 // The higher this, the higher acceleration.
#define OK_DELAY 600 // OK Long press time
#define MINI_SUMO_DIR "MINISUMO" // Name of Mini Sumo strategies directory
#define MBOT_DIR "MBOT" // Name of mBot strategies directory
// Event numbers for mbot
#define MBOT_START 1
#define MBOT_STOP 2
#define MBOT_PROGRAM 3
// Number of maximum stratgies to have space for. Don't set too high or you'll have memory problems.
#define MAX_STRATS 10
// Number of maximum variables to have space for. Don't set too high or you'll have memory problems.
#define MAX_VARIABLES 10
// Number of maximum menu entries to have space for. Don't set too high or you'll have memory problems.
// Should be no less than MAX_VARIABLES + 2 or MAX_STRATS + 2, whichever is higher.
static const int8 MAX_MENU = 12;
// How many characters can you fit at 1X?
static const int8 OLED_WIDTH_SMALL = 21;