diff --git a/components/platform_console/presets.json b/components/platform_console/presets.json index 95110be3..94c23d6e 100644 --- a/components/platform_console/presets.json +++ b/components/platform_console/presets.json @@ -11,19 +11,7 @@ "spdif_config": "" } ] -}, { - "name": "ESP32A1S Old Model config 2 (AC101)", - "config": [{ - "dac_config": "model=AC101,bck=27,ws=26,do=25,di=35,sda=33,scl=32" - }, { - "dac_controlset": "" - }, { - "set_GPIO": "21=amp,22=green:0,5=jack:0" - }, { - "spdif_config": "" - } - ] -}, { +}, { "name": "ESP32A1S V2.2+ variant 1 (ES8388)", "config": [{ "dac_config": "model=ES8388,bck=27,ws=25,do=26,sda=33,scl=32,di=35,i2c=16" @@ -47,5 +35,16 @@ "spdif_config": "" } ] +}, +{ + "name": "T-WATCH2020 by LilyGo", + "config": [ + {"dac_config": "model=I2S,bck=26,ws=25,do=33,i2c=106,sda=21,scl=22"}, + {"dac_controlset": "{ \"init\": [ {\"reg\":41, \"val\":128}, {\"reg\":18, \"val\":255} ], \"poweron\": [ {\"reg\":18, \"val\":64, \"mode\":\"or\"} ], \"poweroff\": [ {\"reg\":18, \"val\":191, \"mode\":\"and\"} ] }"}, + {"set_GPIO": "21=amp,22=green:0,39=jack:0"}, + {"spi_config":"dc=27,data=19,clk=18"}, + {"display_config": "SPI,driver=ST7789,width=240,height=240,cs=5,back=12,speed=16000000,HFlip,VFlip"}, + {"spdif_config": ""} + ] } ] \ No newline at end of file diff --git a/components/wifi-manager/network_manager.h b/components/wifi-manager/network_manager.h index 7f3f51f2..79a2e7bf 100644 --- a/components/wifi-manager/network_manager.h +++ b/components/wifi-manager/network_manager.h @@ -17,7 +17,7 @@ extern "C" { #define STA_POLLING_MIN (15 * 1000) #define STA_POLLING_MAX (10 * 60 * 1000) -#define ETH_LINK_DOWN_REBOOT (2 * 1000) +#define ETH_LINK_DOWN_REBOOT (4 * 1000) #define ETH_DHCP_FAIL (6 * 1000) #define WIFI_DHCP_FAIL (6 * 1000)