FastLED 3.10.8
Loading...
Searching...
No Matches
write_result.h
Go to the documentation of this file.
1#pragma once
2
5
6#include "fl/stl/string.h"
7#include "fl/stl/noexcept.h"
8
9namespace fl {
10
14 bool ok;
16
18 explicit WriteResult(const char* err) FL_NO_EXCEPT : ok(false), error(err) {}
19 explicit WriteResult(const fl::string& err) FL_NO_EXCEPT : ok(false), error(err) {}
20
22 operator bool() const FL_NO_EXCEPT { return ok; }
23};
24
25} // namespace fl
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
Base definition for an LED controller.
Definition crgb.hpp:179
WriteResult(const fl::string &err) FL_NO_EXCEPT
WriteResult(const char *err) FL_NO_EXCEPT
WriteResult() FL_NO_EXCEPT
fl::string error
Error message (empty if ok == true)
bool ok
True if write succeeded, false if error.