-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplatformio.ini
70 lines (61 loc) · 2.1 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
; Copyright (C) 2018, 2019 Lee C. Bussy (@LBussy)
; This file is part of LBussy's BrewPi Firmware Remix (BrewPi-Firmware-RMX).
; BrewPi Firmware RMX is free software: you can redistribute it and/or
; modify it under the terms of the GNU General Public License as
; published by the Free Software Foundation, either version 3 of the
; License, or (at your option) any later version.
; BrewPi Firmware RMX is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
; General Public License for more details.
; You should have received a copy of the GNU General Public License
; along with BrewPi Firmware RMX. If not, see <https://www.gnu.org/licenses/>.
[platformio]
; Added this here to "hard code" the environment for macro debugging/visuals
; default_envs = RevC
; default_envs = I2C
; default_envs = Glycol
[common]
platform = atmelavr
board = uno
framework = arduino
upload_speed = 115200
monitor_speed = 57600
build_flags =
!python tools/git_rev.py ; Provide Git tag and rev
-D BAUD=${common.monitor_speed}
extra_scripts =
pre:tools/name_firmware.py ; Names firmware correctly
[env:RevC]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
build_flags =
${common.build_flags}
-D BREWPI_STATIC_CONFIG=BREWPI_SHIELD_REVC
extra_scripts =
${common.extra_scripts}
[env:I2C]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
build_flags =
${common.build_flags}
-D BREWPI_STATIC_CONFIG=BREWPI_SHIELD_I2C
extra_scripts =
${common.extra_scripts}
[env:Glycol]
platform = ${common.platform}
board = ${common.board}
framework = ${common.framework}
upload_speed = ${common.upload_speed}
monitor_speed = ${common.monitor_speed}
build_flags =
${common.build_flags}
-D BREWPI_STATIC_CONFIG=BREWPI_SHIELD_GLYCOL
extra_scripts =
${common.extra_scripts}