|
- #pragma once
-
- #include <string>
- #include <map>
-
- #include <cJSON.h>
-
- #include "leds.hpp"
-
-
- namespace Presets {
-
- const Pattern* find(const std::string&);
-
- std::map<std::string, const Pattern*>::const_iterator map_begin();
- std::map<std::string, const Pattern*>::const_iterator map_end();
-
- void reload();
-
-
- // Helpers
-
- typedef std::map <std::string, Color> ColorMap;
-
- Color json_color(cJSON *json, const ColorMap &colors);
-
-
- } // Presets
|