SensESP 3.0.1
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
36 : blinker_(std::unique_ptr<PatternBlinker>(
37 new PatternBlinker(pin, no_ap_pattern))) {}
38
58
59} // namespace sensesp
A blinker that blinks the LED according to a defined repeating pattern.
Definition led_blinker.h:76
std::unique_ptr< PatternBlinker > blinker_
virtual void set_wifimanager_activated()
#define PATTERN_END
Definition led_blinker.h:10
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[]