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.

48 lines
1.2KB

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