|
FastLED 3.10.8
|
|
inline |
Construct WLED with custom I/O callbacks.
| source | Function that returns next JSON-RPC request (or nullopt if none) |
| sink | Function that handles outgoing JSON-RPC responses |
Example: fl::WLED wled( [&]() { return parseJsonRpcFromSerial(); }, [](const fl::json& r) { writeJsonRpcToSerial(r); } );
Definition at line 270 of file wled.h.
References fl::FL_NO_EXCEPT.