wangzhibo
2026-10-08 220e4fab27b7f419b3e89e2f2d28ae789aac09d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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_