libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
neopixel.h File Reference

Go to the source code of this file.

Classes

class  daisy::NeoPixelI2CTransport
 
struct  daisy::NeoPixelI2CTransport::Config
 
class  daisy::NeoPixel< Transport >
 Device support for Adafruit Neopixel Device. More...
 
struct  daisy::NeoPixel< Transport >::Config
 

Namespaces

namespace  daisy
 Hardware defines and helpers for daisy field platform.
 

Macros

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

Typedefs

using daisy::NeoPixelI2C = NeoPixel< NeoPixelI2CTransport >
 

Macro Definition Documentation

◆ DSY_NEO_PIXEL_H

#define DSY_NEO_PIXEL_H

◆ NEO_BGR

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

◆ NEO_BGRW

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

◆ NEO_BGWR

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

◆ NEO_BRG

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

◆ NEO_BRGW

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

◆ NEO_BRWG

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

◆ NEO_BWGR

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

◆ NEO_BWRG

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

◆ NEO_GBR

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

◆ NEO_GBRW

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

◆ NEO_GBWR

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

◆ NEO_GRB

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

◆ NEO_GRBW

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

◆ NEO_GRWB

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

◆ NEO_GWBR

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

◆ NEO_GWRB

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

◆ NEO_KHZ400

#define NEO_KHZ400   0x0100

◆ NEO_KHZ800

#define NEO_KHZ800   0x0000

◆ NEO_RBG

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

◆ NEO_RBGW

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

◆ NEO_RBWG

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

◆ NEO_RGB

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

◆ NEO_RGBW

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

◆ NEO_RGWB

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

◆ NEO_RWBG

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

◆ NEO_RWGB

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

◆ NEO_TRELLIS_ADDR_NEOPIXEL

#define NEO_TRELLIS_ADDR_NEOPIXEL   (0x2E)

Default Neotrellis I2C address.

◆ NEO_WBGR

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

◆ NEO_WBRG

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

◆ NEO_WGBR

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

◆ NEO_WGRB

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

◆ NEO_WRBG

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

◆ NEO_WRGB

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