From a7cbbc034ef8fcdef347078fb584d1e60df33162 Mon Sep 17 00:00:00 2001 From: Dan Egnor Date: Fri, 1 Jul 2022 00:33:18 -0700 Subject: [PATCH] Add a platformio.ini file, for those so inclined --- .gitignore | 1 + platformio.ini | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 platformio.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03f4a3c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.pio diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..4b7ce6b --- /dev/null +++ b/platformio.ini @@ -0,0 +1,29 @@ +; PlatformIO Project Configuration File +; https://docs.platformio.org/page/projectconf.html + +[env:watchy] +platform = espressif32 +framework = arduino + +; The current arduino-ESP32 platform (2.0.3) seems to have issues with +; esp_sleep_get_wakeup_cause() not working right, leading to boot loops. +; Pin to the previous version (2.0.2) which works better. +platform_packages = framework-arduinoespressif32 @ 3.20002.220503 + +board = esp32dev ; TODO: Make a board definition for Watchy? +board_build.partitions = min_spiffs.csv +board_build.hwids = 10C4, EA60 ; The CP2102N used on Watchy +monitor_speed = 115200 + +lib_ldf_mode = deep+ ; Needed to plumb the depths of library dependencies +lib_deps = + https://github.com/GuruSR/Olson2POSIX.git + https://github.com/GuruSR/SmallNTP.git + https://github.com/GuruSR/SmallRTC.git + https://github.com/GuruSR/StableBMA.git + https://github.com/tzapu/WiFiManager.git ; unused, needed to build Watchy + sqfmi/Watchy + +;;; For debugging, try these +; build_type = debug +; monitor_filters = esp32_exception_decoder