From cfaef338fa528f25e82ceb9a4a2dc76800eb81a6 Mon Sep 17 00:00:00 2001 From: unlogisch04 <98281608+unlogisch04@users.noreply.github.com> Date: Thu, 20 Jun 2024 00:14:31 +0200 Subject: [PATCH] Change add BNO085 to exeption; update esp32/esp8266 --- platformio-tools.ini | 48 ++++++++++++++++++++++---------------------- platformio.ini | 18 ++++++++--------- src/main.cpp | 6 +++--- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/platformio-tools.ini b/platformio-tools.ini index 91535e7f2..f77b312b5 100644 --- a/platformio-tools.ini +++ b/platformio-tools.ini @@ -13,78 +13,78 @@ build_unflags = -std=gnu++11 -std=gnu++17 [env:BOARD_SLIMEVR] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_SLIMEVR_DEV] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_NODEMCU] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_WEMOSD1MINI] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_TTGO_TBASE] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_WEMOSWROOM02] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e [env:BOARD_WROOM32] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip board = esp32dev [env:BOARD_ESP01] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip board = esp32dev [env:BOARD_LOLIN_C3_MINI] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip build_flags = ${env.build_flags} -DESP32C3 board = lolin_c3_mini [env:BOARD_BEETLE32C3] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip build_flags = ${env.build_flags} -DESP32C3 board = dfrobot_beetle_esp32c3 [env:BOARD_ES32C3DEVKITM1] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip build_flags = ${env.build_flags} -DESP32C3 board = esp32-c3-devkitm-1 [env:BOARD_XIAO_ESP32C3] -platform = espressif32 @ 6.5.0 +platform = espressif32 @ 6.7.0 platform_packages = - platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 - platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip build_flags = ${env.build_flags} -DESP32C3 diff --git a/platformio.ini b/platformio.ini index 5fd9284ce..5e79a00fb 100644 --- a/platformio.ini +++ b/platformio.ini @@ -58,7 +58,7 @@ build_unflags = -Os -std=gnu++11 -std=gnu++17 ; Settings for different boards [env:esp12e] -platform = espressif8266 @ 4.2.0 +platform = espressif8266 @ 4.2.1 board = esp12e ; Comment out this line below if you have any trouble uploading the firmware ; and if it has a CP2102 on it (a square chip next to the usb port): change to 3000000 (3 million) for even faster upload speed @@ -66,13 +66,13 @@ upload_speed = 921600 ; Uncomment below if you want to build for ESP-01 ;[env:esp01_1m] -;platform = espressif8266 @ 4.2.0 +;platform = espressif8266 @ 4.2.1 ;board = esp01_1m ;board_build.arduino.ldscript = "eagle.flash.1m64.ld" ; Uncomment below if you want to build for ESP8285 (ESP8266 with embedded Flash) ;[env:esp8285] -;platform = espressif8266 @ 4.2.0 +;platform = espressif8266 @ 4.2.1 ;board = esp8285 ;board_build.arduino.ldscript = "eagle.flash.1m64.ld" ;board_build.flash_mode = dout @@ -80,10 +80,10 @@ upload_speed = 921600 ; Uncomment below if you want to build for esp32 ; Check your board name at https://docs.platformio.org/en/latest/platforms/espressif32.html#boards ; [env:esp32] -; platform = espressif32 @ 6.5.0 +; platform = espressif32 @ 6.7.0 ; platform_packages = -; platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 -; platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 +; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 +; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip ; board = esp32dev ; Comment out this line below if you have any trouble uploading the firmware - and if it has a CP2102 on it (a square chip next to the usb port): change to 3000000 (3 million) for even faster upload speed ;upload_speed = 921600 @@ -98,10 +98,10 @@ upload_speed = 921600 ; -DARDUINO_USB_CDC_ON_BOOT=1 ;[env:esp32c3] -;platform = espressif32 @ 6.5.0 +;platform = espressif32 @ 6.7.0 ;platform_packages = -; platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.0-alpha3 -; platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1 +; framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.1 +; framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.1/esp32-arduino-libs-3.0.1.zip ;build_flags = ; ${env.build_flags} ; -DESP32C3 diff --git a/src/main.cpp b/src/main.cpp index 9273451eb..04c8df130 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,10 +71,10 @@ void setup() SerialCommands::setUp(); +#if IMU != IMU_BNO085 I2CSCAN::clearBus(PIN_IMU_SDA, PIN_IMU_SCL); // Make sure the bus isn't stuck when resetting ESP without powering it down - // Fixes I2C issues for certain IMUs. Previously this feature was enabled for selected IMUs, now it's enabled for all. - // If some IMU turned out to be broken by this, check needs to be re-added. - + // Fixes I2C issues for certain IMUs. Only has not been tested on IMUs above. Testing advised when adding other IMUs. +#endif // join I2C bus #if ESP32