#include <RGBN.hpp>
|
| | RGBN (const std::uint8_t r, const std::uint8_t g, const std::uint8_t b, const std::uint8_t n) noexcept |
| |
| | RGBN () noexcept=default |
| |
| bool | operator== (const RGBN &other) const noexcept |
| |
| bool | operator!= (const RGBN &other) const noexcept |
| |
|
| std::uint8_t | r {0} |
| |
| std::uint8_t | g {0} |
| |
| std::uint8_t | b {0} |
| |
| std::uint8_t | n {0} |
| |
A datatype that combines an RGB value with an LED index
◆ RGBN() [1/2]
| blink1_lib::RGBN::RGBN |
( |
const std::uint8_t |
r, |
|
|
const std::uint8_t |
g, |
|
|
const std::uint8_t |
b, |
|
|
const std::uint8_t |
n |
|
) |
| |
|
noexcept |
- Parameters
-
| r | Red value |
| g | Green value |
| b | Blue value |
| n | LED index |
◆ RGBN() [2/2]
| blink1_lib::RGBN::RGBN |
( |
| ) |
|
|
defaultnoexcept |
Default constructor
Initializes all values to 0
◆ operator!=()
| bool blink1_lib::RGBN::operator!= |
( |
const RGBN & |
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::RGBN::operator== |
( |
const RGBN & |
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 RGBN & |
rgb |
|
) |
| |
|
friend |
Output operator
- Parameters
-
| os | Output stream |
| rgb | RGBN object to output |
| std::uint8_t blink1_lib::RGBN::b {0} |
| std::uint8_t blink1_lib::RGBN::g {0} |
| std::uint8_t blink1_lib::RGBN::n {0} |
| std::uint8_t blink1_lib::RGBN::r {0} |
The documentation for this struct was generated from the following file: