hybridgroup.gobot/drivers/i2c
John Pauley 2697b2b42b gofmt 2017-05-04 23:45:17 -04:00
..
LICENSE license: update license year to include 2017 2017-01-02 22:25:17 +01:00
README.md i2c: add ads1115 to list of supported devices 2017-04-27 16:13:29 +02:00
adafruit_driver.go i2c: correctly return error, and increase test coverage for adafruit hat driver 2017-04-11 15:50:56 +02:00
adafruit_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
ads1x15_driver.go Fixed a bug with the ADS1015 reading. Updated example. 2017-04-27 09:10:03 -04:00
ads1x15_driver_test.go i2c: increase ads1x15 test coverage 2017-04-27 16:34:00 +02:00
blinkm_driver.go i2c: refactoring of the interface/implementations based on feedback and golinter 2017-02-10 11:08:32 +01:00
blinkm_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
bme280_driver.go i2c: adds Altitude() function to BMP280/BME280 2017-04-01 10:29:57 +02:00
bme280_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
bmp180_driver.go i2c: small refactoring and increase test coverage for bmp180 2017-04-27 17:07:44 +02:00
bmp180_driver_test.go i2c: small refactoring and increase test coverage for bmp180 2017-04-27 17:07:44 +02:00
bmp280_driver.go i2c: add test coverage for bme280 2017-04-01 13:46:37 +02:00
bmp280_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
doc.go docs: correct I2C README link 2016-12-21 10:56:51 +01:00
drv2605l_driver.go Fixed a bug where drv2605 keeps triggering after shutdown 2017-02-28 00:54:21 +01:00
drv2605l_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
grove_drivers.go i2c: reorder driver implementations based on suggestions from @goinggo 2017-02-10 11:44:36 +01:00
grove_drivers_test.go i2c: increase test coverage for Grove LCD and JHD1313M1 2017-04-03 21:35:32 +02:00
helpers_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
hmc6352_driver.go i2c: reorder driver implementations based on suggestions from @goinggo 2017-02-10 11:44:36 +01:00
hmc6352_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
i2c.go i2c: test coverage for Close() 2017-03-20 18:21:12 +01:00
i2c_config.go i2c: move Config into separate file for clarity 2017-02-13 08:31:49 +01:00
i2c_test.go i2c: increase test coverage 2017-04-11 12:29:31 +02:00
ina3221_driver.go gofmt 2017-05-04 23:45:17 -04:00
ina3221_driver_test.go cleanup driver and sample, additional documentation 2017-05-04 22:51:58 -04:00
jhd1313m1_driver.go i2c: reorder driver implementations based on suggestions from @goinggo 2017-02-10 11:44:36 +01:00
jhd1313m1_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
l3gd20h_driver.go i2c: small refactor and increase test coverage for l3gd20h 2017-04-12 17:37:05 +02:00
l3gd20h_driver_test.go i2c: small refactor and increase test coverage for l3gd20h 2017-04-12 17:37:05 +02:00
lidarlite_driver.go i2c: add some additional comments for godocs awesomeeness 2017-02-11 12:34:51 +01:00
lidarlite_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
mcp23017_driver.go i2c: additional refactoring MCP23017 driver to support new optional params 2017-02-14 11:30:56 +01:00
mcp23017_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
mma7660_driver.go i2c: increase test coverage for mma7660 and mpu6050 2017-04-04 11:50:31 +02:00
mma7660_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
mpl115a2_driver.go i2c: increase test coverage for mma7660 and mpl115a2 2017-04-04 12:34:42 +02:00
mpl115a2_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
mpu6050_driver.go i2c: add some additional comments for godocs awesomeeness 2017-02-11 12:34:51 +01:00
mpu6050_driver_test.go i2c: increase test coverage for mpu6050 2017-04-12 16:36:27 +02:00
sht3x_driver.go i2c: refactoring of the interface/implementations based on feedback and golinter 2017-02-10 11:08:32 +01:00
sht3x_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
ssd1306_driver.go SSD1306 Commands 2017-03-31 15:55:33 +11:00
ssd1306_driver_test.go i2c: increase test coverage 2017-04-12 11:47:42 +02:00
tsl2561_driver.go i2c: small refactor and increase test coverage for tsl2561 2017-04-12 16:44:15 +02:00
tsl2561_driver_test.go i2c: increase test coverage for tsl2561 2017-04-12 17:23:28 +02:00
wiichuck_driver.go i2c: copy wiichuck joystick data to avoid race conditions 2017-04-12 16:00:22 +02:00
wiichuck_driver_test.go i2c: copy wiichuck joystick data in test to avoid race conditions 2017-04-12 16:11:55 +02:00

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))