FastLED 3.10.8
Loading...
Searching...
No Matches
json_helpers.h
Go to the documentation of this file.
1#pragma once
2
4#include "fl/stl/json.h"
5#include "fl/stl/string.h"
6
7namespace fl {
8namespace wled {
9
22bool parseHexColor(const fl::string& hexStr, u8& r, u8& g, u8& b) FL_NO_EXCEPT;
23
31fl::string rgbToHex(u8 r, u8 g, u8 b) FL_NO_EXCEPT;
32
47void parseSegmentFields(const fl::json& segJson, WLEDSegment& seg) FL_NO_EXCEPT;
48
49} // namespace wled
50} // namespace fl
FastLED's Elegant JSON Library: fl::json
bool parseHexColor(const fl::string &hexStr, u8 &r, u8 &g, u8 &b) FL_NO_EXCEPT
Parse hex color string to RGB components.
fl::string rgbToHex(u8 r, u8 g, u8 b) FL_NO_EXCEPT
Convert RGB components to hex string.
void parseSegmentFields(const fl::json &segJson, WLEDSegment &seg) FL_NO_EXCEPT
Parse all fields from a segment JSON object into a WLEDSegment.
unsigned char u8
Definition stdint.h:131
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
InputGamut g
Definition rgbw.h:125
Base definition for an LED controller.