Files
xiaozhi-esp32-shhkAICam/main/led/led.h
0Xiao0 165219cee0
Some checks failed
Build Boards / Determine boards to build (push) Has been cancelled
Build Boards / Build ${{ matrix.board }} (push) Has been cancelled
first commit
2026-02-02 14:29:15 +08:00

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_