Go to the documentation of this file.
8 #include <blink1-lib.h>
25 std::unique_ptr<blink1_device, std::function<void(blink1_device*)>> device;
28 static void destroyBlinkDevice(blink1_device* device) noexcept;
88 [[nodiscard]]
bool good() const noexcept;
96 [[nodiscard]] explicit operator
bool() const noexcept;
103 [[nodiscard]] std::optional<
int>
getVersion() const noexcept;
121 bool fadeToRGB(const std::uint16_t fadeMillis, const
RGB& rgb) noexcept;
139 bool fadeToRGBN(const std::uint16_t fadeMillis, const
RGBN& rgbn) noexcept;
187 [[nodiscard]] std::optional<
RGB>
readRGB(const std::uint8_t ledn) const noexcept;
198 bool play(const std::uint8_t pos) noexcept;
209 bool playLoop(const std::uint8_t startpos, const std::uint8_t endpos, const std::uint8_t count) noexcept;
216 bool stop() noexcept;
304 [[nodiscard]] static
int vid() noexcept;
309 [[nodiscard]] static
int pid() noexcept;
316 [[nodiscard]] std::optional<
int>
getCacheIndex() const noexcept;
330 [[nodiscard]] std::optional<std::string_view>
getSerial() const noexcept;
337 [[nodiscard]] std::optional<
bool>
isMk2() const noexcept;
375 [[nodiscard]]
bool isBlocking() const noexcept;
STRING_INIT_TYPE
Definition: Blink1Device.hpp:35
bool play(const std::uint8_t pos) noexcept
Header file for blink1_lib::RGBN.
static int pid() noexcept
void setBlocking() noexcept
std::optional< int > getVersion() const noexcept
Header for blink1_lib::PlayState.
Definition: PatternLineN.hpp:17
RGB clearColor
Definition: Blink1Device.hpp:45
void setNonBlocking() noexcept
std::optional< RGB > readRGB(const std::uint8_t ledn) const noexcept
std::optional< int > clearCache() noexcept
bool isBlocking() const noexcept
bool fadeToRGBN(const std::uint16_t fadeMillis, const RGBN &rgbn) noexcept
std::optional< int > getCacheIndex() const noexcept
static int vid() noexcept
bool savePattern() noexcept
Definition: Blink1Device.hpp:24
std::optional< bool > isMk2() const noexcept
std::optional< PlayState > readPlayState() const noexcept
Definition: Blink1Device.hpp:19
bool setRGBN(const RGBN &rgbn) noexcept
std::optional< PatternLineN > readPatternLineN(const std::uint8_t pos) const noexcept
static void enableDegamma() noexcept
Header file for blink1_lib::PatternLineN.
Header file for blink1_lib::PatternLine.
bool writePatternLineN(const PatternLineN &line, const std::uint8_t pos) noexcept
bool playLoop(const std::uint8_t startpos, const std::uint8_t endpos, const std::uint8_t count) noexcept
Definition: PatternLine.hpp:18
bool good() const noexcept
bool clearOnExit
Definition: Blink1Device.hpp:51
bool writePatternLine(const PatternLine &line, const std::uint8_t pos) noexcept
bool fadeToRGB(const std::uint16_t fadeMillis, const RGB &rgb) noexcept
Definition: PlayState.hpp:16
Header file for blink1_lib::RGB.
bool setRGB(const RGB &rgb) noexcept
std::optional< PatternLine > readRGBWithFade(const std::uint8_t ledn) const noexcept
std::optional< PatternLine > readPatternLine(const std::uint8_t pos) const noexcept
std::optional< std::string_view > getSerial() const noexcept
static void disableDegamma() noexcept