30 Led(
LedDriver &driver,
int channel = 0,
bool hasBrightnessControl =
false);
34 led._brightness = rhs._brightness;
35 led._state = rhs._state;
51 void brightness(
double value);
68 void state(
bool value);
75 stream << (led._state ?
"true" :
"false") <<
" (" << led._brightness <<
")" << endl;
84 double _brightness = 1.0;
const bool hasBrightnessControl
Gets whether the LED has _brightness control
Definition: Led.h:58
Represents a single LED that may or may not have _brightness control
Definition: Led.h:22
Led & operator=(const Led &rhs)
Definition: Led.h:32
Base class that all LED drivers inherit from.
Definition: LedDriver.h:18
const int channel
Gets or sets the channel this LED belongs to
Definition: Led.h:42
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
friend std::ostream & operator<<(std::ostream &stream, const Led &led)
Gets a string representation of the LED's current _state
Definition: Led.h:74