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

OSCHINA-MIRROR/mirrors_trending-WLED

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
README.md 1.2 КБ
Копировать Редактировать Исходные данные Просмотреть построчно История
JeffWDH Отправлено год назад 5b7b34a

LDR_Dusk_Dawn_v2

This usermod will obtain readings from a Light Dependent Resistor (LDR) and will turn on/off specific presets based on those readings. This is useful for exterior lighting situations where you want the lights to only be on when it is dark out.

Installation

Add "-D USERMOD_LDR_DUSK_DAWN" to your platformio.ini [common] build_flags and build.

Example:

[common]
build_flags =
  -D USERMOD_LDR_DUSK_DAWN   # Enable LDR Dusk Dawn Usermod

Usermod Settings

Setting Description Default
Enabled Enable/Disable the LDR functionality. Disabled
LDR Pin The analog capable pin your LDR is connected to. 34
Threshold Minutes The number of minutes of consistent readings above/below the on/off threshold before the LED state will change. 5
Threshold The analog read value threshold from the LDR. Readings lower than this number will count towards changing the LED state to off. You can see the current LDR reading by going into the info section when LDR functionality is enabled. 1000
On Preset The WLED preset to be used for the LED on state. 1
Off Preset The WLED preset to be used for the LED off state. 2

Author

@jeffwdh
jeffwdh@tarball.ca

Опубликовать ( 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
v0.14.1-b2