delcom_switch_go

package module
v0.0.0-...-9e9a021 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

delcom-switch-go

Simple driver for USB HID Hand Held Programmable Single Button Switch written on Go https://www.delcomproducts.com/productdetails.asp?PartNumber=706400

Documentation

Index

Constants

View Source
const (
	DelcomVendorID  uint16 = 0x0FC5
	DelcomProductID uint16 = 0xB080
	ProductType            = "USB FS IO"
)

Variables

View Source
var (
	ErrNoDelcomDevices = errors.New("no delcom devices")
	ErrNoDelcomSwitch  = errors.New("no delcom switch")
	ErrNoSwitchStatus  = errors.New("can't recognize switch status")
)

Functions

This section is empty.

Types

type DelcomSwitch

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

func NewSwitch

func NewSwitch() (*DelcomSwitch, error)

func (*DelcomSwitch) Close

func (btn *DelcomSwitch) Close() error

func (*DelcomSwitch) IsPressed

func (btn *DelcomSwitch) IsPressed() (bool, error)

Jump to

Keyboard shortcuts

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