Skip to content

Commit

Permalink
Created individual env for wt32-et01 board with 2812 led bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgarcia99 committed Aug 22, 2024
1 parent c2f990d commit 765252f
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,33 @@ build_flags =
-D RX1=25
-D TX1=27


[env:wt32-eth01]
# For Wireless Tag
board = wt32-eth01
build_flags =
${common.build_flags}
${common.src_build_flags}
-D WIFI_LED=12
-D WIFI_LED_ON_STATE=HIGH
-D WIFI_BUTTON=4
-D WIFI_BUTTON_PRESSED_STATE=LOW
# -D DEBUG_PORT=Serial
-D RAPI_PORT=Serial2
-D ENABLE_WIRED_ETHERNET
-D RESET_ETH_PHY_ON_BOOT=1
-D RX2=5
-D TX2=17
-D ETH_PHY_TYPE=ETH_PHY_LAN8720
-D ETH_PHY_ADDR=1
-D ETH_PHY_MDC=23
-D ETH_PHY_MDIO=18
-D ETH_CLK_MODE=ETH_CLOCK_GPIO0_IN
-D ETH_PHY_POWER=16

[env:wt32-eth01-ws2812]
# For Wireless Tag
board = wt32-eth01
lib_deps =
${common.lib_deps}
${common.neopixel_lib}
Expand All @@ -400,14 +424,16 @@ build_flags =
-D WIFI_BUTTON_PRESSED_STATE=LOW
# -D DEBUG_PORT=Serial
-D RAPI_PORT=Serial2
# If using PN532 RFID reader through I2C
# Need to comment pin definition for SDA and SCL at .platformio/packages/framework-arduinoespressif32/variants/wt32-eth01/pins_arduino.h
-D I2C_SDA=2
-D I2C_SCL=4
-D SDA=2
-D SCL=4
#-D I2C_SDA=2
#-D I2C_SCL=4
#-D ENABLE_PN532
# If Using MCP9808
#-D SDA=2
#-D SCL=4
#-D ENABLE_MCP9808
-D ENABLE_WIRED_ETHERNET
-D ENABLE_MCP9808
-D ENABLE_PN532
-D RESET_ETH_PHY_ON_BOOT=1
-D RX2=5
-D TX2=17
Expand Down

0 comments on commit 765252f

Please sign in to comment.