This repository was archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_defines.h
70 lines (59 loc) · 1.79 KB
/
_defines.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//RPM sensor.
#define RPM_INT_PIN 2 // interrupt based pin.
#define RPM_INT_NUM 0 // interrupt number for this pin (see attachInterrupt()).
#define RPM_TI1_PIN 8 // timer1 pin.
#define BUFFER_DEPTH 5 // how many values to store in averaging buffer if enabled.
//LCD pins.
#define LCDCLK 12
#define LCDDIO 11
//Button pins.
#define BTN_LEFT 10
#define BTN_UP 6
#define BTN_RIGHT 7
#define BTN_DOWN 9
//RTC module pins.
#define RTC_CE 5
#define RTC_IO 4
#define RTC_SCLK 3
//RGB Pixels.
#define PIXELPIN 13
#define NUMPIXELS 16
#define PIXELTYPE WS2812B // see FastLED library.
#define MAX_POWER 600 // in mW.
//Animation constants.
#define ANIM_SLOW 700
#define ANIM_MED 500
#define ANIM_FAST 300
#define ANIM_TURBO 75
//Normal interval.
#define UPDATE_INTERVAL 10
//Power off settings.
#define POWER_OFF_TIMEOUT 3000
#define DISPLAY_OFF_BRIGHTNESS 2
#define ADDITIONAL_INTERVAL 90
//Some absolute minimum and maximum values.
#define MAX_RPM_SETTING 9900
#define MIN_RPM_SETTING 1000
#define MAX_PROFILES 5
//A load of default values.
#define DEFAULT_PPR 4 // pulses per revolution.
#define DEFAULT_RPM_STEP 20 // the RPM resolution step for the LCD display.
#define DEFAULT_RPM_ANIMATION 0 // left-to-right.
#define DEFAULT_PIXEL_BRIGHTNESS 3
#define DEFAULT_DISPLAY_BRIGHTNESS 3
#define DEFAULT_RPM_MEASUREMODE 1 // timer1 mode.
#define DEFAULT_RPM_BUFFER 1 // yes, use buffer.
#define DEFAULT_RPM_STATIONARY 2000
#define DEFAULT_RPM_LOW 4000
#define DEFAULT_RPM_ACTIVATION 4500
#define DEFAULT_RPM_SHIFT 6500
#define DEFAULT_CLOW 2 // orange.
#define DEFAULT_CPART1 6 // green.
#define DEFAULT_CPART2 4 // yellow.
#define DEFAULT_CPART3 0 // red.
#define DEFAULT_CFLASH1 0 // red.
#define DEFAULT_CFLASH2 17 // black.
#define DEFAULT_FSEG1 9
#define DEFAULT_FSEG2 5
#define DEFAULT_HSEG1 4
#define DEFAULT_HSEG2 3