wimatrix

package
v0.0.0-...-b7d2793 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MQTTWimatrixMsg             = "_msg"
	MQTTWiMatrixSetBrightness   = "_brightness"
	MQTTWiMatrixSetBGBrightness = "_bgbrightness"
	MQTTWiMatrixSetBGColor      = "_bgcolor"
	MQTTWiMatrixSetTextColor    = "_textcolor"
	MQTTWiMatrixSetMode         = "_mode"
	MQTTWiMatrixSetSpeed        = "_scrollspeed"
	MQTTSetRoomLight            = "ENTRADA/036"
)

MQTT Topics

View Source
const (
	EvNewSub            = "WiMatrix:NewSub"
	EvNewBits           = "WiMatrix:NewBits"
	EvNewFollower       = "WiMatrix:NewFollower"
	EvNewMsg            = "WiMatrix:NewMsg"
	EvSetTextColor      = "WiMatrix:SetTextColor"
	EvSetBgColor        = "WiMatrix:SetBackgroundColor"
	EvSetTextBrightness = "WiMatrix:SetTextBrightness"
	EvSetBgBrightness   = "WiMatrix:SetBackgroundBrightness"
	EvNewMode           = "WiMatrix:SetMode"
	EvSetSpeed          = "WiMatrix:SetSpeed"
	EvSetLight          = "Room:SetLight"
)

EventBus Topics

Variables

Functions

This section is empty.

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

func MakeWiiMatrix

func MakeWiiMatrix(name string, mq mqtt.Client, ev EventBus.Bus) *Device

func (*Device) Start

func (d *Device) Start()

func (*Device) Stop

func (d *Device) Stop()

type Mode

type Mode uint8
const (
	ModeStringDisplay           Mode = 0
	ModeBackgroundOnly          Mode = 1
	ModeBackgroundStringDisplay Mode = 2
	ModeClock                   Mode = 3
	ModeBackgroundClock         Mode = 4
)

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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