Files
JC-ESP32P4-M3-DEV/1-Demo/IDF-DEMO/xiaozhi-esp32/main/led/led.h
T
2025-09-05 18:58:05 +02: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_