3aa0cf5b89
Signed-off-by: deadprogram <ron@hybridgroup.com> |
||
---|---|---|
.. | ||
LICENSE | ||
README.md | ||
adafruit_driver.go | ||
adafruit_driver_test.go | ||
ads1x15_driver.go | ||
ads1x15_driver_test.go | ||
blinkm_driver.go | ||
blinkm_driver_test.go | ||
bme280_driver.go | ||
bme280_driver_test.go | ||
bmp180_driver.go | ||
bmp180_driver_test.go | ||
bmp280_driver.go | ||
bmp280_driver_test.go | ||
doc.go | ||
drv2605l_driver.go | ||
drv2605l_driver_test.go | ||
grove_drivers.go | ||
grove_drivers_test.go | ||
helpers_test.go | ||
hmc6352_driver.go | ||
hmc6352_driver_test.go | ||
i2c.go | ||
i2c_config.go | ||
i2c_test.go | ||
jhd1313m1_driver.go | ||
jhd1313m1_driver_test.go | ||
l3gd20h_driver.go | ||
l3gd20h_driver_test.go | ||
lidarlite_driver.go | ||
lidarlite_driver_test.go | ||
mcp23017_driver.go | ||
mcp23017_driver_test.go | ||
mma7660_driver.go | ||
mma7660_driver_test.go | ||
mpl115a2_driver.go | ||
mpl115a2_driver_test.go | ||
mpu6050_driver.go | ||
mpu6050_driver_test.go | ||
sht3x_driver.go | ||
sht3x_driver_test.go | ||
ssd1306_driver.go | ||
ssd1306_driver_test.go | ||
tsl2561_driver.go | ||
tsl2561_driver_test.go | ||
wiichuck_driver.go | ||
wiichuck_driver_test.go |
README.md
I2C
This package provides drivers for i2cdevices. It must be used along with an adaptor such as firmata that supports the needed interfaces for i2c devices.
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 i2c devices are currently supported:
- Adafruit Motor Hat
- ADS1015 Analog to Digital Converter
- ADS1115 Analog to Digital Converter
- BlinkM LED
- BME280 Barometric Pressure/Temperature/Altitude/Humidity Sensor
- BMP180 Barometric Pressure/Temperature/Altitude Sensor
- BMP280 Barometric Pressure/Temperature/Altitude Sensor
- DRV2605L Haptic Controller
- Grove Digital Accelerometer
- Grove RGB LCD
- HMC6352 Compass
- JHD1313M1 LCD Display w/RGB Backlight
- L3GD20H 3-Axis Gyroscope
- LIDAR-Lite
- MCP23017 Port Expander
- MMA7660 3-Axis Accelerometer
- MPL115A2 Barometer
- MPU6050 Accelerometer/Gyroscope
- SHT3x-D Temperature/Humidity
- SSD1306 OLED Display Controller
- TSL2561 Digital Luminosity/Lux/Light Sensor
- Wii Nunchuck Controller
More drivers are coming soon...
Using A Different Bus or Address
You can set a different I2C address or I2C bus than the default when initializing your I2C drivers by using optional parameters. Here is an example:
blinkm := i2c.NewBlinkMDriver(e, i2c.WithBus(0), i2c.WithAddress(0x09))