Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 558 Bytes
package aio
import (
var (
// ErrAnalogReadUnsupported is error resulting when a driver attempts to use
// hardware capabilities which a connection does not support
ErrAnalogReadUnsupported = errors.New("AnalogRead is not supported by this platform")
const (
// Error event
Error = "error"
// Data event
Data = "data"
// Vibration event
Vibration = "vibration"
// AnalogReader interface represents an Adaptor which has Analog capabilities
type AnalogReader interface {
AnalogRead(string) (val int, err error)
You can’t perform that action at this time.