Files
xiaozhi-esp32/main/boards/kevin-c3/led_strip_control.h
2025-05-27 14:58:49 +08:00

19 lines
444 B
C++

#ifndef LED_STRIP_CONTROL_H
#define LED_STRIP_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