1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors_trending-WLED

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Это зеркальный репозиторий, синхронизируется ежедневно с исходного репозитория.
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
readme.md

Stairway lighting

Install

Add the buildflag -D USERMOD_STAIRCASE_WIPE to your enviroment to activate it.

Configuration

-D STAIRCASE_WIPE_OFF
Have the LEDs wipe off instead of fading out

Description

Quick usermod to accomplish something similar to this video.

This usermod enables you to add a lightstrip alongside or on the steps of a staircase. When the userVar0 variable is set, the LEDs will gradually turn on in a Wipe effect. Both directions are supported by setting userVar0 to 1 and 2, respectively (HTTP API commands U0=1 and U0=2).

After the Wipe is complete, the light will either stay on (Solid effect) indefinitely or extinguish after userVar1 seconds have elapsed. If userVar0 is updated (e.g. by triggering a second sensor) the light will fade slowly until it's off. This could be extended to also run a Wipe effect in reverse order to turn the LEDs off.

This is just a basic version to accomplish this using HTTP API calls U0 and U1 and/or macros. It should be easy to adapt this code to interface with motion sensors or other input devices.

Комментарий ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/mirrors_trending-WLED.git
git@gitlife.ru:oschina-mirror/mirrors_trending-WLED.git
oschina-mirror
mirrors_trending-WLED
mirrors_trending-WLED
main