Add ColorToHaspPayload

This commit is contained in:
fvanroie 2022-04-12 02:35:10 +02:00
parent 9816e0b3d3
commit 945ce73a76

View File

@ -9,6 +9,7 @@
class Parser { class Parser {
public: public:
static void ColorToHaspPayload(lv_color_t color, char* payload, size_t len);
static bool haspPayloadToColor(const char* payload, lv_color32_t& color); static bool haspPayloadToColor(const char* payload, lv_color32_t& color);
static bool get_event_state(uint8_t eventid); static bool get_event_state(uint8_t eventid);
static void get_event_name(uint8_t eventid, char* buffer, size_t size); static void get_event_name(uint8_t eventid, char* buffer, size_t size);