FastLED 3.9.7
Loading...
Searching...
No Matches
json.h
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
13#include "third_party/arduinojson/json.h"
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
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16