mirror of
https://github.com/wled/WLED.git
synced 2025-07-25 11:46:34 +00:00
cleaned up old references to USE_ALT_DISPlAY that aren't used anymore in the code/source files; fixed readme.md documents and updated instructions; removed referencies to old usermods; fixed invalid filenames; removed referencies to old usermods; checked cycle options; splitted and fixed platformio_override.sample.ini;
This commit is contained in:
parent
832599b8c5
commit
dcfdca6351
@ -111,7 +111,6 @@ build_flags = ${common.build_flags} ${esp8266.build_flags}
|
|||||||
;
|
;
|
||||||
; Use 4 Line Display usermod with SPI display
|
; Use 4 Line Display usermod with SPI display
|
||||||
; -D USERMOD_FOUR_LINE_DISPLAY
|
; -D USERMOD_FOUR_LINE_DISPLAY
|
||||||
; -D USE_ALT_DISPlAY # mandatory
|
|
||||||
; -DFLD_SPI_DEFAULT
|
; -DFLD_SPI_DEFAULT
|
||||||
; -D FLD_TYPE=SSD1306_SPI64
|
; -D FLD_TYPE=SSD1306_SPI64
|
||||||
; -D FLD_PIN_CLOCKSPI=14
|
; -D FLD_PIN_CLOCKSPI=14
|
||||||
@ -377,7 +376,6 @@ build_flags = ${common.build_flags} ${esp32.build_flags}
|
|||||||
-D USERMOD_DALLASTEMPERATURE
|
-D USERMOD_DALLASTEMPERATURE
|
||||||
-D USERMOD_FOUR_LINE_DISPLAY
|
-D USERMOD_FOUR_LINE_DISPLAY
|
||||||
-D TEMPERATURE_PIN=23
|
-D TEMPERATURE_PIN=23
|
||||||
-D USE_ALT_DISPlAY ; new versions of USERMOD_FOUR_LINE_DISPLAY and USERMOD_ROTARY_ENCODER_UI
|
|
||||||
-D USERMOD_AUDIOREACTIVE
|
-D USERMOD_AUDIOREACTIVE
|
||||||
lib_deps = ${esp32.lib_deps}
|
lib_deps = ${esp32.lib_deps}
|
||||||
OneWire@~2.3.5
|
OneWire@~2.3.5
|
||||||
|
@ -7,11 +7,12 @@ platform = ${esp32.platform}
|
|||||||
build_unflags = ${common.build_unflags}
|
build_unflags = ${common.build_unflags}
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags_esp32}
|
${common.build_flags_esp32}
|
||||||
-D USERMOD_FOUR_LINE_DISPLAY -D USE_ALT_DISPlAY
|
-D USERMOD_FOUR_LINE_DISPLAY
|
||||||
-D USERMOD_ROTARY_ENCODER_UI -D ENCODER_DT_PIN=18 -D ENCODER_CLK_PIN=5 -D ENCODER_SW_PIN=19
|
-D FLD_TYPE=SH1106
|
||||||
upload_speed = 460800
|
-D I2CSCLPIN=27
|
||||||
|
-D I2CSDAPIN=26
|
||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${esp32.lib_deps}
|
${esp32.lib_deps}
|
||||||
U8g2@~2.34.4
|
U8g2
|
||||||
Wire
|
Wire
|
||||||
|
|
@ -1,16 +1,8 @@
|
|||||||
# I2C/SPI 4 Line Display Usermod ALT
|
# I2C/SPI 4 Line Display Usermod ALT
|
||||||
|
|
||||||
Thank you to the authors of the original version of these usermods. It would not have been possible without them!
|
This usermod could be used in compination with `usermod_v2_rotary_encoder_ui_ALT`.
|
||||||
"usermod_v2_four_line_display"
|
|
||||||
"usermod_v2_rotary_encoder_ui"
|
|
||||||
|
|
||||||
The core of these usermods are a copy of the originals. The main changes are to the FourLineDisplay usermod.
|
## Functionalities
|
||||||
The display usermod UI has been completely changed.
|
|
||||||
|
|
||||||
|
|
||||||
The changes made to the RotaryEncoder usermod were made to support the new UI in the display usermod.
|
|
||||||
Without the display, it functions identical to the original.
|
|
||||||
The original "usermod_v2_auto_save" will not work with the display just yet.
|
|
||||||
|
|
||||||
Press the encoder to cycle through the options:
|
Press the encoder to cycle through the options:
|
||||||
* Brightness
|
* Brightness
|
||||||
@ -18,26 +10,18 @@ Press the encoder to cycle through the options:
|
|||||||
* Intensity
|
* Intensity
|
||||||
* Palette
|
* Palette
|
||||||
* Effect
|
* Effect
|
||||||
* Main Color (only if display is used)
|
* Main Color
|
||||||
* Saturation (only if display is used)
|
* Saturation
|
||||||
|
|
||||||
Press and hold the encoder to display Network Info. If AP is active, it will display AP, SSID and password
|
Press and hold the encoder to display Network Info. If AP is active, it will display the AP, SSID and Password
|
||||||
|
|
||||||
Also shows if the timer is enabled
|
Also shows if the timer is enabled.
|
||||||
|
|
||||||
[See the pair of usermods in action](https://www.youtube.com/watch?v=ulZnBt9z3TI)
|
[See the pair of usermods in action](https://www.youtube.com/watch?v=ulZnBt9z3TI)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Please refer to the original `usermod_v2_rotary_encoder_ui` readme for the main instructions.
|
Copy the example `platformio_override.sample.ini` to the root directory of your particular build.
|
||||||
|
|
||||||
Copy the example `platformio_override.sample.ini` from the usermod_v2_rotary_encoder_ui_ALT folder to the root directory of your particular build and rename it to `platformio_override.ini`.
|
|
||||||
|
|
||||||
This file should be placed in the same directory as `platformio.ini`.
|
|
||||||
|
|
||||||
Then, to activate this alternative usermod, add `#define USE_ALT_DISPlAY` (NOTE: CASE SENSITIVE) to the `usermods_list.cpp` file,
|
|
||||||
or add `-D USE_ALT_DISPlAY` to the original `platformio_override.ini.sample` file
|
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
[platformio]
|
||||||
|
default_envs = esp32dev
|
||||||
|
|
||||||
|
[env:esp32dev]
|
||||||
|
board = esp32dev
|
||||||
|
platform = ${esp32.platform}
|
||||||
|
build_unflags = ${common.build_unflags}
|
||||||
|
build_flags =
|
||||||
|
${common.build_flags_esp32}
|
||||||
|
-D USERMOD_ROTARY_ENCODER_UI
|
||||||
|
-D USERMOD_ROTARY_ENCODER_GPIO=INPUT
|
||||||
|
-D ENCODER_DT_PIN=21
|
||||||
|
-D ENCODER_CLK_PIN=23
|
||||||
|
-D ENCODER_SW_PIN=0
|
@ -1,16 +1,8 @@
|
|||||||
# Rotary Encoder UI Usermod ALT
|
# Rotary Encoder UI Usermod ALT
|
||||||
|
|
||||||
Thank you to the authors of the original version of these usermods. It would not have been possible without them!
|
This usermod supports the UI of the `usermod_v2_rotary_encoder_ui_ALT`.
|
||||||
"usermod_v2_four_line_display"
|
|
||||||
"usermod_v2_rotary_encoder_ui"
|
|
||||||
|
|
||||||
The core of these usermods are a copy of the originals. The main changes are to the FourLineDisplay usermod.
|
## Functionalities
|
||||||
The display usermod UI has been completely changed.
|
|
||||||
|
|
||||||
|
|
||||||
The changes made to the RotaryEncoder usermod were made to support the new UI in the display usermod.
|
|
||||||
Without the display, it functions identical to the original.
|
|
||||||
The original "usermod_v2_auto_save" will not work with the display just yet.
|
|
||||||
|
|
||||||
Press the encoder to cycle through the options:
|
Press the encoder to cycle through the options:
|
||||||
* Brightness
|
* Brightness
|
||||||
@ -21,8 +13,7 @@ Press the encoder to cycle through the options:
|
|||||||
* Main Color (only if display is used)
|
* Main Color (only if display is used)
|
||||||
* Saturation (only if display is used)
|
* Saturation (only if display is used)
|
||||||
|
|
||||||
Press and hold the encoder to display Network Info
|
Press and hold the encoder to display Network Info. If AP is active, it will display the AP, SSID and Password
|
||||||
if AP is active, it will display the AP, SSID and Password
|
|
||||||
|
|
||||||
Also shows if the timer is enabled.
|
Also shows if the timer is enabled.
|
||||||
|
|
||||||
@ -30,9 +21,7 @@ Also shows if the timer is enabled.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Copy the example `platformio_override.sample.ini` to the root directory of your particular build and rename it to `platformio_override.ini`.
|
Copy the example `platformio_override.sample.ini` to the root directory of your particular build.
|
||||||
|
|
||||||
To activate this alternative usermod, add `#define USE_ALT_DISPlAY` (NOTE: CASE SENSITIVE) to the `usermods_list.cpp` file, or add `-D USE_ALT_DISPlAY` to your `platformio_override.ini` file
|
|
||||||
|
|
||||||
### Define Your Options
|
### Define Your Options
|
||||||
|
|
||||||
@ -40,7 +29,6 @@ To activate this alternative usermod, add `#define USE_ALT_DISPlAY` (NOTE: CASE
|
|||||||
* `USERMOD_FOUR_LINE_DISPLAY` - define this to have this the Four Line Display mod included wled00\usermods_list.cpp
|
* `USERMOD_FOUR_LINE_DISPLAY` - define this to have this the Four Line Display mod included wled00\usermods_list.cpp
|
||||||
also tells this usermod that the display is available
|
also tells this usermod that the display is available
|
||||||
(see the Four Line Display usermod `readme.md` for more details)
|
(see the Four Line Display usermod `readme.md` for more details)
|
||||||
* `USE_ALT_DISPlAY` - Mandatory to use Four Line Display
|
|
||||||
* `ENCODER_DT_PIN` - defaults to 18
|
* `ENCODER_DT_PIN` - defaults to 18
|
||||||
* `ENCODER_CLK_PIN` - defaults to 5
|
* `ENCODER_CLK_PIN` - defaults to 5
|
||||||
* `ENCODER_SW_PIN` - defaults to 19
|
* `ENCODER_SW_PIN` - defaults to 19
|
||||||
@ -50,7 +38,7 @@ To activate this alternative usermod, add `#define USE_ALT_DISPlAY` (NOTE: CASE
|
|||||||
|
|
||||||
### PlatformIO requirements
|
### PlatformIO requirements
|
||||||
|
|
||||||
Note: the Four Line Display usermod requires the libraries `U8g2` and `Wire`.
|
No special requirements.
|
||||||
|
|
||||||
## Change Log
|
## Change Log
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user