|
FastLED 3.9.15
|
|
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::Remote::Remote().
Here is the call graph for this function: