forked from OpenEVSE/openevse_esp32_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/openevse/espidf4' into mqtt_isp…
…edfv4
- Loading branch information
Showing
12 changed files
with
116 additions
and
1,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,5 +90,3 @@ lib/StreamSpy | |
lib/MicroTasks | ||
|
||
*.bin | ||
|
||
/%SystemDrive% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,8 +62,9 @@ debug_flags = | |
#-D ENABLE_PROFILE | ||
src_build_flags = | ||
# -D ARDUINOJSON_USE_LONG_LONG | ||
# -D ENABLE_ASYNC_WIFI_SCAN | ||
# -D ENABLE_ASYNC_WIFI_SCAN | ||
build_flags = | ||
-D ESP32 | ||
-D CS_PLATFORM=CS_P_ESP32 | ||
-D MG_ENABLE_SSL=1 | ||
-D MG_ENABLE_HTTP_STREAMING_MULTIPART=1 | ||
|
@@ -77,6 +78,7 @@ build_flags = | |
#-D CS_ENABLE_DEBUG | ||
#-D MBEDTLS_DEBUG_C | ||
-D MG_ENABLE_SNTP=1 | ||
#-D ENABLE_DEBUG_MICROTASKS | ||
-D CS_PLATFORM=CS_P_ESP32 | ||
-D AO_CUSTOM_WS ; ArduinoOcpp: don't use built-in WS library | ||
-D AO_CUSTOM_CONSOLE ; ArduinoOcpp: use custom debug out | ||
|
@@ -85,48 +87,57 @@ build_flags = | |
#-D ENABLE_DEBUG_MONGOOSE_HTTP_CLIENT | ||
-D RAPI_MAX_COMMANDS=20 | ||
-D BUILD_ENV_NAME="$PIOENV" | ||
-D ARDUINO_ARCH_ESP32 | ||
-D USE_ESP32 | ||
-D USE_ESP32_FRAMEWORK_ARDUINO | ||
build_partitions = min_spiffs.csv | ||
monitor_flags = --filter=esp32_exception_decoder | ||
|
||
neopixel_lib = adafruit/Adafruit [email protected] | ||
|
||
|
||
[env] | ||
# specify exact Arduino ESP SDK version, requires platformio 3.5+ (curently dev version) | ||
# http://docs.platformio.org/en/latest/projectconf/section_env_general.html#platform | ||
#platform = https://github.com/platformio/platform-espressif32.git#feature/stage | ||
#platform = https://github.com/platformio/platform-espressif32.git#develop | ||
platform = [email protected] | ||
#platform = espressif32 | ||
|
||
[env:openevse_nodemcu-32s] | ||
platform = ${common.platform} | ||
board = nodemcu-32s | ||
framework = arduino, espidf | ||
#platform = [email protected] | ||
platform = [email protected] | ||
#framework = arduino, espidf | ||
framework = arduino | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
${common.version}.dev | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
-D WIFI_LED=2 | ||
-D WIFI_LED_ON_STATE=LOW | ||
-D RAPI_PORT=Serial2 | ||
build_flags = | ||
${common.build_flags} | ||
#upload_port = openevse.local | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
platform_packages = | ||
# ; use a special branch | ||
# framework-arduinoespressif32 @ https://github.com/marcovannoord/arduino-esp32.git#idf-release/v4.0 | ||
platformio/framework-arduinoespressif32 @ ~3.10006.0 | ||
monitor_flags = | ||
--filter=esp32_exception_decoder | ||
|
||
[env:openevse_nodemcu-32s] | ||
board = nodemcu-32s | ||
build_flags = | ||
${common.build_flags} | ||
${common.version}.dev | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
-D WIFI_LED=2 | ||
-D WIFI_LED_ON_STATE=LOW | ||
-D RAPI_PORT=Serial2 | ||
|
||
[env:openevse_esp-wrover-kit] | ||
platform = ${common.platform} | ||
board = esp-wrover-kit | ||
framework = arduino, espidf | ||
lib_deps = | ||
${common.lib_deps} | ||
${common.neopixel_lib} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.build_flags} | ||
${common.version}.dev | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
|
@@ -138,30 +149,21 @@ src_build_flags = | |
-D RED_LED=0 | ||
-D GREEN_LED=2 | ||
-D BLUE_LED=4 | ||
build_flags = | ||
${common.build_flags} | ||
-D RX1=25 | ||
-D TX1=27 | ||
-ggdb | ||
#upload_port = openevse.local | ||
#upload_protocol = espota | ||
upload_speed = 2000000 | ||
#upload_protocol = ftdi | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
lib_extra_dirs = lib | ||
|
||
# export PLATFORMIO_UPLOAD_PORT=172.16.0.157 | ||
# export PLATFORMIO_UPLOAD_FLAGS="-p 3232" | ||
|
||
[env:openevse_huzzah32_dev] | ||
platform = ${common.platform} | ||
board = featheresp32 | ||
framework = arduino, espidf | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.version}.dev | ||
${common.build_flags} | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
-D WIFI_LED=13 | ||
|
@@ -171,20 +173,11 @@ src_build_flags = | |
-D RAPI_PORT=Serial | ||
-D DEBUG_PORT=Serial2 | ||
-D SERIAL_RX_PULLUP_PIN=3 | ||
build_flags = | ||
${common.build_flags} | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
|
||
[env:openevse_huzzah32] | ||
platform = ${common.platform} | ||
board = featheresp32 | ||
framework = arduino, espidf | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.build_flags} | ||
${common.version} | ||
${common.src_build_flags} | ||
-D WIFI_LED=13 | ||
|
@@ -194,45 +187,27 @@ src_build_flags = | |
-D RAPI_PORT=Serial | ||
-D DEBUG_PORT=Serial2 | ||
-D SERIAL_RX_PULLUP_PIN=3 | ||
build_flags = | ||
${common.build_flags} | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
|
||
[env:openevse_featheresp32] | ||
platform = ${common.platform} | ||
board = featheresp32 | ||
framework = arduino, espidf | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.build_flags} | ||
${common.version}.dev | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
-D WIFI_LED=LED_BUILTIN | ||
-D WIFI_BUTTON=LED_BUILTIN | ||
-D RAPI_PORT=Serial2 | ||
-D ENABLE_DEBUG_LED | ||
build_flags = | ||
${common.build_flags} | ||
#upload_port = openevse.local | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
|
||
[env:openevse_wifi_v1] | ||
platform = ${common.platform} | ||
board = esp32dev | ||
framework = arduino, espidf | ||
lib_deps = | ||
${common.lib_deps} | ||
${common.neopixel_lib} | ||
adafruit/Adafruit MCP9808 Library @ 1.1.2 | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.build_flags} | ||
${common.version} | ||
${common.src_build_flags} | ||
${common.debug_flags} | ||
|
@@ -248,22 +223,13 @@ src_build_flags = | |
-D I2C_SCL=22 | ||
-D ENABLE_MCP9808 | ||
-D ENABLE_PN532 | ||
build_flags = | ||
${common.build_flags} | ||
-D TX1=16 | ||
upload_speed = 921600 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} | ||
|
||
[env:openevse_esp32-gateway] | ||
#For hardware older than RevE | ||
platform = ${common.platform} | ||
board = esp32-gateway | ||
framework = arduino, espidf | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
build_flags = | ||
${common.build_flags} | ||
${common.version} | ||
${common.src_build_flags} | ||
-D WIFI_LED=33 | ||
|
@@ -274,46 +240,40 @@ src_build_flags = | |
-D RAPI_PORT=Serial2 | ||
-D ENABLE_WIRED_ETHERNET | ||
-D RANDOM_SEED_CHANNEL=1 | ||
build_flags = | ||
${common.build_flags} | ||
upload_speed = 115200 | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
# https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino | ||
board_build.partitions = ${common.build_partitions} | ||
|
||
[env:openevse_esp32-gateway-e] | ||
# Tested working with hardware RevE and RevF | ||
#https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md | ||
extends = env:openevse_esp32-gateway | ||
framework = arduino, espidf | ||
build_flags = | ||
${common.build_flags} | ||
${common.version} | ||
${common.src_build_flags} | ||
-D WIFI_LED=33 | ||
-D WIFI_LED_ON_STATE=HIGH | ||
-D WIFI_BUTTON=34 | ||
-D WIFI_BUTTON_PRESSED_STATE=LOW | ||
-D DEBUG_PORT=Serial | ||
-D RAPI_PORT=Serial2 | ||
-D ENABLE_WIRED_ETHERNET | ||
-D RANDOM_SEED_CHANNEL=1 | ||
-D RX2=16 | ||
-D TX2=32 | ||
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'E\'" | ||
upload_speed = 921600 | ||
|
||
[env:openevse_esp32-heltec-wifi-lora-v2] | ||
platform = ${common.platform} | ||
board = heltec_wifi_lora_32_V2 | ||
framework = arduino, espidf | ||
lib_deps = ${common.lib_deps} | ||
lib_ignore = ${common.lib_ignore} | ||
src_build_flags = | ||
${common.version}.dev | ||
build_flags = | ||
${common.build_flags} | ||
${common.src_build_flags} | ||
${common.version}.dev | ||
-D DEBUG_PORT=Serial | ||
-D WIFI_LED=25 | ||
-D WIFI_BUTTON=2 | ||
-D WIFI_LED_ON_STATE=HIGH | ||
-D WIFI_BUTTON=2 | ||
-D WIFI_BUTTON_PRESSED_STATE=LOW | ||
-D RAPI_PORT=Serial1 | ||
build_flags = | ||
${common.build_flags} | ||
-D RX1=25 | ||
-D TX1=27 | ||
#upload_port = openevse.local | ||
#upload_speed = 921600 | ||
upload_protocol = esptool | ||
monitor_speed = 115200 | ||
extra_scripts = ${common.extra_scripts} | ||
board_build.partitions = ${common.build_partitions} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.