diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 8e797b9..7fc80f5 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -6,11 +6,12 @@ on: environment: description: 'Build and test environment' required: true - default: 'test_esp32s3' + default: 'test_ctrl32' type: choice options: - - test_esp32s3 - test_esp32 + - test_ctrl32 + - test_esp32s3 - test_esp8266 jobs: diff --git a/platformio.ini b/platformio.ini index fa614b8..041eaef 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,4 +1,4 @@ -;PlatformIO Project Configuration File +; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags @@ -14,10 +14,10 @@ ; ============================================================ ; default_envs = spaiot32 ; Release version ; default_envs = spaiot32_debug ; Debug version -; default_envs = spaiot32_jtag ; Debug version with JTAG +; default_envs = spaiotctrl32 ; Release version +; default_envs = spaiotctrl32_debug ; Debug version ; default_envs = spaiot32s3 ; Release version ; default_envs = spaiot32s3_debug ; Debug version -; default_envs = spaiot32s3_jtag ; Debug version with JTAG ; default_envs = spaiot8266 ; Release version ; default_envs = spaiot8266_debug ; Debug version ; default_envs = test_esp32 ; Unit test @@ -37,11 +37,15 @@ lib_deps = ; ============================================================ ; 115200, 230400, 460800, 921600 ; upload_speed = 460800 -;upload_port = COM11 +; upload_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button monitor_speed = 115200 -;monitor_port = COM11 +; monitor_port = COM11 test_speed = 115200 -;test_port = COM11 +; test_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button + +; JTAG Debugging +debug_tool = esp-prog +debug_init_break = tbreak setup [debug] build_type = debug @@ -57,79 +61,84 @@ flags = -D NODEBUG_SPAIOT -D UNITY_INCLUDE_PRINT_FORMATTED -[jtag] -;upload_protocol = olimex-arm-usb-tiny-h -debug_tool = olimex-arm-usb-tiny-h +;-------------------------------------------------------------------------- +; ENVIRONMENTS +;-------------------------------------------------------------------------- -[strict_ldf] -lib_ldf_mode = chain+ -lib_compat_mode = strict +; ------------- List of Spa Hardware settings ------------- +; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model +; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model +; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model +; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model +; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model +; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model +; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model +; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model +; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model +; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model -[esp32_base] +[env:spaiot32] ; https://docs.platformio.org/en/latest/platforms/espressif32.html platform = espressif32 + +board = esp32dev board_build.f_cpu = 240000000L board_build.partitions = min_spiffs.csv -[esp8266_base] -; https://docs.platformio.org/en/stable/platforms/espressif8266.html -platform = espressif8266 -board_build.f_cpu = 160000000L -board_build.ldscript = eagle.flash.4m1m.ld - -;-------------------------------------------------------------------------- -; ENVIRONMENTS -;-------------------------------------------------------------------------- - -[env:spaiot32] -extends = esp32_base, strict_ldf, release -board = esp32dev build_flags = ${release.flags} -D LED_BUILTIN=2 - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT32SSP" + -D SPAIOT_MODEL="SPAIOT32SSP" [env:spaiot32_debug] -extends = esp32_base, strict_ldf, debug +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + board = esp32dev +board_build.f_cpu = 240000000L +board_build.partitions = min_spiffs.csv + build_flags = ${debug.flags} -D LED_BUILTIN=2 ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial + -D DEBUG_ESP_PORT=Serial ; set your debug led debug (default=LED_BUILTIN) ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN + -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT32SSP" + -D DEBUG_LED_ONSTATE=HIGH + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOT32SSP" + +[env:spaiotctrl32] +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + +board = esp32dev +board_upload.flash_size = 16MB +board_build.partitions = default_16MB.csv +board_build.f_cpu = 240000000L +board_build.flash_mode = dio +board_build.f_flash = 80000000L + +build_flags = + ${release.flags} + -D LED_BUILTIN=2 + -D SPAIOT_MODEL="SPAIOT32SSP" + +[env:spaiotctrl32_debug] +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 -[env:spaiot32_jtag] -extends = esp32_base, strict_ldf, debug, jtag board = esp32dev +board_upload.flash_size = 16MB +board_build.partitions = default_16MB.csv +board_build.f_cpu = 240000000L +board_build.flash_mode = dio +board_build.f_flash = 80000000L + build_flags = ${debug.flags} -D LED_BUILTIN=2 @@ -140,198 +149,110 @@ build_flags = ; comment the folowing line to disable led debugging -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model + -D DEBUG_LED_ONSTATE=HIGH + ; set your spa model, see comment at the top of the file -D SPAIOT_MODEL="SPAIOT32SSP" [env:spaiot32s3] -extends = esp32_base, strict_ldf, release +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + board = lolin_s3 +board_build.f_cpu = 240000000L +board_build.partitions = min_spiffs.csv + build_flags = ${release.flags} - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOTS3SSP" + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOTS3SSP" [env:spaiot32s3_debug] -extends = esp32_base, strict_ldf, debug -board = lolin_s3 -build_flags = - ${debug.flags} - ; set your debug output (default=Serial) - ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial0 - ; set your debug led debug (default=LED_BUILTIN) - ; comment the folowing line to disable led debugging - -D DEBUG_LED=13 - ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=HIGH - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOTS3SSP" - -[env:spaiot32s3_jtag] -extends = esp32_base, strict_ldf, debug, jtag +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + board = lolin_s3 +board_build.f_cpu = 240000000L +board_build.partitions = min_spiffs.csv + build_flags = ${debug.flags} ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial0 + -D DEBUG_ESP_PORT=Serial0 ; set your debug led debug (default=LED_BUILTIN) ; comment the folowing line to disable led debugging - -D DEBUG_LED=13 + -D DEBUG_LED=13 ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=HIGH - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOTS3SSP" + -D DEBUG_LED_ONSTATE=HIGH + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOTS3SSP" [env:spaiot8266] -extends = esp8266_base, strict_ldf, release +; https://docs.platformio.org/en/stable/platforms/espressif8266.html +platform = espressif8266 + board = esp12e +board_build.f_cpu = 160000000L +board_build.ldscript = eagle.flash.4m1m.ld + build_flags = ${release.flags} -D LED_BUILTIN=2 - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT8266SSP" + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOT8266SSP" [env:spaiot8266_debug] -extends = esp8266_base, strict_ldf, debug +; https://docs.platformio.org/en/stable/platforms/espressif8266.html +platform = espressif8266 + board = esp12e +board_build.f_cpu = 160000000L +board_build.ldscript = eagle.flash.4m1m.ld + build_flags = -D LED_BUILTIN=2 ${debug.flags} ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial + -D DEBUG_ESP_PORT=Serial ; set your debug led debug (default=LED_BUILTIN) ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN + -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT8266SSP" + -D DEBUG_LED_ONSTATE=LOW + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOT8266SSP" [env:test_esp32] -extends = esp32_base, strict_ldf, debug +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + board = esp32dev +board_build.f_cpu = 240000000L +board_build.partitions = min_spiffs.csv + build_flags = ${debug.flags} -D LED_BUILTIN=2 ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial - ; set your debug led debug (default=LED_BUILTIN) - ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN - ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT32SSP" -upload_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button -test_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button - -[env:test_esp8266] -extends = esp8266_base, strict_ldf, debug -board = esp12e -build_flags = - -D LED_BUILTIN=2 - -Wno-unused-variable - ${debug.flags} - ; set your debug output (default=Serial) - ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial + -D DEBUG_ESP_PORT=Serial ; set your debug led debug (default=LED_BUILTIN) ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN + -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT8266SSP" -upload_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button -test_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button + -D DEBUG_LED_ONSTATE=HIGH + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOT32SSP" [env:test_esp32s3] -extends = esp32_base, strict_ldf, debug +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + board = lolin_s3 +board_build.f_cpu = 240000000L +board_build.partitions = min_spiffs.csv + ; --------------------------------------------------------------------- ; LOLIN S3 Serial ports ; Config in https://github.com/platformio/platform-espressif32/blob/develop/boards/lolin_s3.json @@ -353,70 +274,23 @@ build_flags = -D DEBUG_LED=13 ; set your debug led on state (default=LOW) -D DEBUG_LED_ONSTATE=HIGH - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOTS3SSP" -upload_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button -test_port = COM5 ; change to your port, if not set, the test stop while pressing the reset button - -[env:esp32doit] -extends = esp32_base, strict_ldf, release -board = esp32doit-devkit-v1 -build_flags = - ${release.flags} - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT32SSP" + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOTS3SSP" -[env:esp32doit_debug] -extends = esp32_base, strict_ldf, debug -board = esp32doit-devkit-v1 -build_flags = - ${debug.flags} - ; set your debug output (default=Serial) - ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial - ; set your debug led debug (default=LED_BUILTIN) - ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN - ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=HIGH - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT32SSP" +[env:test_ctrl32] +; https://docs.platformio.org/en/latest/platforms/espressif32.html +platform = espressif32 + +board = esp32dev +board_upload.flash_size = 16MB +board_build.partitions = default_16MB.csv +board_build.f_cpu = 240000000L +board_build.flash_mode = dio +board_build.f_flash = 80000000L -[env:esp32doit_jtag] -extends = esp32_base, strict_ldf, debug, jtag -board = esp32doit-devkit-v1 build_flags = ${debug.flags} + -D LED_BUILTIN=2 ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging -D DEBUG_ESP_PORT=Serial @@ -425,79 +299,30 @@ build_flags = -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) -D DEBUG_LED_ONSTATE=HIGH - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model + ; set your spa model, see comment at the top of the file -D SPAIOT_MODEL="SPAIOT32SSP" -[env:nodemcuv2] -extends = esp8266_base, strict_ldf, release -board = nodemcuv2 -build_flags = - ${release.flags} - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT8266SSP" - -[env:nodemcuv2_debug] -extends = esp8266_base, strict_ldf, debug -board = nodemcuv2 -build_flags = - ${debug.flags} - ; set your debug output (default=Serial) - ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial - ; set your debug led debug (default=LED_BUILTIN) - ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN - ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=LOW - ; ------------- List of Spa Hardware settings ------------- - ; "SPAIOT8266SSP" : SpaIot board with ESP8266 and 74HC4051 for SSP Spa model - ; "SPAIOT8266SJB" : SpaIot board with ESP8266 and 74HC4051 for SJB Spa model - ; "SPAIOT32SSP" : SpaIot board with ESP32 and 74HC4051 for SSP Spa model - ; "SPAIOT32SJB" : SpaIot board with ESP32 and 74HC4051 for SJB Spa model - ; "SPAIOTS3SSP" : SpaIot board with ESP32-S3 and 74HC4051 for SSP Spa model - ; "SPAIOTS3SJB" : SpaIot board with ESP32-S3 and 74HC4051 for SJB Spa model - ; "SPAIOT328574SSP" : SpaIot board with ESP32 and PCF8574 for SSP Spa model - ; "SPAIOT328574SJB" : SpaIot board with ESP32 and PCF8574 for SJB Spa model - ; "SPAIOTS38574SSP" : SpaIot board with ESP32-S3 and PCF8574 for SSP Spa model - ; "SPAIOTS38574SJB" : SpaIot board with ESP32-S3 and PCF8574 for SJB Spa model - -D SPAIOT_MODEL="SPAIOT8266SSP" - -[env:minikit32] -extends = esp32_base, strict_ldf, release -board = mhetesp32minikit -build_flags = - ${release.flags} +[env:test_esp8266] +; https://docs.platformio.org/en/stable/platforms/espressif8266.html +platform = espressif8266 + +board = esp12e +board_build.f_cpu = 160000000L +board_build.ldscript = eagle.flash.4m1m.ld -[env:minikit32_debug] -extends = esp32_base, strict_ldf, debug -board = mhetesp32minikit build_flags = + -D LED_BUILTIN=2 + -Wno-unused-variable ${debug.flags} ; set your debug output (default=Serial) ; comment the folowing line to disable serial debugging - -D DEBUG_ESP_PORT=Serial + -D DEBUG_ESP_PORT=Serial ; set your debug led debug (default=LED_BUILTIN) ; comment the folowing line to disable led debugging - -D DEBUG_LED=LED_BUILTIN + -D DEBUG_LED=LED_BUILTIN ; set your debug led on state (default=LOW) - -D DEBUG_LED_ONSTATE=HIGH + -D DEBUG_LED_ONSTATE=LOW + ; set your spa model, see comment at the top of the file + -D SPAIOT_MODEL="SPAIOT8266SSP" + +; --------------------------------------------------------------------- \ No newline at end of file