Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.63k stars 3.14k forks source link

Use digital inputs of ESP (Controller) for loading presets #2039

Closed xozy22 closed 2 years ago

xozy22 commented 3 years ago

It would be nice to use additional DIs to load WLED presets. This feature could enable the Microcontroler for standalone applications without having an additional raspberry pi sending UDP messages or something. For example garage entrance lights, like in this video: https://youtu.be/M8xCgQUihd8

blazoncek commented 3 years ago

Use multiple buttons feature in current master. It was implemented in #1977 .

xozy22 commented 3 years ago

So I am correct in assuming that only D3 is used. This then reacts to short press, long press and double press? Thats not ideal for usage with magnetic contacts, but ok. I will find a solution. Thanks 👍

blazoncek commented 3 years ago

A switch is a switch, mechanical or magnetic. Switches do not have short press, long press or double press states, but react on transition edge (low to high or high to low). You still use fields for short press and long press to assign action for transition edge.