Uses the overlay feature to create a configurable seven segment display. Optimized for maximum configurability and use with seven segment clocks by parallyze (https://www.instructables.com/member/parallyze/instructables/) Very loosely based on the existing usermod "seven segment display".
Add the compile-time option -D USERMOD_SSDR
to your platformio.ini
(or platformio_override.ini
) or use #define USERMOD_SSDR
in my_config.h
.
For the auto brightness option, the usermod SN_Photoresistor has to be installed as well. See SN_Photoresistor/readme.md for instructions.
All settings can be controlled via the usermod settings page. Part of the settings can be controlled through MQTT with a raw payload or through a json request to /json/state.
Enables/disables this usermod
Enables the inverted mode in which the background should be enabled and the digits should be black (LEDs off)
Enables the blinking colon(s) if they are defined
Shows the leading zero of the hour if it exists (i.e. shows 07
instead of 7
)
Enables the auto brightness feature. Can be used only when the usermod SN_Photoresistor is installed.
The lux value calculated from usermod SN_Photoresistor will be mapped to the values defined here. The mapping, 0 - 1000 lux, will be mapped to auto-brightness-min and auto-brightness-max
WLED current protection will override the calculated value if it is too high.
Defines the type of the time/date display. For example "H:m" (default)
See following example for usage.
Example of an LED definition:
< A >
/\ /\
F B
\/ \/
< G >
/\ /\
E C
\/ \/
< D >
LEDs or Range of LEDs are separated by a comma ","
Segments are separated by a semicolon ";" and are read as A;B;C;D;E;F;G
Digits are separated by colon ":" -> A;B;C;D;E;F;G:A;B;C;D;E;F;G
Ranges are defined as lower to higher (lower first)
For example, a clock definition for the following clock (https://www.instructables.com/Lazy-7-Quick-Build-Edition/) is
hour "59,46;47-48;50-51;52-53;54-55;57-58;49,56:0,13;1-2;4-5;6-7;8-9;11-12;3,10"
minute "37-38;39-40;42-43;44,31;32-33;35-36;34,41:21-22;23-24;26-27;28,15;16-17;19-20;18,25"
or
hour "6,7;8,9;11,12;13,0;1,2;4,5;3,10:52,53;54,55;57,58;59,46;47,48;50,51;49,56"
minute "15,28;16,17;19,20;21,22;23,24;26,27;18,25:31,44;32,33;35,36;37,38;39,40;42,43;34,41"
depending on the orientation.
hour "59,46;47-48;50-51;52-53;54-55;57-58;49,56:0,13;1-2;4-5;6-7;8-9;11-12;3,10"
there are two digits separated by ":"
In the first digit, the segment A consists of the LEDs number 59 and 46., segment B consists of the LEDs number 47, 48 and so on
The second digit starts again with segment A and LEDs 0 and 13, segment B consists of the LEDs number 1 and 2 and so on
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )