# README
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...
# Functions
NewAdafruitMotorHatDriver initializes the internal DCMotor and StepperMotor types.
NewBlinkMDriver creates a new BlinkMDriver with specified name.
NewGroveAccelerometerDriver creates a new driver with specified name and i2c interface.
NewGroveLcdDriver creates a new driver with specified name and i2c interface.
NewHMC6352Driver creates a new driver with specified name and i2c interface.
NewJHD1313M1Driver creates a new driver with specified name and i2c interface.
NewLIDARLiteDriver creates a new driver with specified name and i2c interface.
NewMCP23017Driver creates a new driver with specified name and i2c interface.
NewMMA7660Driver creates a new driver with specified name and i2c interface.
NewMPL115A2Driver creates a new driver with specified name and i2c interface.
NewMPU6050Driver creates a new driver with specified name and i2c interface.
NewWiichuckDriver creates a WiichuckDriver with specified i2c interface and name.
# Constants
1.
1.
0.
2.
3.
2.
0.
# Variables
CustomLCDChars is a map of CGRAM characters that can be loaded into a LCD screen to display custom characters.
# Structs
AdafruitMotorHatDriver is a driver for the DC+Stepper Motor HAT from Adafruit.
GroveLcdDriver is a driver for the Jhd1313m1 LCD display which has two i2c addreses, one belongs to a controller and the other controls solely the backlight.
JHD1313M1Driver is a driver for the Jhd1313m1 LCD display which has two i2c addreses, one belongs to a controller and the other controls solely the backlight.
MCP23017Config contains the device configuration for the IOCON register.
MCP23017Driver contains the driver configuration parameters.
# Type aliases
AdafruitDirection declares a type for specification of the motor direction.
AdafruitStepStyle declares a type for specification of the stepper motor rotation.