SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
system_status_led.cpp
Go to the documentation of this file.
1#include "system_status_led.h"
2
3namespace sensesp {
4
5// These patterns indicate how many milliseconds the led should be on and off,
6// repeating until PATTERN_END is reached
7
8// FIXME: These patterns eat up memory even if the LED
9// would be disabled
10
11// PATTERN: *___________________
12int no_ap_pattern[] = {50, 950, PATTERN_END};
13
14// PATTERN: ******______________
16
17// PATTERN: **************______
19
20// PATTERN: *************_*_*_*_
21int ws_connecting_pattern[] = {650, 50, 50, 50, 50, 50, 50, 50, PATTERN_END};
22
23// PATTERN: ********************
25
26// PATTERN: ******************__
28
29// PATTERN: *_*_*_*_____________
30int ws_disconnected_pattern[] = {50, 50, 50, 50, 50, 50, 50, 650, PATTERN_END};
31
32// PATTERN: ****____
34
38
58
84
88
89} // namespace sensesp
void blip(int duration=20)
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
void set_pattern(int pattern[])
virtual void set_wifimanager_activated()
virtual void set_input(SystemStatus new_value, uint8_t input_channel=0) override
#define PATTERN_END
Definition led_blinker.h:11
int ws_disconnected_pattern[]
int ws_connecting_pattern[]
int wifi_connected_pattern[]
int ws_authorizing_pattern[]
int wifi_disconnected_pattern[]
int wifimanager_pattern[]
int ws_connected_pattern[]