From bfb2514db7dd9278c6eae61b24467deee65c0927 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Mon, 13 Nov 2023 21:19:22 +0000 Subject: [PATCH] Adding options to build for the new TFT OpenEVSE board --- .github/workflows/build.yaml | 2 ++ platformio.ini | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 17b0bd26..7a508823 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,6 +58,8 @@ jobs: - wt32-eth01 - elecrow_esp32_hmi - elecrow_esp32_hmi_dev + - openevse_wifi_tft_v1 + - openevse_wifi_tft_v1_dev gui: - name: gui-v2 repo: OpenEVSE/openevse-gui-v2 diff --git a/platformio.ini b/platformio.ini index 28b6d25c..ee3a9bee 100644 --- a/platformio.ini +++ b/platformio.ini @@ -405,3 +405,31 @@ upload_protocol = custom upload_command = curl -F firmware=@$SOURCE http://$UPLOAD_PORT/update #build_type = debug #board_build.partitions = ${common.build_partitions_debug} + +[env:openevse_wifi_tft_v1] +board = denky32 +build_flags = + ${common.build_flags} + ${common.src_build_flags} + -D DEBUG_PORT=Serial2 + -D RAPI_PORT=Serial + -D NEO_PIXEL_PIN=10 + -D NEO_PIXEL_LENGTH=14 + -D WIFI_PIXEL_NUMBER=1 + -D WIFI_BUTTON=0 + -D WIFI_BUTTON_PRESSED_STATE=LOW +lib_deps = + ${common.lib_deps} + ${common.gfx_display_libs} + ${common.neopixel_lib} + +[env:openevse_wifi_tft_v1_dev] +extends = env:openevse_wifi_tft_v1 +build_flags = + ${env:openevse_wifi_tft_v1.build_flags} + ${common.debug_flags} + ${common.gfx_display_build_flags} +upload_protocol = custom +upload_command = curl -F firmware=@$SOURCE http://$UPLOAD_PORT/update +#build_type = debug +#board_build.partitions = ${common.build_partitions_debug}