bolar_1 date 2026-7-1 d:/proc
This commit is contained in:
26
main/led/led.h
Normal file
26
main/led/led.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
enum class LedState {
|
||||
kOff,
|
||||
kIdle,
|
||||
kConnecting,
|
||||
kListening,
|
||||
kSpeaking,
|
||||
kRinging, // Incoming call (green blink)
|
||||
kCalling, // Active call (green steady)
|
||||
kUpgrading,
|
||||
kError,
|
||||
kWifiConfig,
|
||||
kShuttingDown,
|
||||
};
|
||||
|
||||
class Led {
|
||||
public:
|
||||
virtual ~Led() = default;
|
||||
virtual void SetState(LedState state) = 0;
|
||||
};
|
||||
|
||||
class NoLed : public Led {
|
||||
public:
|
||||
void SetState(LedState /*state*/) override {}
|
||||
};
|
||||
Reference in New Issue
Block a user