Use anonymous struct in ws2812_rgb_t.
This commit is contained in:
parent
e97dca4859
commit
b0e683b909
2 changed files with 14 additions and 16 deletions
|
@ -38,7 +38,7 @@
|
|||
/**
|
||||
* @brief Struct for easy manipulation of RGB colors.
|
||||
*
|
||||
* Set components in the xrgb.c.r (etc.) and you will get
|
||||
* Set components in the xrgb.r (etc.) and you will get
|
||||
* the hex in xrgb.num.
|
||||
*/
|
||||
typedef union {
|
||||
|
@ -48,7 +48,7 @@ typedef union {
|
|||
uint8_t b;
|
||||
uint8_t g;
|
||||
uint8_t r;
|
||||
} c;
|
||||
};
|
||||
|
||||
/** RGB color as a single uint32_t */
|
||||
uint32_t num;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue