1
0
Fork 0

Build: Introduce prod/dev environments

Platformio supports multiple environments and sharing a global configuration.
Make use of this to easily allow switching between the production build, with HID,
and the development build, with serial.

Update the README with information on how to build those environments.
This commit is contained in:
Teo-CD 2023-12-17 21:18:58 +00:00
parent df51ad3e36
commit 73d80312aa
2 changed files with 17 additions and 3 deletions

View file

@ -8,7 +8,7 @@
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:teensy41]
[env]
platform = teensy
board = teensy41
framework = arduino
@ -17,5 +17,9 @@ lib_deps =
adafruit/Adafruit PCD8544 Nokia 5110 LCD library
adafruit/Adafruit GFX Library
adafruit/Adafruit BusIO
; Should be uncommented in production in order to use HID.
;build_flags = -D USB_RAWHID
[env:dev]
[env:prod]
build_flags = -D USB_RAWHID