-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
101 lines (85 loc) · 2.68 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
;;; PlatformIO Project Configuration File
;;;
;;; Build options: build flags, source filter
;;; Upload options: custom upload port, speed and extra flags
;;; Library options: dependencies, extra library storages
;;; Advanced options: extra scripting
;;;
;;; Please visit documentation for the other options and examples
;;; https://docs.platformio.org/page/projectconf.html
;;;
;v The RocketScream has an SWD connector. For debugger info,
;;; see https://docs.platformio.org/en/latest/plus/debug-tools/jlink.html
;;; The code only supports the M0-based RocketScream
[platformio]
default_envs = zeroUSB
;zeroUSB, debugZeroUSB
;; You MUST inject these options into [env:] section
;; using ${common_env_data.***} (see below)
;; NB: For FREQUENCY: Channel 0 is 902.3, others are + 200KHz for BW = 125 KHz.
;; There are 64 channels. 915.0 MHz is the no-channel nominal freq
;; For the NODE_ADDRESS, until a configuration mode/program is made, this must be
;; set as a compile-time constant. Values < 3 indicate hand-built nodes that
;; have different pin assignemnts than the PCB nodes. I started using 10++ for
;; the version 0.5 PCB.
[common_env_data]
build_flags =
-D VERSION=0.9
-D NODE_ADDRESS=3
-D FREQUENCY=902.3
-D STANDBY_INTERVAL_S=29
lib_deps_builtin =
Wire
SPI
lib_deps_external =
soil_sensor_sommon
greiman/SdFat@^2.1.2
mikem/RadioHead@^1.120
adafruit/Adafruit BusIO@^1.10.1
adafruit/Adafruit SHT31 Library@^2.0.0
arduino-libraries/RTCZero@^1.6.0
paulstoffregen/SerialFlash
; RTCZero
;SerialFlash
;; These are in 'lib'
;; SdFat, Adafruit_BusIO, Adafruit_SHT31, RadioHead, Soil_Sensor_Common
; Serial Monitor options
upload_speed = 115200
monitor_speed = 115200
[env:native]
platform = native
build_flags =
test_filter = native_*
lib_ldf_mode = deep
;; To use this, must add the UNIT_TEST guard around setup() and loop()
test_build_project_src = yes
[env:debugZeroUSB]
platform = atmelsam
board = zeroUSB
framework = arduino
build_type = debug
;; debug_build_flags = -O0 -ggdb3 -g3
;; the above line causes: .../.platformio/packages/framework-arduino-samd/
;; cores/arduino/HardwareSerial.h:67:
;; undefined reference to `vtable for HardwareSerial'
debug_init_break = tbreak loop
debug_tool = jlink
upload_protocol = jlink
;; Build options
build_flags =
${common_env_data.build_flags}
;; Dependencies
lib_deps =
${common_env_data.lib_deps_builtin}
${common_env_data.lib_deps_external}
[env:zeroUSB]
platform = atmelsam
board = zeroUSB
framework = arduino
;; Build options
build_flags =
${common_env_data.build_flags}
;; Dependencies
lib_deps =
${common_env_data.lib_deps_builtin}
${common_env_data.lib_deps_external}