-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathplatformio.ini
More file actions
219 lines (209 loc) · 6.94 KB
/
Copy pathplatformio.ini
File metadata and controls
219 lines (209 loc) · 6.94 KB
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
; PlatformIO Project Configuration File
;
; Supported platforms for the MobiFlight firmware are:
; atmega2560
; promicro
; uno
;
; Version numbers for releases are automatically applied by GitHub
; during the release build process based on the tag associated with
; the GitHub release.
; To ensure builds work correctly in GitHub the default_envs
; should always be set to all supported MobiFlight platforms.
; If you want to only build a single platform locally during
; development use VSCode to change the target to a non-default
; by clicking on the target name in the bottom status bar.
; Common build settings across all devices
[env]
lib_deps =
waspinator/AccelStepper @ 1.61
https://github.com/MobiFlight/LiquidCrystal_I2C#v1.1.5
https://github.com/MobiFlight/Arduino-CmdMessenger#4.2.2
custom_lib_deps_Atmel =
arduino-libraries/Servo @ 1.1.8
custom_lib_deps_Pico =
build_flags =
-DMF_REDUCE_FUNCT_LEDCONTROL
-DMAXCALLBACKS=35
-DSERIAL_RX_BUFFER_SIZE=96
-DMESSENGERBUFFERSIZE=96
-DMAXSTREAMBUFFERSIZE=96
-DDEFAULT_TIMEOUT=5000
; -DREVERSED_OUTPUT_OUTPUT
; -DREVERSED_OUTPUT_OUTPUTSHIFTER
; -DDEBUG2CMDMESSENGER
-DMF_SEGMENT_SUPPORT
-DMF_LCD_SUPPORT
-DMF_STEPPER_SUPPORT
-DMF_SERVO_SUPPORT
-DMF_ANALOG_SUPPORT
-DMF_OUTPUT_SHIFTER_SUPPORT
-DMF_INPUT_SHIFTER_SUPPORT
-DMF_MUX_SUPPORT
-DMF_MUX_SUPPORT
-DMF_DIGIN_MUX_SUPPORT
-I./src/MF_Analog
-I./src/MF_Button
-I./src/MF_Encoder
-I./src/MF_InputShifter
-I./src/MF_DigInMux
-I./src/MF_LCDDisplay
-I./src/MF_Output
-I./src/MF_OutputShifter
-I./src/MF_Segment
-I./src/MF_Servo
-I./src/MF_Stepper
-I./src/MF_Modules
build_src_filter =
+<*>
-<./MF_CustomDevice>
extra_scripts =
pre:get_version.py
copy_fw_files.py
; Build settings for the Arduino Mega
[env:mobiflight_mega]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight Mega"'
'-DMOBIFLIGHT_NAME="MobiFlight Mega"'
-DMEMLEN_CONFIG=1496 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=1000 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=1600 ; max. memory size for devices
build_unflags =
;-DMF_STEPPER_SUPPORT ; this is just an example how to deactivate a device
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Pro Micro
[env:mobiflight_micro]
platform = atmelavr
board = sparkfun_promicro16
framework = arduino
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight Micro"'
'-DMOBIFLIGHT_NAME="MobiFlight Micro"'
-DMEMLEN_CONFIG=440 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=350 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=470 ; max. memory size for devices
build_unflags =
;-DMF_STEPPER_SUPPORT ; this is just an example how to deactivate a device
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Uno
[env:mobiflight_uno]
platform = atmelavr
board = uno
framework = arduino
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight Uno"'
'-DMOBIFLIGHT_NAME="MobiFlight Uno"'
-DMEMLEN_CONFIG=286 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=220 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=420 ; max. memory size for devices
build_unflags =
;-DMF_STEPPER_SUPPORT ; this is just an example how to deactivate a device
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Arduino Nano
[env:mobiflight_nano]
platform = atmelavr
board = nanoatmega328
framework = arduino
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight Nano"'
'-DMOBIFLIGHT_NAME="MobiFlight Nano"'
-DMEMLEN_CONFIG=286 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=220 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=420 ; max. memory size for devices
-I./_Boards/Atmel/Board_Nano
build_unflags =
;-DMF_STEPPER_SUPPORT ; this is just an example how to deactivate a device
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Atmel}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Raspberry Pico original
[env:mobiflight_raspberrypico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower ; select new core
board_build.filesystem_size = 0M ; configure filesystem size. Default 0 Mbyte.
lib_ldf_mode = chain+
upload_protocol = mbed ; for debugging upoading can be changed to picoprobe
;debug_tool = picoprobe ; and uncomment this for debugging w/ picoprobe
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight RaspiPico"'
'-DMOBIFLIGHT_NAME="MobiFlight RaspiPico"'
-DMEMLEN_CONFIG=1496 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=1000 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=1000 ; max. memory size for devices
-I./_Boards/RaspberryPi/Pico
build_unflags =
;-DMF_STEPPER_SUPPORT ; this is just an example how to deactivate a device
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Pico}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}
; Build settings for the Raspberry Pico2 original
[env:mobiflight_raspberrypico2]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico2
framework = arduino
board_build.core = earlephilhower ; select new core
board_build.filesystem_size = 0M ; configure filesystem size. Default 0 Mbyte.
lib_ldf_mode = chain+
upload_protocol = mbed ; for debugging upoading can be changed to picoprobe
;debug_tool = picoprobe ; and uncomment this for debugging w/ picoprobe
;board_build.arduino.earlephilhower.usb_manufacturer = Custom Manufacturer
;board_build.arduino.earlephilhower.usb_product = Ultra Cool Product
;board_build.arduino.earlephilhower.usb_vid = 0x2E8A
board_build.arduino.earlephilhower.usb_pid = 0xF00A
build_flags =
${env.build_flags}
'-DMOBIFLIGHT_TYPE="MobiFlight RaspiPico2"'
'-DMOBIFLIGHT_NAME="MobiFlight RaspiPico2"'
-DMEMLEN_CONFIG=1496 ; max. size for config which wil be stored in EEPROM
-DMEMLEN_NAMES_BUFFER=1000 ; max. size for configBuffer, contains only names from inputs
-DMF_MAX_DEVICEMEM=1000 ; max. memory size for devices
-I./_Boards/RaspberryPi/Pico
build_src_filter =
${env.build_src_filter}
lib_deps =
${env.lib_deps}
${env.custom_lib_deps_Pico}
monitor_speed = 115200
extra_scripts =
${env.extra_scripts}