Skip to content

Commit

Permalink
Updated -D AUTOSAVE_AFTER_SEC=10 and
Browse files Browse the repository at this point in the history
  -D USERMOD_AUTO_SAVE_ON_BOOT=true
  • Loading branch information
bangnguyendev committed May 22, 2024
1 parent 346cdca commit 08bd478
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
38 changes: 14 additions & 24 deletions platformio_override.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[platformio]
default_envs = d1_mini
; default_envs = esp32dev
; default_envs = d1_mini, esp8266_2m, esp32dev
; default_envs = d1_mini, esp32dev

[env:d1_mini]
board = d1_mini
Expand All @@ -18,47 +18,37 @@ board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp8266} -D WLED_RELEASE_NAME=ESP8266
-D USERMOD_AUTO_SAVE
-D AUTOSAVE_AFTER_SEC=10
-D USERMOD_AUTO_SAVE_ON_BOOT=true
-D USERMOD_ANALOG_CLOCKQ
; -D USERMOD_MODE_SORT
-D WLED_DISABLE_OTA
; -D WLED_DISABLE_OTA
-D WLED_DISABLE_ALEXA
-D WLED_DISABLE_INFRARED # IR dieu khien hong ngoai
; -D WLED_DISABLE_INFRARED # IR dieu khien hong ngoai
-D WLED_ADD_EEPROM_SUPPORT
-D DEFAULT_LED_COLOR_ORDER=COL_ORDER_GRB
-D LEDPIN=12
-D BTNPIN=0
-D TOUCHPIN=T0
-D IRPIN=4
lib_deps = ${esp8266.lib_deps}
; monitor_filters = esp8266_exception_decoder
; change MCU frequency
board_build.f_cpu = 160000000L
; setupCOM
upload_port = COM[3]


[env:esp8266_2m]
board = d1_mini
platform = ${common.platform_wled_default}
platform_packages = ${common.platform_packages}
upload_speed = 921600
board_build.ldscript = ${common.ldscript_4m1m}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp8266}
-D USERMOD_AUTO_SAVE
; -D USERMOD_MODE_SORT
-D WLED_DISABLE_OTA
-D WLED_DISABLE_ALEXA
-D WLED_ADD_EEPROM_SUPPORT
lib_deps = ${esp8266.lib_deps}
; monitor_filters = esp8266_exception_decoder
; change MCU frequency
board_build.f_cpu = 160000000L
; setupCOM
upload_port = COM[4]

[env:esp32dev]
board = esp32dev
platform = ${esp32.platform}
platform_packages = ${esp32.platform_packages}
build_unflags = ${common.build_unflags}
build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32 #-D WLED_DISABLE_BROWNOUT_DET
-D USERMOD_AUTO_SAVE
-D AUTOSAVE_AFTER_SEC=10
-D USERMOD_AUTO_SAVE_ON_BOOT=true
-D WLED_ADD_EEPROM_SUPPORT
-D DEFAULT_LED_COLOR_ORDER=COL_ORDER_GRB
lib_deps = ${esp32.lib_deps}
monitor_filters = esp32_exception_decoder
board_build.partitions = ${esp32.default_partitions}
Expand Down
2 changes: 1 addition & 1 deletion wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ void serializeInfo(JsonObject root)
root[F("opt")] = os;

root[F("brand")] = "ARGB";
root[F("product")] = F("berry");
root[F("product")] = F("@ARGB-LED");
root["mac"] = escapedMac;
char s[16] = "";
if (Network.isConnected())
Expand Down

0 comments on commit 08bd478

Please sign in to comment.