This file contains descriptions of functions available in the SwietLib library. Each function is described in terms of its functionality, input parameters, return values, and includes an example usage.
This is constructor for strip object. It's taking the SPI handler reference (SPI_HandleTypeDef
) and the number of LEDs (uint16_t
) as arguments. Initializes the object and allocates memory.
Sets the pixel in colorsArray
to provided color (rgbColor_t
).
Sets the pixel in colorsArray
to provided values of color (3x uint8_t
).
Fills the entire strip to provided color (rgbColor_t
).
Fills the entire strip to provided values of color (3x uint8_t
).
Fills the given part of strip (start and end uint16_t
) to provided color (rgbColor_t
).
Fills the given part of strip (start and end uint16_t
) to provided values of color (3x uint8_t
).
Fills the strip with black (#000000) color.
Sets the brightness of strip.
Gets the private brightness variable.
Gets the count of leds set in constructor.
Lorem ipsum
Lorem ipsum