blink1-lib
1.0.0
PatternLine.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <cstdint>
9
10
#include "
RGB.hpp
"
11
12
namespace
blink1_lib
{
13
18
struct
PatternLine
{
22
std::uint16_t
fadeMillis
{0};
23
27
RGB
rgb
;
28
34
PatternLine
() noexcept = default;
35
40
PatternLine
(const
RGB
& _rgb, const std::uint16_t _fadeMillis) noexcept;
41
48
PatternLine
(const std::uint8_t _r, const std::uint8_t _g, const std::uint8_t _b, const std::uint16_t _fadeMillis) noexcept;
49
56
[[nodiscard]]
bool
operator==(const
PatternLine
& other) const noexcept;
57
64
[[nodiscard]]
bool
operator!=(const
PatternLine
& other) const noexcept;
65
72
friend std::ostream& operator<<(std::ostream& os, const
PatternLine
& patternLine);
73
};
74
}
blink1_lib::PatternLine::PatternLine
PatternLine() noexcept=default
blink1_lib
Definition:
Blink1Device.hpp:19
blink1_lib::PatternLine
Definition:
PatternLine.hpp:18
blink1_lib::RGB
Definition:
RGB.hpp:16
blink1_lib::PatternLine::rgb
RGB rgb
Definition:
PatternLine.hpp:27
RGB.hpp
Header file for blink1_lib::RGB.
blink1_lib::PatternLine::fadeMillis
std::uint16_t fadeMillis
Definition:
PatternLine.hpp:22
include
PatternLine.hpp
Generated by
1.8.17