Low-level interface to LED strips.
More...
#include <OutputHardware.hpp>
Low-level interface to LED strips.
Definition at line 110 of file OutputHardware.hpp.
◆ pixel_vector_type
◆ LEDStrip() [1/2]
Create an LED strip.
- Parameters
-
| dataPin | GPIO number attached to Din (data input) |
| pixelCount | Total count of pixels in the strip |
| useLevelShift | Set to false when using 3.3V logic. Set to true when using the level shifter in open-drain mode. |
| driver | Pixel driver |
| reverse_display | True if the logical arrangement of the pixels is the inverse of their physical arrangement |
◆ LEDStrip() [2/2]
Move constructor.
- Parameters
-
| other | Instance to be moved |
◆ brightness()
| void LEDStrip::brightness |
( |
uint8_t | value | ) |
|
|
inline |
Set the global brightness.
- Parameters
-
| value | Brightness. 255 is the highest and 0 will turn all LEDs off. |
- Note
- LEDs are very bright. Keep this value low for a comfortable experience. Defaults to 127 (decimal).
Definition at line 176 of file OutputHardware.hpp.
◆ clear()
◆ getPixelCount()
| uint8_t LEDStrip::getPixelCount |
( |
| ) |
|
|
inline |
◆ operator=()
Move-assignment.
- Parameters
-
| other | Instance to be moved |
◆ pixelVector()
Create a vector of pixels suitable for this LED strip.
- Parameters
-
| color | Initial color for all pixels (defaults to black) |
- Returns
- PixelVector Pixel vector (ownership transferred to the caller)
Definition at line 184 of file OutputHardware.hpp.
◆ show()
Show pixels all at once.
- Parameters
-
The documentation for this class was generated from the following file: