Documentation ¶
Overview ¶
Package apa102 implements a driver for the APA102 SPI LED.
Datasheet: https://cdn-shop.adafruit.com/product-files/2343/APA102C.pdf
Index ¶
Constants ¶
View Source
const ( // BGR aka "Blue Green Red" is the current APA102 LED color order. BGR = iota // BRG aka "Blue Red Green" is the typical APA102 color order from 2015-2017. BRG // GRB aka "Green Red Blue" is the typical APA102 color order from pre-2015. GRB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Order int // contains filtered or unexported fields }
Device wraps APA102 SPI LEDs.
func NewSoftwareSPI ¶ added in v0.6.0
NewSoftwareSPI returns a new APA102 driver that will use a software based implementation of the SPI protocol.
Click to show internal directories.
Click to hide internal directories.