gpio

package
v0.0.0-...-3ecda6a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sensor

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

func NewSensor

func NewSensor(pin gpio.Pin, name, stateLow, stateHigh string) *Sensor

func (*Sensor) Close

func (sensor *Sensor) Close() error

func (*Sensor) Name

func (sensor *Sensor) Name() string

func (*Sensor) State

func (sensor *Sensor) State() string

func (*Sensor) Watch

func (sensor *Sensor) Watch(watcher func()) error

Jump to

Keyboard shortcuts

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