-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplatformio.ini
182 lines (148 loc) · 2.74 KB
/
platformio.ini
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[platformio]
src_dir = . ; this uses the .ino file at the root directory
default_envs = TRACKLINK-V2
; Common configuration for all ESP32 boards
[env]
platform = espressif32 @ 6.9.0 ; tested with TrainColtrol_BLE
;platform = espressif32 ; use latest version (may not be tested)
framework = arduino
monitor_speed = 115200
lib_deps =
remotexy/RemoteXY@^3.1.14
bxparks/AceRoutine@^1.5.1
dlloydev/ESP32 ESP32S2 AnalogWrite@^5.0.2
; ESP32 Dev board
[env:esp32-DIY-Board]
board = esp32dev
upload_protocol = esptool
build_flags =
-D ARDUINO_USB_MODE=1
-D CORE_DEBUG_LEVEL=3
-D DIY_BOARD
; TRACKLINK board - latest version
[env:TRACKLINK-V2]
board = lolin_s3_mini
build_flags =
-D ARDUINO_USB_MODE=1
-D CORE_DEBUG_LEVEL=3
; Driver pins
-D DRV_MA1=6
-D DRV_MA2=7
-D DRV_MB1=NONE
-D DRV_MB2=NONE
-D DRV_EN=5
-D DRV_BEMF=8
; Led pins
-D L1=9
-D L2=10
-D L3=11
-D L4=12
-D L5=13
-D L6=14
;-D LED_BUILTIN=42
; Servo pins
-D S1=1
-D S2=2
; I2S pins (MAX98357)
-D LRCLK=15
-D BCLK=16
-D DIN=17
-D SD_MODE=18
; Boot button
-D BOOT=0
; Power pins
-D PWR_EN=21 ; set high to enable board
-D PWR_BTN=38 ; Input pin to detect power button press
-D CHRG_SENS=48 ; Input pin to detect USB power
; Voltsense
-D VSENS=4
-D VSCALE=1.8
-D VOFFSET=-0.2
; PWM settings
-D LED_FREQ=10000
-D LED_RES=10
-D DRV_FREQ=24000
-D DRV_RES=8
; TRACKLINK board
[env:TRACKLINK-V1]
board = adafruit_feather_esp32s3_nopsram
build_flags =
-D ARDUINO_USB_MODE=1
-D CORE_DEBUG_LEVEL=3
; Driver pins
-D DRV_MA1=12
-D DRV_MA2=13
-D DRV_MB1=14
-D DRV_MB2=15
-D DRV_EN=11
; Led pins
-D L1=5
-D L2=6
-D L3=7
-D L4=8
-D L5=9
-D L6=10
-D LED_BUILTIN=48
; Servo pins
-D S1=1
-D S2=2
; I2S pins (MAX98357)
-D LRCLK=16
-D BCLK=17
-D DIN=18
-D SD_MODE=21
; Boot button
-D BOOT=0
; Voltsense
-D VSENS=4
-D VSCALE=4.2
; PWM settings
-D LED_FREQ=10000
-D LED_RES=10
-D DRV_FREQ=24000
-D DRV_RES=8
; Previous Versions - for reference only
; TRACKLINK board , first version Dec 2024
[env:TRACKLINK-V2-R1]
board = lolin_s3_mini
build_flags =
-D ARDUINO_USB_MODE=1
-D CORE_DEBUG_LEVEL=3
; Driver pins
-D DRV_MA1=6
-D DRV_MA2=7
-D DRV_MB1=NONE
-D DRV_MB2=NONE
-D DRV_EN=5
-D DRV_BEMF=8
; Led pins
-D L1=9
-D L2=10
-D L3=11
-D L4=12
-D L5=13
-D L6=14
;-D LED_BUILTIN=42
; Servo pins
-D S1=1
-D S2=2
; I2S pins (MAX98357)
-D LRCLK=15
-D BCLK=16
-D DIN=17
-D SD_MODE=18
; Boot button
-D BOOT=0
; Voltsense
-D VSENS=4
-D VSCALE=1.8
-D VOFFSET=-0.2
; Power pins
-D PWR_EN=21 ; set high to enable board
-D PWR_BTN=38 ; Input pin to detect power button press
-D CHRG_SENS=48 ; Input pin to detect USB power
; PWM settings
-D LED_FREQ=10000
-D LED_RES=10
-D DRV_FREQ=24000
-D DRV_RES=8