ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

51 lines
1.2KB

  1. #pragma once
  2. #include <string>
  3. #include <map>
  4. #include "leds.hpp"
  5. namespace Presets {
  6. const struct Pattern* find(const std::string&);
  7. extern const std::map <std::string, const Pattern*> map;
  8. } // Presets
  9. namespace Colors {
  10. constexpr Color red = {255, 0, 0};
  11. constexpr Color orange = {78, 25, 0};
  12. constexpr Color yellow = {255, 160, 0};
  13. constexpr Color green = {0, 255, 0};
  14. constexpr Color blue = {0, 0, 255};
  15. constexpr Color purple = {38, 10, 42};
  16. constexpr Color dark_red = {32, 0, 0};
  17. constexpr Color dark_orange = {20, 6, 0};
  18. constexpr Color dark_yellow = {64, 40, 0};
  19. constexpr Color dark_green = {0, 32, 0};
  20. constexpr Color dark_blue = {0, 0, 32};
  21. constexpr Color dark_purple = {8, 3, 10};
  22. constexpr Color pale_red = {255, 64, 64};
  23. constexpr Color pale_orange = {78, 25, 10};
  24. constexpr Color pale_yellow = {255, 160, 10};
  25. constexpr Color pale_green = {64, 255, 25};
  26. constexpr Color pale_blue = {70, 70, 255};
  27. constexpr Color pale_purple = {42, 20, 42};
  28. constexpr Color black = {0, 0, 0};
  29. constexpr Color white = {255, 255, 255};
  30. constexpr Color pink = pale_red;
  31. constexpr Color peach = pale_orange;
  32. // TODO: chartreuse
  33. constexpr Color brown = {6, 2, 0};
  34. constexpr Color teal = {0, 85, 35};
  35. constexpr Color magenta = {255, 0, 255};
  36. } // Colors