A class for driving addressable LEDs, such as WS2812B, WS2815, and NeoPixels.
Definition AddressableLED.h:33
Class to control a simulated addressable LED.
Definition AddressableLEDSim.h:22
void SetData(struct HAL_AddressableLEDData *data)
Change the LED data.
std::unique_ptr< CallbackStore > RegisterStartCallback(NotifyCallback callback, bool initialNotify)
Register a callback on the start.
void SetInitialized(bool initialized)
Change the Initialized value of the LED strip.
int GetStart() const
Get the start.
int GetData(struct HAL_AddressableLEDData *data) const
Get the LED data.
AddressableLEDSim(const AddressableLED &addressableLED)
Constructs from an AddressableLED object.
void SetLength(int length)
Change the length of the LED strip.
static int GetGlobalData(int start, int length, struct HAL_AddressableLEDData *data)
Get the global LED data.
bool GetInitialized() const
Check if initialized.
int GetLength() const
Get the length of the LED strip.
std::unique_ptr< CallbackStore > RegisterLengthCallback(NotifyCallback callback, bool initialNotify)
Register a callback on the length.
void SetStart(int start)
Change the start.
static std::unique_ptr< CallbackStore > RegisterDataCallback(ConstBufferCallback callback, bool initialNotify)
Register a callback on the LED data.
AddressableLEDSim(int channel)
Constructs an addressable LED for a specific channel.
static void SetGlobalData(int start, int length, struct HAL_AddressableLEDData *data)
Change the global LED data.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback on the Initialized property.
std::function< void( std::string_view, const unsigned char *buffer, unsigned int count)> ConstBufferCallback
Definition CallbackStore.h:15
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition CallbackStore.h:14
Definition SystemServer.h:9
structure for holding one LED's color data.
Definition AddressableLEDTypes.h:14