mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-29 13:49:14 +08:00

In the sysfs i2cDevice implementation, use an ioctl to get the adapter functionality mask. Prefer SMBus block I/O but if it's not available, perform read/write calls directly on the file descriptor. Improve Wiichuck error handling. Add a 1 ms delay between I/O operations to the Wiichuck; this dramatically improves reliability. Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
I2C
This package provides drivers for i2cdevices . It is normally not used directly, but instead is registered by an adaptor such as firmata that supports the needed interfaces for i2c devices.
Getting Started
Installing
go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/i2c
Hardware Support
Gobot has a extensible system for connecting to hardware devices. The following i2c devices are currently supported:
- BlinkM
- HMC6352 Digital Compass
- MPL115A2 Barometer/Temperature Sensor
- MPU6050 Accelerometer/Gyroscope
- Wii Nunchuck Controller
More drivers are coming soon...