LightHub 4.6.0
Open-source smart home controller firmware
Loading...
Searching...
No Matches
statusled.h File Reference
#include <Arduino.h>

Go to the source code of this file.

Classes

class  StatusLED
 RGB status LED controller. More...

Macros

#define ledRED   1
 LED pattern bit: red component on.
#define ledGREEN   2
 LED pattern bit: green component on.
#define ledBLUE   4
 LED pattern bit: blue component on.
#define ledBLINK   8
 LED pattern bit: blink at the normal rate.
#define ledFASTBLINK   16
 LED pattern bit: blink at the fast rate.
#define ledParams   (ledRED | ledGREEN | ledBLUE | ledBLINK | ledFASTBLINK)
 Mask of all steady/blink pattern bits.
#define ledFlash   32
 Internal flag: show the pattern once (flash).
#define ledHidden   64
 Internal flag: LED is currently in the "hidden" (off) blink phase.
#define pinRED   50
#define pinGREEN   51
#define pinBLUE   52
#define ledDelayms   1000UL
 Blink period in milliseconds (normal rate).
#define ledFastDelayms   300UL
 Blink period in milliseconds (fast rate).

Macro Definition Documentation

◆ ledBLINK

#define ledBLINK   8

LED pattern bit: blink at the normal rate.

◆ ledBLUE

#define ledBLUE   4

LED pattern bit: blue component on.

◆ ledDelayms

#define ledDelayms   1000UL

Blink period in milliseconds (normal rate).

◆ ledFASTBLINK

#define ledFASTBLINK   16

LED pattern bit: blink at the fast rate.

◆ ledFastDelayms

#define ledFastDelayms   300UL

Blink period in milliseconds (fast rate).

◆ ledFlash

#define ledFlash   32

Internal flag: show the pattern once (flash).

◆ ledGREEN

#define ledGREEN   2

LED pattern bit: green component on.

◆ ledHidden

#define ledHidden   64

Internal flag: LED is currently in the "hidden" (off) blink phase.

◆ ledParams

#define ledParams   (ledRED | ledGREEN | ledBLUE | ledBLINK | ledFASTBLINK)

Mask of all steady/blink pattern bits.

◆ ledRED

#define ledRED   1

LED pattern bit: red component on.

◆ pinBLUE

#define pinBLUE   52

◆ pinGREEN

#define pinGREEN   51

◆ pinRED

#define pinRED   50