#include <PatternLineN.hpp>
Same as a PatternLine, but uses RGBN to also store an LED ID
◆ PatternLineN() [1/3]
| blink1_lib::PatternLineN::PatternLineN |
( |
| ) |
|
|
defaultnoexcept |
Default constructor
Initializes all values to 0
◆ PatternLineN() [2/3]
| blink1_lib::PatternLineN::PatternLineN |
( |
const RGBN & |
_rgbn, |
|
|
const std::uint16_t |
_fadeMillis |
|
) |
| |
|
noexcept |
- Parameters
-
| _rgbn | RGBN value |
| _fadeMillis | Fade time in milliseconds |
◆ PatternLineN() [3/3]
| blink1_lib::PatternLineN::PatternLineN |
( |
const std::uint8_t |
_r, |
|
|
const std::uint8_t |
_g, |
|
|
const std::uint8_t |
_b, |
|
|
const std::uint8_t |
_n, |
|
|
const std::uint16_t |
_fadeMillis |
|
) |
| |
|
noexcept |
- Parameters
-
| _r | Red value |
| _g | Green value |
| _b | Blue value |
| _n | LED index |
| _fadeMillis | Fade time in milliseconds |
◆ operator!=()
| bool blink1_lib::PatternLineN::operator!= |
( |
const PatternLineN & |
other | ) |
const |
|
noexcept |
Inequality operator
- Parameters
-
| other | Object to compare to |
- Returns
- true if the objects are not equal, false otherwise
◆ operator==()
| bool blink1_lib::PatternLineN::operator== |
( |
const PatternLineN & |
other | ) |
const |
|
noexcept |
Equality operator
- Parameters
-
| other | Object to compare to |
- Returns
- true if the objects are equal, false otherwise
◆ operator<<
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const PatternLineN & |
patternLine |
|
) |
| |
|
friend |
Output operator
- Parameters
-
◆ fadeMillis
| std::uint16_t blink1_lib::PatternLineN::fadeMillis {0} |
Fade time in milliseconds
◆ rgbn
| RGBN blink1_lib::PatternLineN::rgbn |
The documentation for this struct was generated from the following file: