53 void initChannelControllers();
62 void initLed(
int pwmChannel,
int pin,
bool inverted);
65 void initStatusLed(
int pwmChannel,
int pin);
68 std::vector<MCLedBase *> _espLeds;
71 std::vector<MCChannelController *> _channelControllers;
MCConnectionStatus
Definition MController.h:11
@ connecting_wifi
Definition MController.h:14
@ connecting_mqtt
Definition MController.h:15
@ uninitialized
Definition MController.h:12
@ connected
Definition MController.h:16
@ initializing
Definition MController.h:13
Definition MCChannelController.h:9
Definition MCLocoAction.h:9
Definition MController.h:20
virtual void HandleTrigger(int locoAddress, MCTriggerSource source, std::string eventType, std::string eventId, std::string value)=0
void Loop()
Definition MController.cpp:45
void SetEmergencyBrake(const bool enabled)
Definition MController.cpp:121
void Execute(MCLocoAction *action)
Definition MController.cpp:126
void setStatusLedInSetup(int powerPerc)
Definition MController.cpp:103
static MCConnectionStatus GetConnectionStatus()
Definition MController.cpp:13
bool GetEmergencyBrake()
Definition MController.cpp:115
virtual void HandleSys(const bool ebrake)=0
void Setup(MCConfiguration *config)
Definition MController.cpp:35
MController()
Definition MController.cpp:9
MCTriggerSource
Definition enums.h:77
Definition MCConfiguration.h:8