@@ -232,8 +232,8 @@ build_flags =
232232 -D TX1 =16
233233upload_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
237237board = esp32-gateway
238238build_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
256256build_flags =
257257 ${common.build_flags}
258258 ${common.version}
@@ -271,6 +271,27 @@ build_flags =
271271board_build.extra_flags = " -DARDUINO_ESP32_GATEWAY=\'E\'"
272272upload_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
276297extends = env:openevse_esp32-gateway
0 commit comments