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.83k stars 3.2k forks source link

Receive requests via input pin #1454

Closed Legsmaniac closed 1 month ago

Legsmaniac commented 3 years ago

Is your feature request related to a problem? Please describe. I have a project where I would like to be able to send MQTT/JSON API requests to an ESP8266 via an input pin.

Describe the solution you'd like A pin on the Arduino running WLED set up to receive commands.

Describe alternatives you've considered The commands are sent from an Arduino Mega with no onboard WiFi. Two ways I could achieve this is by adding an ESP-01 or an IR Transmitter to send commands to WLED via WiFi or IR Receiver. A Mega is required because I need the obscene number of digital ports the Mega provides. Another way I could do it would be to swap the current Mega for a Mega with built-in onboard WiFi

Additional context But it would be so much simpler to be able to send a serial output from a pin on the Mega to a pin on the WLED, therefore no additional hardware necessary.

Is there already such a pin implemented on WLED? Could this be something that could be added in a future version? And/or is this something that could be (or has already been) achieved using a custom usermod?

Thanks.

blazoncek commented 1 month ago

FYI WLED supports JSON or live data over serial.