led_strip_control.h 444 B

123456789101112131415161718
  1. #ifndef LED_STRIP_CONTROL_H
  2. #define LED_STRIP_CONTROL_H
  3. #include "led/circular_strip.h"
  4. class LedStripControl {
  5. private:
  6. CircularStrip* led_strip_;
  7. int brightness_level_; // 亮度等级 (0-8)
  8. int LevelToBrightness(int level) const; // 将等级转换为实际亮度值
  9. StripColor RGBToColor(int red, int green, int blue);
  10. public:
  11. explicit LedStripControl(CircularStrip* led_strip);
  12. };
  13. #endif // LED_STRIP_CONTROL_H