limitlessclient

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Controllers []Controller `json:"controllers"`
}

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) Sync

func (b *Backend) Sync()

type Controller

type Controller struct {
	limitless.LimitlessController
	CurrentColors map[int]*colorful.Color `json:"-"`
	NextColors    map[int]*colorful.Color `json:"-"`
}

func (*Controller) Sync

func (c *Controller) Sync()

type LimitlessLight

type LimitlessLight struct {
	chromaticity.LightInfo
	LightState *chromaticity.State       `json:"state"`
	Group      *limitless.LimitlessGroup `json:"-"`
	NextColor  *colorful.Color           `json:"-"`
}

func (LimitlessLight) GetNumPixels

func (k LimitlessLight) GetNumPixels() uint16

func (LimitlessLight) GetState

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

func (LimitlessLight) SetColor

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

func (LimitlessLight) SetColors

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

Jump to

Keyboard shortcuts

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