mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-09 19:29:27 +08:00
934 B
934 B
SPI
This package provides drivers for spi devices. It must be used along with the raspberry pi adaptor that supports the needed interfaces for spi devices. This uses the experimental spi package which only works on linux systems.
Getting Started
Installing
go get -d -u gobot.io/x/gobot/...
Hardware Support
Gobot has a extensible system for connecting to hardware devices. The following spi devices are currently supported:
More drivers are coming soon...
Using A Different Bus or Address
You can set a different SPI address or SPI bus than the default when initializing your SPI drivers by using optional parameters. Here is an example:
blinkm := spi.NewGoPiGo3DriverDriver(e, spi.WithBus(0), spi.WithAddress(0x10), spi.With)