tlc59711

package module
v0.0.0-...-86b1e80 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

README

TLC59711 Go Library

Library to use 12 Channel LED PWM Driver TLC59711 i.e. from Adafruit over SPI.

Code made possible by Adafruit C++ Library and ulrichstern/Tlc59711

Documentation

Index

Constants

View Source
const (
	LEDCOUNT = 12
	MAXVALUE = uint16(65535)
	MINVALUE = uint16(0)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tlc59711

type Tlc59711 struct {
	BCr, BCg, BCb uint32
	// contains filtered or unexported fields
}

func NewDevice

func NewDevice(cascaded int) *Tlc59711

func (*Tlc59711) Close

func (d *Tlc59711) Close() error

func (*Tlc59711) EnableAutoflush

func (d *Tlc59711) EnableAutoflush() error

func (*Tlc59711) Flush

func (d *Tlc59711) Flush() error

func (*Tlc59711) Open

func (d *Tlc59711) Open(spibus int, spidevice int) error

func (*Tlc59711) SetBuffer

func (d *Tlc59711) SetBuffer(id int, value uint16)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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