Versions in this module Expand all Collapse all v1 v1.0.0 Aug 10, 2017 Changes in this version + const SkipAddr + type I2C struct + func New(clk gpio.PinIO, data gpio.PinIO, speedHz 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 SPI struct + func NewSPI(clk, mosi gpio.PinOut, miso gpio.PinIn, cs gpio.PinOut, speedHz int64) (*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) error + func (s *SPI) Duplex() conn.Duplex + func (s *SPI) LimitSpeed(maxHz int64) error + func (s *SPI) MISO() gpio.PinIn + func (s *SPI) MOSI() gpio.PinOut + func (s *SPI) String() string + func (s *SPI) Tx(w, r []byte) error + func (s *SPI) TxPackets(p []spi.Packet) error + func (s *SPI) Write(d []byte) (int, error) Incompatible versions in this module v3.6.4+incompatible Jun 12, 2020