Versions in this module Expand all Collapse all v0 v0.3.4 May 18, 2022 v0.3.3 Apr 24, 2022 v0.3.2 Feb 2, 2022 v0.3.1 Nov 27, 2021 Changes in this version type RawTileDevice + Firmware lifxlan.RawStateHostFirmwarePayload v0.3.0 Mar 7, 2021 v0.2.0 Dec 27, 2020 Changes in this version + const GetDeviceChain + const GetTileState64 + const SetTileState64 + const StateDeviceChain + const StateTileState64 + type Board interface + Height func() int + OnTile func(x, y int) bool + Width func() int + type BoardData struct + Data [][]*IndexData + ReverseData [][][]Coordinate + func ParseBoard(tiles []*Tile) BoardData + type ColorBoard [][]*lifxlan.Color + func MakeColorBoard(width, height int) ColorBoard + func (cb ColorBoard) GetColor(x, y int) *lifxlan.Color + type Coordinate struct + X int + Y int + type Device interface + GetColors func(ctx context.Context, conn net.Conn) (ColorBoard, error) + SetColors func(ctx context.Context, conn net.Conn, cb ColorBoard, transition time.Duration, ...) error + TileWidth func(i int) uint8 + Tiles func() []Tile + func Wrap(ctx context.Context, d lifxlan.Device, force bool) (Device, error) + type IndexData struct + Index int + func (id IndexData) String() string + type RawGetTileState64Payload struct + Length uint8 + TileIndex uint8 + Width uint8 + X uint8 + Y uint8 + type RawSetTileState64Payload struct + Colors [64]lifxlan.Color + Duration lifxlan.TransitionTime + Length uint8 + TileIndex uint8 + Width uint8 + X uint8 + Y uint8 + type RawStateDeviceChainPayload struct + StartIndex uint8 + TileDevices [16]RawTileDevice + TotalCount uint8 + type RawStateTileState64Payload struct + Colors [64]lifxlan.Color + TileIndex uint8 + Width uint8 + X uint8 + Y uint8 + type RawTileDevice struct + AccelMeasX int16 + AccelMeasY int16 + AccelMeasZ int16 + HardwareVersion lifxlan.HardwareVersion + Height uint8 + UserX float32 + UserY float32 + Width uint8 + type Rotation int + const RotationFaceDown + const RotationFaceUp + const RotationRightSideUp + const RotationRotateLeft + const RotationRotateRight + const RotationUpsideDown + func ParseRotation(x, y, z int16) Rotation + func (r Rotation) String() string + type Tile struct + Height uint8 + Rotation Rotation + UserX float32 + UserY float32 + Width uint8 + func ParseTile(raw *RawTileDevice) *Tile + func (t Tile) BoardCoordinates() (coordinates [][]Coordinate, min Coordinate, max Coordinate) + func (t Tile) Rotate(x, y int) (int, int)