limitless

package module
v0.0.0-...-cbc17e3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2015 License: MIT Imports: 5 Imported by: 2

README

go-limitless - LimitlessLED / MiLight library

A very basic golang library for interfacing with MiLight LED Lights via the wifi radio bridge.

Features

  • Group level color control

Examples

The following examples are included:

setcolor: set the color for a known group and radio bridge

See other

LimitlessLED: Description of the wifi radio bridge's binary control protcol

Documentation

Index

Constants

View Source
const (
	LIMITLESS_ADMIN_PORT = "48899"
	LIMITLESS_PORT       = "8899"
)
View Source
const MAX_BRIGHTNESS = 0x1b

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitlessController

type LimitlessController struct {
	Host   string           `json:"host"`
	Name   string           `json:"name"`
	Groups []LimitlessGroup `json:"groups"`
}

type LimitlessGroup

type LimitlessGroup struct {
	Id         int                  `json:"id"`
	Type       string               `json:"type"`
	Name       string               `json:"name"`
	Controller *LimitlessController `json:"-"`
}

func (*LimitlessGroup) Activate

func (g *LimitlessGroup) Activate() error

func (*LimitlessGroup) Off

func (g *LimitlessGroup) Off() error

func (*LimitlessGroup) On

func (g *LimitlessGroup) On() error

func (*LimitlessGroup) SendColor

func (g *LimitlessGroup) SendColor(c colorful.Color) error

func (*LimitlessGroup) SetBri

func (g *LimitlessGroup) SetBri(b uint8) error

func (*LimitlessGroup) SetHue

func (g *LimitlessGroup) SetHue(h uint8) error

func (*LimitlessGroup) White

func (g *LimitlessGroup) White() error

type LimitlessMessage

type LimitlessMessage struct {
	Key    uint8
	Value  uint8
	Suffix uint8
}

func NewLimitlessMessage

func NewLimitlessMessage() *LimitlessMessage

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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