From 99e9741837beccf3245f74f55215d80ae2e1bbed Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 21 Dec 2020 20:14:45 -0800 Subject: [PATCH] offload platformio building This allows the repo to live on an SD card / USB jump drive. --- stage2/platformio.ini | 35 ++++++++++++++++++++--------------- ulisp/platformio.ini | 11 +++++++++-- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/stage2/platformio.ini b/stage2/platformio.ini index d27e669..68287bb 100644 --- a/stage2/platformio.ini +++ b/stage2/platformio.ini @@ -8,22 +8,27 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:adafruit_feather_m4] -platform = atmelsam -board = adafruit_feather_m4 -framework = arduino +[platformio] +workspace_dir = ~/.platformio/work/$PROJECT_HASH/stage2 +build_cache_dir = ~/.platformio/work/cache -; 28: Adafruit NeoPixel library -; 83: Adafruit RTClib -; 571: Adafruit ILI9341 library -lib_deps = SD, SPI, Wire, 28, 83, 571, arturo182/BBQ10Keyboard, 2082, 13, 6214 +[env] +platform = atmelsam +framework = arduino +lib_deps = + adafruit/Adafruit BusIO @ ^1.7.1 + adafruit/Adafruit GFX Library @ ^1.10.4 + adafruit/Adafruit ILI9341 @ ^1.5.6 + adafruit/Adafruit NeoPixel @ ^1.7.0 + adafruit/Adafruit Zero DMA Library @ ^1.0.8 + adafruit/RTClib @ ^1.12.4 + arduino-libraries/SD @ ^1.2.4 + arturo182/BBQ10Keyboard + SPI + Wire + +[env:adafruit_feather_m4] +board = adafruit_feather_m4 [env:adafruit_feather_m0] -platform = atmelsam board = adafruit_feather_m0 -framework = arduino - -; 28: Adafruit NeoPixel library -; 83: Adafruit RTClib -; 571: Adafruit ILI9341 library -lib_deps = SD, SPI, Wire, 28, 83, 571, arturo182/BBQ10Keyboard, 2082, 13, 6214 diff --git a/ulisp/platformio.ini b/ulisp/platformio.ini index ec41326..03a8d3e 100644 --- a/ulisp/platformio.ini +++ b/ulisp/platformio.ini @@ -8,8 +8,15 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:adafruit_feather_m4] + +[platformio] +workspace_dir = ~/.platformio/work/$PROJECT_HASH/stage2 +build_cache_dir = ~/.platformio/work/cache + +[env] platform = atmelsam -board = adafruit_feather_m4 framework = arduino lib_deps = arduino-libraries/SD + +[env:adafruit_feather_m4] +board = adafruit_feather_m4