From 1672a47f64e57782f3399750eeba27d766bb56e1 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Sun, 27 Oct 2024 20:58:07 +0100 Subject: [PATCH] Update C6 mapping, added esp32_gateway_rev_e and esp32_gateway_rev_f --- platformio.ini | 59 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index e2e95ae0..e0a3e970 100644 --- a/platformio.ini +++ b/platformio.ini @@ -336,12 +336,15 @@ build_flags = -D YASOLR_OUTPUT2_RELAY_PIN=-1 -D YASOLR_OUTPUT2_TEMP_PIN=-1 -D YASOLR_PZEM_RX_PIN=-1 - -D YASOLR_PZEM_SERIAL=Serial1 + -D YASOLR_PZEM_SERIAL=Serial0 -D YASOLR_PZEM_TX_PIN=-1 -D YASOLR_RELAY1_PIN=-1 -D YASOLR_RELAY2_PIN=-1 -D YASOLR_SYSTEM_TEMP_PIN=-1 -D YASOLR_ZCD_PIN=-1 + ; -D ARDUINO_USB_CDC_ON_BOOT=1 + ; -D YASOLR_PZEM_RX_PIN=-17 + ; -D YASOLR_PZEM_TX_PIN=-16 [env:oss-esp32c6] board = esp32-c6-devkitc-1 @@ -487,8 +490,54 @@ build_flags = -D YASOLR_SYSTEM_TEMP_PIN=-1 -D YASOLR_ZCD_PIN=-1 -[env:oss-esp32_gateway] +[env:oss-esp32_gateway_rev_e] +board = esp32-gateway +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_E" +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin +lib_deps = + ${env.lib_deps} + ${oss.lib_deps} +lib_ignore = + ${env.lib_ignore} + ${oss.lib_ignore} +build_flags = + ${env.build_flags} + ${oss.build_flags} + ${esp32_gateway.build_flags} + +[env:pro-esp32_gateway_rev_e] +board = esp32-gateway +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_E" +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin +lib_deps = + ${env.lib_deps} + ${pro.lib_deps} +lib_ignore = + ${env.lib_ignore} + ${pro.lib_ignore} +build_flags = + ${env.build_flags} + ${pro.build_flags} + ${esp32_gateway.build_flags} + +[env:trial-esp32_gateway_rev_e] +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_E" +board = esp32-gateway +custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin +lib_deps = + ${env.lib_deps} + ${trial.lib_deps} +lib_ignore = + ${env.lib_ignore} + ${trial.lib_ignore} +build_flags = + ${env.build_flags} + ${trial.build_flags} + ${esp32_gateway.build_flags} + +[env:oss-esp32_gateway_rev_f] board = esp32-gateway +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_F" custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin lib_deps = ${env.lib_deps} @@ -501,8 +550,9 @@ build_flags = ${oss.build_flags} ${esp32_gateway.build_flags} -[env:pro-esp32_gateway] +[env:pro-esp32_gateway_rev_f] board = esp32-gateway +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_F" custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin lib_deps = ${env.lib_deps} @@ -515,7 +565,8 @@ build_flags = ${pro.build_flags} ${esp32_gateway.build_flags} -[env:trial-esp32_gateway] +[env:trial-esp32_gateway_rev_f] +board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY_F" board = esp32-gateway custom_safeboot_url = https://github.com/mathieucarbou/MycilaSafeBoot/releases/download/v1.0.5/safeboot-esp32-gateway.bin lib_deps =