ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
434B

  1. #pragma once
  2. #include <string>
  3. #include <map>
  4. #include <cJSON.h>
  5. #include "leds.hpp"
  6. namespace Presets {
  7. const Pattern* find(const std::string&);
  8. std::map<std::string, const Pattern*>::const_iterator map_begin();
  9. std::map<std::string, const Pattern*>::const_iterator map_end();
  10. void reload();
  11. // Helpers
  12. typedef std::map <std::string, Color> ColorMap;
  13. Color json_color(cJSON *json, const ColorMap &colors);
  14. } // Presets