Versions in this module Expand all Collapse all v0 v0.2.0 Oct 12, 2018 v0.1.1 Oct 12, 2018 v0.1.0 Oct 12, 2018 Changes in this version + var USBAccessError = fmt.Errorf("USB stack could not be opened. Probably missing rights. Try to run as admin.") v0.0.10 Oct 12, 2018 v0.0.9 Oct 11, 2018 v0.0.8 Oct 11, 2018 v0.0.7 Oct 10, 2018 Changes in this version + func Connect(dev *usb.Device, options ...Option) (d *connection, err error) + func Greeter(dev Device) + func Marquee(m Device, s string, dur time.Duration) error + func NumButtons(dev Device) uint8 + func Print(m Device, s string, dur time.Duration) error + func SwitchAll(m Device, on bool) error + type Connection interface + Close func() error + IsClosed func() bool + SetHandler func(Handler) + StartListening func(errHandler func(error)) + StopListening func() + func Connections(options ...Option) ([]Connection, error) + func RowConnection(name string, connections ...Connection) Connection v0.0.6 Oct 10, 2018 v0.0.5 Oct 8, 2018 v0.0.4 Oct 8, 2018 v0.0.3 Oct 8, 2018 Changes in this version + type ConnectionClosedError string + func (c ConnectionClosedError) Error() string type Device + ReadMessage func() error v0.0.2 Oct 8, 2018 Changes in this version + const PRODUCT_ID + const VENDOR_ID + func New(dev *usb.Device, options ...Option) (d *monome, err error) + func PrintUSBDevice(dev *usb.Device) + func USBDevices(vendor_id, product_id string) ([]*usb.Device, error) + type CloseError struct + Device string + WrappedError error + func (e CloseError) Error() string + type ConnectError struct + USBDevice *usb.Device + USBEndPoint struct{ ... } + WrappedError error + func (m *ConnectError) Error() string type Device + func RowDevice(name string, devices ...Device) Device + func TestDevice(tester Tester, options ...Option) Device + Switch func(x, y uint8, on bool) error + SwitchAll func(on bool) error + type Error struct + Device string + Task string + WrappedError error + X uint8 + Y uint8 + func (e Error) Error() string + type Errors struct + Errors []error + Task string + func (m *Errors) Add(err error) + func (m *Errors) Error() string + func (m *Errors) Len() int + type ReadError struct + Device string + WrappedError error + func (e ReadError) Error() string + type Tester interface + Cols func() uint8 + Get func() (x, y uint8, down bool, err error) + Name func() string + Rows func() uint8 + Set func(x, y, brightness uint8) error + func CloseTester(cols, rows uint8, clos func() error) Tester + func GetTester(cols, rows uint8, get func() (x, y uint8, down bool, err error)) Tester + func SetTester(cols, rows uint8, set func(x, y, brightness uint8) error) Tester + type USBContextError string + func (e USBContextError) Error() string + type UnknownMonomeError struct + Response []byte + USBDevice *usb.Device + USBReaderEndPoint usb.EndpointInfo + USBWriterEndPoint usb.EndpointInfo + func (e *UnknownMonomeError) Error() string v0.0.1 Oct 6, 2018 Changes in this version + var LetterWidth = map[rune]int + var Letters = map[rune]map[[2]uint8]bool + type Device interface + AllOff func() + AllOn func() + Close func() error + Cols func() uint8 + IsClosed func() bool + Marquee func(s string, dur time.Duration) + NumButtons func() uint8 + Off func(x, y uint8) + On func(x, y uint8) + Print func(s string, dur time.Duration) + Read func() error + Rows func() uint8 + Set func(x, y, brightness uint8) + SetHandler func(Handler) + StartListening func(errHandler func(error)) + StopListening func() + String func() string + func Devices(options ...Option) ([]Device, error) + func Multi(devices ...Device) Device + type Handler interface + Handle func(d Device, x, y uint8, down bool) + type HandlerFunc func(d Device, x, y uint8, down bool) + func (h HandlerFunc) Handle(d Device, x, y uint8, down bool) + type Option func(*monome) + func PollInterval(interval time.Duration) Option