libwall

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

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

Go to latest
Published: Feb 6, 2020 License: NCSA Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ON  byte = 0x01
	OFF byte = 0x00
	ALL byte = 0xfe
)

Variables

View Source
var ControlCodes = map[string]byte{
	"power":      0x11,
	"volume":     0x12,
	"source":     0x14,
	"mode":       0x18,
	"size":       0x19,
	"pip":        0x3c,
	"autoAdjust": 0x3d,
	"vwallMode":  0x5c,
	"safety":     0x5d,
	"wall":       0x89,
}
View Source
var Sources = map[string]byte{
	"pc":        0x14,
	"bnc":       0x1e,
	"dvi":       0x18,
	"av":        0x0c,
	"svideo":    0x04,
	"component": 0x08,
	"magicinfo": 0x20,

	"hdmi1": 0x21,

	"hdmi2": 0x23,

	"displayport": 0x25,
}

DVI_VIDEO, HDMI1_PC, HDMI2_PC → Get Only In the case of MagicInfo, only possible with models include MagicInfo In the case of TV, only possible with models include TV.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	ID, Position, X, Y byte
	Port               *serial.Config
	Debug              bool
}

func NewPanel

func NewPanel(id byte, port string, debug bool) *Panel

func (*Panel) Set

func (p *Panel) Set(command string, value ...byte) error

type Wall

type Wall struct {
	Panels []*Panel
}

func (Wall) Off

func (wall Wall) Off() error

func (Wall) On

func (wall Wall) On() error

Jump to

Keyboard shortcuts

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