Skip to content

Commit b82188a

Browse files
committed
add env for ESP gateway rev F and G
1 parent 39a10b9 commit b82188a

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

platformio.ini

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ build_flags =
232232
-D TX1=16
233233
upload_command = curl -F firmware=@$SOURCE http://$UPLOAD_PORT/update --progress-bar | cat
234234

235-
[env:openevse_esp32-gateway]
236-
#For hardware older than RevE
235+
[env:openevse_esp32-gateway-old]
236+
# For hardware older than RevE
237237
board = esp32-gateway
238238
build_flags =
239239
${common.build_flags}
@@ -250,9 +250,9 @@ build_flags =
250250
# https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFi/examples/ETH_LAN8720/ETH_LAN8720.ino
251251

252252
[env:openevse_esp32-gateway-e]
253-
# Tested working with hardware RevE and RevF
254-
#https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
255-
extends = env:openevse_esp32-gateway
253+
# For hardware RevE
254+
# https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
255+
board = esp32-gateway
256256
build_flags =
257257
${common.build_flags}
258258
${common.version}
@@ -271,6 +271,27 @@ build_flags =
271271
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'E\'"
272272
upload_speed = 921600
273273

274+
[env:openevse_esp32-gateway-f]
275+
# For hardware RevF and RevG
276+
# https://github.com/OpenEVSE/ESP32_WiFi_V3.x/blob/master/docs/wired-ethernet.md
277+
board = esp32-gateway
278+
build_flags =
279+
${common.build_flags}
280+
${common.version}
281+
${common.src_build_flags}
282+
-D WIFI_LED=33
283+
-D WIFI_LED_ON_STATE=HIGH
284+
-D WIFI_BUTTON=34
285+
-D WIFI_BUTTON_PRESSED_STATE=LOW
286+
-D DEBUG_PORT=Serial
287+
-D RAPI_PORT=Serial2
288+
-D ENABLE_WIRED_ETHERNET
289+
-D RANDOM_SEED_CHANNEL=1
290+
-D RX2=16
291+
-D TX2=32
292+
board_build.extra_flags = "-DARDUINO_ESP32_GATEWAY=\'F\'"
293+
upload_speed = 921600
294+
274295
[env:openevse_esp32-poe-iso]
275296
# Tested against Rev C board
276297
extends = env:openevse_esp32-gateway

0 commit comments

Comments
 (0)