monome

package
v0.0.0-...-e52d0b3 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	List = iota
	Add
	Remove
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arc

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

func NewArc

func NewArc(deviceport int32) (*Arc, error)

func StartArc

func StartArc(deviceport int32) (*Arc, error)

func (*Arc) Close

func (a *Arc) Close()

func (*Arc) Connect

func (a *Arc) Connect()

func (*Arc) ListenAndServe

func (a *Arc) ListenAndServe() error

func (*Arc) Read

func (a *Arc) Read() DeviceEvent

func (*Arc) RingAll

func (a *Arc) RingAll(enc int32, level int32)

type ControlEvent

type ControlEvent struct {
	EventType  ControlEventType
	ID         string
	DeviceType string
	Port       int32
}

func (ControlEvent) DeviceKind

func (c ControlEvent) DeviceKind() string

type ControlEventType

type ControlEventType int

func (ControlEventType) String

func (s ControlEventType) String() string

type DeviceEvent

type DeviceEvent interface {
	Type() string
}

type Grid

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

func NewGrid

func NewGrid(deviceport int32) (*Grid, error)

func StartGrid

func StartGrid(deviceport int32) (*Grid, error)

func (*Grid) Close

func (g *Grid) Close()

func (*Grid) Connect

func (g *Grid) Connect()

func (*Grid) LedAll

func (g *Grid) LedAll(v bool)

func (*Grid) LedSet

func (g *Grid) LedSet(x, y, s int32)

func (*Grid) ListenAndServe

func (g *Grid) ListenAndServe() error

func (*Grid) Read

func (g *Grid) Read() DeviceEvent

type KeyEvent

type KeyEvent struct {
	X int32
	Y int32
	S int32
}

func (KeyEvent) String

func (c KeyEvent) String() string

func (KeyEvent) Type

func (c KeyEvent) Type() string

type ReadyEvent

type ReadyEvent struct {
	ID string
}

func (ReadyEvent) String

func (c ReadyEvent) String() string

func (ReadyEvent) Type

func (c ReadyEvent) Type() string

type RingPressEvent

type RingPressEvent struct {
	E int32
	S int32
}

func (RingPressEvent) String

func (c RingPressEvent) String() string

func (RingPressEvent) Type

func (c RingPressEvent) Type() string

type SerialOSC

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

func NewSerialOSC

func NewSerialOSC() (*SerialOSC, error)

func StartSerialOSC

func StartSerialOSC() (*SerialOSC, error)

func (*SerialOSC) Close

func (s *SerialOSC) Close()

func (*SerialOSC) List

func (s *SerialOSC) List()

func (*SerialOSC) ListenAndServe

func (s *SerialOSC) ListenAndServe() error

func (*SerialOSC) Read

func (s *SerialOSC) Read() (ControlEvent, error)

func (*SerialOSC) Subscribe

func (s *SerialOSC) Subscribe()

Subscribe registers an interest in add/remove events from serial-osc.

type TiltEvent

type TiltEvent struct {
	N int32
	X int32
	Y int32
	Z int32
}

func (TiltEvent) String

func (c TiltEvent) String() string

func (TiltEvent) Type

func (c TiltEvent) Type() string

Jump to

Keyboard shortcuts

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