Simple neopixel (WS2812) library, tuned for stm32 (L432) at 80 MHz Should be compatible with any stm32, different clock speed may require timing adjustments in neopixel.c
Pixel Union Reference
Struct for easy manipulation of RGB colors. More...
#include <neopixel.h>
Public Member Functions | |
struct | __attribute__ ((packed)) |
Struct for access to individual color components. | |
Data Fields | |
uint32_t | hex |
RGB color as a single uint32_t. |
Detailed Description
Struct for easy manipulation of RGB colors.
Set components in the xrgb.r (etc.) and you will get the hex in xrgb.num.
Definition at line 38 of file neopixel.h.
Member Function Documentation
struct __attribute__ | ( | (packed) | ) | [read] |
Struct for access to individual color components.
Definition at line 40 of file neopixel.h.
Field Documentation
uint32_t hex |
RGB color as a single uint32_t.
Definition at line 45 of file neopixel.h.
Generated on Tue Jul 12 2022 22:08:01 by 1.7.2