Versions in this module Expand all Collapse all v1 v1.0.0 Aug 10, 2017 Changes in this version + var LEDs []*LED + var Pins map[int]*Pin + var ThermalSensors []*ThermalSensor + func SetSpeedHook(h func(hz int64) error) error + type I2C struct + func NewI2C(busNumber int) (*I2C, error) + func (i *I2C) Close() error + func (i *I2C) SCL() gpio.PinIO + func (i *I2C) SDA() gpio.PinIO + func (i *I2C) SetSpeed(hz int64) error + func (i *I2C) String() string + func (i *I2C) Tx(addr uint16, w, r []byte) error + type LED struct + func LEDByName(name string) (*LED, error) + func (l *LED) Function() string + func (l *LED) In(pull gpio.Pull, edge gpio.Edge) error + func (l *LED) Name() string + func (l *LED) Number() int + func (l *LED) Out(level gpio.Level) error + func (l *LED) Pull() gpio.Pull + func (l *LED) Read() gpio.Level + func (l *LED) String() string + func (l *LED) WaitForEdge(timeout time.Duration) bool + type Pin struct + func (p *Pin) Function() string + func (p *Pin) In(pull gpio.Pull, edge gpio.Edge) error + func (p *Pin) Name() string + func (p *Pin) Number() int + func (p *Pin) Out(l gpio.Level) error + func (p *Pin) Pull() gpio.Pull + func (p *Pin) Read() gpio.Level + func (p *Pin) String() string + func (p *Pin) WaitForEdge(timeout time.Duration) bool + type SPI struct + func NewSPI(busNumber, chipSelect int) (*SPI, error) + func (s *SPI) CLK() gpio.PinOut + func (s *SPI) CS() gpio.PinOut + func (s *SPI) Close() error + func (s *SPI) DevParams(maxHz int64, mode spi.Mode, bits int) (spi.Conn, error) + func (s *SPI) LimitSpeed(maxHz int64) error + func (s *SPI) MISO() gpio.PinIn + func (s *SPI) MOSI() gpio.PinOut + func (s *SPI) MaxTxSize() int + func (s *SPI) String() string + type ThermalSensor struct + func ThermalSensorByName(name string) (*ThermalSensor, error) + func (t *ThermalSensor) Sense(env *devices.Environment) error + func (t *ThermalSensor) String() string + func (t *ThermalSensor) Type() string Incompatible versions in this module v2.0.0+incompatible Aug 25, 2017