Skip to content

File neopixel.h

FileList > dev > neopixel.h

Go to the source code of this file

Namespaces

Type Name
namespace daisy
Hardware defines and helpers for daisy field platform.

Classes

Type Name
class NeoPixel <typename Transport>
Device support for Adafruit Neopixel Device.
struct Config
class NeoPixelI2CTransport
struct Config

Macros

Type Name
define DSY_NEO_PIXEL_H
define NEO_BGR ((2 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (0))
define NEO_BGRW ((3 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (0))
define NEO_BGWR ((2 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (0))
define NEO_BRG ((1 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (0))
define NEO_BRGW ((3 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (0))
define NEO_BRWG ((2 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (0))
define NEO_BWGR ((1 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (0))
define NEO_BWRG ((1 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (0))
define NEO_GBR ((2 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (1))
define NEO_GBRW ((3 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (1))
define NEO_GBWR ((2 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (1))
define NEO_GRB ((1 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (2))
define NEO_GRBW ((3 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (2))
define NEO_GRWB ((2 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (3))
define NEO_GWBR ((1 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (2))
define NEO_GWRB ((1 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (0 &lt;&lt; 2) \| (3))
define NEO_KHZ400 0x0100
define NEO_KHZ800 0x0000
define NEO_RBG ((0 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (1))
define NEO_RBGW ((3 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (1))
define NEO_RBWG ((2 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (1))
define NEO_RGB ((0 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (2))
define NEO_RGBW ((3 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (2))
define NEO_RGWB ((2 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (3))
define NEO_RWBG ((1 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (2))
define NEO_RWGB ((1 &lt;&lt; 6) \| (0 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (3))
define NEO_TRELLIS_ADDR_NEOPIXEL (0x2E)
Default Neotrellis I2C address.
define NEO_WBGR ((0 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (1))
define NEO_WBRG ((0 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (1))
define NEO_WGBR ((0 &lt;&lt; 6) \| (3 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (2))
define NEO_WGRB ((0 &lt;&lt; 6) \| (2 &lt;&lt; 4) \| (1 &lt;&lt; 2) \| (3))
define NEO_WRBG ((0 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (3 &lt;&lt; 2) \| (2))
define NEO_WRGB ((0 &lt;&lt; 6) \| (1 &lt;&lt; 4) \| (2 &lt;&lt; 2) \| (3))

Macro Definition Documentation

define DSY_NEO_PIXEL_H

#define DSY_NEO_PIXEL_H 

define NEO_BGR

#define NEO_BGR `((2 << 6) | (2 << 4) | (1 << 2) | (0))`

define NEO_BGRW

#define NEO_BGRW `((3 << 6) | (2 << 4) | (1 << 2) | (0))`

define NEO_BGWR

#define NEO_BGWR `((2 << 6) | (3 << 4) | (1 << 2) | (0))`

define NEO_BRG

#define NEO_BRG `((1 << 6) | (1 << 4) | (2 << 2) | (0))`

define NEO_BRGW

#define NEO_BRGW `((3 << 6) | (1 << 4) | (2 << 2) | (0))`

define NEO_BRWG

#define NEO_BRWG `((2 << 6) | (1 << 4) | (3 << 2) | (0))`

define NEO_BWGR

#define NEO_BWGR `((1 << 6) | (3 << 4) | (2 << 2) | (0))`

define NEO_BWRG

#define NEO_BWRG `((1 << 6) | (2 << 4) | (3 << 2) | (0))`

define NEO_GBR

#define NEO_GBR `((2 << 6) | (2 << 4) | (0 << 2) | (1))`

define NEO_GBRW

#define NEO_GBRW `((3 << 6) | (2 << 4) | (0 << 2) | (1))`

define NEO_GBWR

#define NEO_GBWR `((2 << 6) | (3 << 4) | (0 << 2) | (1))`

define NEO_GRB

#define NEO_GRB `((1 << 6) | (1 << 4) | (0 << 2) | (2))`

define NEO_GRBW

#define NEO_GRBW `((3 << 6) | (1 << 4) | (0 << 2) | (2))`

define NEO_GRWB

#define NEO_GRWB `((2 << 6) | (1 << 4) | (0 << 2) | (3))`

define NEO_GWBR

#define NEO_GWBR `((1 << 6) | (3 << 4) | (0 << 2) | (2))`

define NEO_GWRB

#define NEO_GWRB `((1 << 6) | (2 << 4) | (0 << 2) | (3))`

define NEO_KHZ400

#define NEO_KHZ400 `0x0100`

define NEO_KHZ800

#define NEO_KHZ800 `0x0000`

define NEO_RBG

#define NEO_RBG `((0 << 6) | (0 << 4) | (2 << 2) | (1))`

define NEO_RBGW

#define NEO_RBGW `((3 << 6) | (0 << 4) | (2 << 2) | (1))`

define NEO_RBWG

#define NEO_RBWG `((2 << 6) | (0 << 4) | (3 << 2) | (1))`

define NEO_RGB

#define NEO_RGB `((0 << 6) | (0 << 4) | (1 << 2) | (2))`

define NEO_RGBW

#define NEO_RGBW `((3 << 6) | (0 << 4) | (1 << 2) | (2))`

define NEO_RGWB

#define NEO_RGWB `((2 << 6) | (0 << 4) | (1 << 2) | (3))`

define NEO_RWBG

#define NEO_RWBG `((1 << 6) | (0 << 4) | (3 << 2) | (2))`

define NEO_RWGB

#define NEO_RWGB `((1 << 6) | (0 << 4) | (2 << 2) | (3))`

define NEO_TRELLIS_ADDR_NEOPIXEL

Default Neotrellis I2C address.

#define NEO_TRELLIS_ADDR_NEOPIXEL `(0x2E)`


define NEO_WBGR

#define NEO_WBGR `((0 << 6) | (3 << 4) | (2 << 2) | (1))`

define NEO_WBRG

#define NEO_WBRG `((0 << 6) | (2 << 4) | (3 << 2) | (1))`

define NEO_WGBR

#define NEO_WGBR `((0 << 6) | (3 << 4) | (1 << 2) | (2))`

define NEO_WGRB

#define NEO_WGRB `((0 << 6) | (2 << 4) | (1 << 2) | (3))`

define NEO_WRBG

#define NEO_WRBG `((0 << 6) | (1 << 4) | (3 << 2) | (2))`

define NEO_WRGB

#define NEO_WRGB `((0 << 6) | (1 << 4) | (2 << 2) | (3))`


The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/neopixel.h