kinetclient

package
v0.0.0-...-33c2882 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPSLights

func AddPSLights(l *chromaticity.LightResource, ps *kinet.PowerSupply, nextColor []*colorful.Color)

func LightsFrom

func LightsFrom(ps *kinet.PowerSupply, nextColor []*colorful.Color) []chromaticity.Light

Types

type Backend

type Backend struct {
	PowerSupplies []kinet.PowerSupply          `json:"powerSupplies"`
	NextColor     map[string][]*colorful.Color `json:"-"`
	CurrentColor  map[string][]*colorful.Color `json:"-"`
	Gamma         float64                      `json:"gamma"`
}

func (*Backend) DiscoverLights

func (b *Backend) DiscoverLights(l *chromaticity.LightResource)

func (*Backend) GetType

func (b *Backend) GetType() string

func (*Backend) ImportLights

func (b *Backend) ImportLights(l *chromaticity.LightResource, from []byte)

func (*Backend) PSSync

func (b *Backend) PSSync(ps *kinet.PowerSupply)

func (*Backend) Sync

func (b *Backend) Sync()

type KinetLight

type KinetLight struct {
	*chromaticity.LightInfo
	LightState *chromaticity.State `json:"state"`
	Fixture    *kinet.Fixture      `json:"-"`
	Backend    `json:"-"`
	NextColor  *colorful.Color `json:"-"`
}

func (KinetLight) GetInfo

func (k KinetLight) GetInfo() *chromaticity.LightInfo

func (KinetLight) GetNumPixels

func (k KinetLight) GetNumPixels() uint16

func (KinetLight) GetState

func (k KinetLight) GetState() *chromaticity.State

func (KinetLight) GetType

func (k KinetLight) GetType() string

func (KinetLight) SetColor

func (k KinetLight) SetColor(c colorful.Color)

func (KinetLight) SetColors

func (k KinetLight) SetColors(c []colorful.Color)

Jump to

Keyboard shortcuts

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