mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOpen          error
	ErrClose         error
	ErrReset         error
	ErrClear         error
	ErrSetBrightness error
	Displays         int
	Encoders         int
	Buttons          int
	ButtonLayout     image.Point
	ButtonSize       image.Point
)

Functions

func New

func New() benjamin.Device

Types

type Mock

type Mock struct {
}

Mock interface

func (Mock) Button

func (Mock) Button(int) benjamin.Button

func (Mock) ButtonAt

func (Mock) ButtonAt(image.Point) benjamin.Button

func (Mock) ButtonLayout

func (Mock) ButtonLayout() image.Point

func (Mock) ButtonSize

func (Mock) ButtonSize() image.Point

func (Mock) Buttons

func (Mock) Buttons() int

func (Mock) Clear

func (Mock) Clear() error

func (Mock) Close

func (Mock) Close() error

func (Mock) Display

func (Mock) Display(int) benjamin.Display

func (Mock) Displays

func (Mock) Displays() int

func (Mock) Encoder

func (Mock) Encoder(int) benjamin.Encoder

func (Mock) Encoders

func (Mock) Encoders() int

func (Mock) Events

func (Mock) Events() <-chan benjamin.Event

func (Mock) Manufacturer

func (Mock) Manufacturer() string

func (Mock) Open

func (Mock) Open() error

func (Mock) Product

func (Mock) Product() string

func (Mock) Reset

func (Mock) Reset() error

func (Mock) Serial

func (Mock) Serial() string

func (Mock) SetBrightness

func (Mock) SetBrightness(float64) error

Jump to

Keyboard shortcuts

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