mirror of
https://github.com/78/xiaozhi-esp32.git
synced 2026-02-18 18:08:11 +00:00
18 lines
281 B
C++
18 lines
281 B
C++
#ifndef _LED_H_
|
|
#define _LED_H_
|
|
|
|
class Led {
|
|
public:
|
|
virtual ~Led() = default;
|
|
// Set the led state based on the device state
|
|
virtual void OnStateChanged() = 0;
|
|
};
|
|
|
|
|
|
class NoLed : public Led {
|
|
public:
|
|
virtual void OnStateChanged() override {}
|
|
};
|
|
|
|
#endif // _LED_H_
|