SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
system_status_led.h
Go to the documentation of this file.
1#ifndef _LED_CONTROLLER_H_
2#define _LED_CONTROLLER_H_
3
4#include "lambda_consumer.h"
5#include "led_blinker.h"
7
8namespace sensesp {
9
15class SystemStatusLed : public ValueConsumer<SystemStatus>,
16 public ValueConsumer<int> {
17 protected:
19
20 virtual void set_wifi_no_ap();
21 virtual void set_wifi_disconnected();
22 virtual void set_wifimanager_activated();
23
24 virtual void set_ws_disconnected();
25 virtual void set_ws_authorizing();
26 virtual void set_ws_connecting();
27 virtual void set_ws_connected();
28
29 public:
30 SystemStatusLed(int pin);
31
32 virtual void set_input(SystemStatus new_value,
33 uint8_t input_channel = 0) override;
34 virtual void set_input(int new_value, uint8_t input_channel = 0) override;
35};
36
37} // namespace sensesp
38
39#endif
Construct a new transform based on a single function.
A blinker that blinks the LED according to a defined repeating pattern.
Definition led_blinker.h:78
Consumes the networking and websocket states and delta counts and updates the device LED accordingly....
virtual void set_wifimanager_activated()
virtual void set_input(SystemStatus new_value, uint8_t input_channel=0) override
A base class for piece of code (like a transform) that accepts data for input. ValueConsumers can acc...