blink1-lib
1.0.0
PatternLineN.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <cstdint>
9
10
#include "
RGBN.hpp
"
11
12
namespace
blink1_lib
{
13
17
struct
PatternLineN
{
21
std::uint16_t
fadeMillis
{0};
22
26
RGBN
rgbn
;
27
33
PatternLineN
() noexcept = default;
34
39
PatternLineN
(const
RGBN
& _rgbn, const std::uint16_t _fadeMillis) noexcept;
40
48
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;
49
56
[[nodiscard]]
bool
operator==(const
PatternLineN
& other) const noexcept;
57
64
[[nodiscard]]
bool
operator!=(const
PatternLineN
& other) const noexcept;
65
72
friend std::ostream& operator<<(std::ostream& os, const
PatternLineN
& patternLine);
73
};
74
}
blink1_lib::PatternLineN::PatternLineN
PatternLineN() noexcept=default
blink1_lib::RGBN
Definition:
RGBN.hpp:16
RGBN.hpp
Header file for blink1_lib::RGBN.
blink1_lib::PatternLineN
Definition:
PatternLineN.hpp:17
blink1_lib
Definition:
Blink1Device.hpp:19
blink1_lib::PatternLineN::rgbn
RGBN rgbn
Definition:
PatternLineN.hpp:26
blink1_lib::PatternLineN::fadeMillis
std::uint16_t fadeMillis
Definition:
PatternLineN.hpp:21
include
PatternLineN.hpp
Generated by
1.8.17