apa102

package
v0.0.0-...-51cfa91 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_BRIGHTNESS = 31
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APA102

type APA102 struct {
	Bus embd.SPIBus
	LED []uint8
	// contains filtered or unexported fields
}

func New

func New(bus embd.SPIBus, numLEDs int) *APA102

func (*APA102) SetLED

func (a *APA102) SetLED(index int, r uint8, g uint8, b uint8, i uint8) error

func (*APA102) Show

func (a *APA102) Show() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL