blink1-lib
1.0.0
|
#include <PatternLine.hpp>
Public Member Functions | |
PatternLine () noexcept=default | |
PatternLine (const RGB &_rgb, const std::uint16_t _fadeMillis) noexcept | |
PatternLine (const std::uint8_t _r, const std::uint8_t _g, const std::uint8_t _b, const std::uint16_t _fadeMillis) noexcept | |
bool | operator== (const PatternLine &other) const noexcept |
bool | operator!= (const PatternLine &other) const noexcept |
Public Attributes | |
std::uint16_t | fadeMillis {0} |
RGB | rgb |
Friends | |
std::ostream & | operator<< (std::ostream &os, const PatternLine &patternLine) |
Originally a line in a blink1 pattern, but mostly just a way to keep an RGB value and a fade time together in one object
|
defaultnoexcept |
Default constructor
Initializes all values to 0
|
noexcept |
_rgb | RGB value for this PatternLine |
_fadeMillis | Fade time in milliseconds |
|
noexcept |
|
noexcept |
Inequality operator
other | Object to compare to |
|
noexcept |
Equality operator
other | Object to compare to |
|
friend |
Output operator
os | Output stream |
patternLine | PatternLine to output |
std::uint16_t blink1_lib::PatternLine::fadeMillis {0} |
Fade time in milliseconds