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