-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplatformio.ini
155 lines (139 loc) · 4.5 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
; 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
[platformio]
include_dir = src
src_dir = src
; default_envs = seeed_xiao
default_envs = adafruit_qt_py_m0
; default_envs = adafruit_qt_py_rp2040
;;;;;;; Common defs
[env]
framework = arduino
monitor_speed = 115200
build_flags = -DUSE_TINYUSB
lib_deps =
; adafruit/Adafruit TinyUSB Library
;;;; These are needed if SENSOR_DISPLAY is turned on.
; Wire
; adafruit/Adafruit GFX Library@^1.11.11
; adafruit/Adafruit BusIO@^1.7.2
;;;; also, one of these:
; adafruit/Adafruit SSD1327@^1.0.4
; adafruit/Adafruit SSD1351 library @ ^1.2.7
;; The SSD1327 library seems to have a bunch of deprecation warnings.
;; You may want to use this if it's enabled.
; build_flags =
; ${env.build_flags}
; -Wno-deprecated-declarations
;; workaround for serial port not working in TinyUSB:
;; https://github.com/adafruit/Adafruit_TinyUSB_Arduino/issues/117
lib_archive = no
;;;;;;; Seeeduino XIAO
[env:seeed_xiao]
platform = atmelsam
board = seeed_xiao
; upload_port = /dev/cu.usbmodem4101
; monitor_port = /dev/cu.usbmodem4101
lib_deps =
${env.lib_deps}
Wire
; Something's broken with TinyUSB on the XIAO board in platformio.
; ref: https://community.platformio.org/t/platfotmio-cannot-find-tinyusb/37307/8
; This should fix it.
lib_ignore =
${env.lib_ignore}
USBHost
build_flags =
${env.build_flags}
-DPINS_QTPY
-I "${PROJECT_CORE_DIR}/packages/framework-arduino-samd-seeed/libraries/Adafruit_TinyUSB_Arduino/src/arduino"
;;;;;;; Adafruit QT Py M0 (SAMD21)
[env:adafruit_qt_py_m0]
platform = atmelsam
board = adafruit_qt_py_m0
; upload_port = /dev/cu.usbmodem34401
; monitor_port = /dev/cu.usbmodem34401
lib_deps =
${env.lib_deps}
Wire
;; for NeoPixel
adafruit/Adafruit BusIO@^1.16.2
adafruit/Adafruit Zero DMA Library@^1.1.3
adafruit/Adafruit NeoPixel@^1.12.3
;; for SENSOR_DISPLAY
; adafruit/Adafruit SSD1327
; adafruit/Adafruit GFX Library
build_flags =
${env.build_flags}
-DPINS_QTPY
; -DSENSOR_DISPLAY=1
;;;;;;; Adafruit QT Py RP2040
;;; see: https://digitalme.co/posts/pico-on-pio
;;; further info: https://github.com/earlephilhower/arduino-pico/blob/master/docs/platformio.rst
[env:adafruit_qt_py_rp2040]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
board = adafruit_qtpy
;upload_port = /dev/cu.usbmodem34401
;monitor_port = /dev/cu.usbmodem34401
lib_deps =
${env.lib_deps}
adafruit/Adafruit NeoPixel@^1.12.3
;; for SENSOR_DISPLAY
adafruit/Adafruit SSD1327
adafruit/Adafruit GFX Library
; Pin definitions are a bit different on this board, add a define so the code can adjust
build_flags =
${env.build_flags}
-DPINS_QTPY
-DPINS_QTPY_RP2040
-DSENSOR_DISPLAY=1
;; The SSD1327 library has a bunch of deprecation warnings.
-Wno-deprecated-declarations
;;;;;;; My custom trackball board
;;; for rp2040 platform setup, see: https://digitalme.co/posts/pico-on-pio
[env:rp2040_mwtrackball]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
board = generic
; this variant has proper pin assignments for the board
board_build.variants_dir = ./variants
board_build.variant = rp2040_mwtrackball
;;; external hub
; upload_port = /dev/cu.usbmodem21414401
; monitor_port = /dev/cu.usbmodem21414401
;;; main trackball
; upload_port = /dev/cu.usbmodem632401
; monitor_port = /dev/cu.usbmodem632401
lib_deps =
${env.lib_deps}
adafruit/Adafruit NeoPixel
; adafruit/Adafruit SSD1327
; adafruit/Adafruit GFX Library
build_flags =
${env.build_flags}
-DPINS_CUSTOM_BOARD
;; The piezo buzzer on the custom board has different resonance.
;; This tone sounds better to me.
-DPIEZO_FREQUENCY=5000
-DPIEZO_DURATION=5
; -DSERIAL_DEBUG
; -DSENSOR_DISPLAY=1
; -DSENSOR_DISPLAY_ON_STARTUP
; The SSD1327 library has a bunch of deprecation warnings.
; -Wno-deprecated-declarations
[env:rp2040_mwtrackball_debug]
;; env for debugging with the RP Debug Probe
extends = env:rp2040_mwtrackball
upload_protocol = cmsis-dap
debug_tool = cmsis-dap
build_type = debug
; upload_port = /dev/cu.usbmodem634401
; monitor_port = /dev/cu.usbmodem634401