import "github.com/kidoman/embd/host/generic"
Package generic provides generic (to Linux) drivers for functionalities like
Digital I/O I²C LED control
They are used by the hosts to satiate the HAL.
digitalpin.go doc.go i2cbus.go interrupt.go led.go spibus.go
const (
MaxGPIOInterrupt = 64
)
func NewDigitalPin(pd *embd.PinDesc, drv embd.GPIODriver) embd.DigitalPin
func NewSPIBus(spiDevMinor int, mode, channel byte, speed, bpw, delay int, i func() error) embd.SPIBus
Package generic imports 14 packages (graph) and is imported by 43 packages. Updated 2016-10-06. Refresh now. Tools for package owners.