yotaro morizumi / Mbed 2 deprecated zoomy_customLibrary

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Pixel Union Reference

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 49 of file neopixel.h.


Member Function Documentation

struct __attribute__ ( (packed)   ) [read]

Struct for access to individual color components.

Definition at line 51 of file neopixel.h.


Field Documentation

uint32_t hex

RGB color as a single uint32_t.

Definition at line 56 of file neopixel.h.