FastLED 3.9.15
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1#pragma once
2
3
4#ifndef FASTLED_ENABLE_JSON
5#ifdef __AVR__
6#define FASTLED_ENABLE_JSON 0
7#else
8#define FASTLED_ENABLE_JSON 1
9#endif
10#endif
11
12#if FASTLED_ENABLE_JSON
14#endif
15
16namespace fl {
17
18class Str;
19
20#if !FASTLED_ENABLE_JSON
21class JsonDocument {};
22#else
23class JsonDocument: public ::FLArduinoJson::JsonDocument {};
24#endif
25
26bool parseJson(const char* json, JsonDocument* doc, Str* error = nullptr);
27void toJson(const JsonDocument& doc, Str* jsonBuffer);
28
29} // namespace fl
bool parseJson(const char *json, fl::JsonDocument *doc, Str *_error)
Definition json.cpp:6
void toJson(const fl::JsonDocument &doc, Str *jsonBuffer)
Definition json.cpp:24
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16