hybridgroup.gobot/drivers/i2c
deadprogram fa7ce5c646 i2c: increase test coverage for bmp180 and jdh1313m1 drivers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-04 15:58:40 +02:00
..
LICENSE license: update license year to include 2017 2017-01-02 22:25:17 +01:00
README.md i2c: add bme280 and bmp280 to list of supported drivers 2017-04-01 13:51:36 +02:00
adafruit_driver.go i2c: reorder driver implementations based on suggestions from @goinggo 2017-02-10 11:44:36 +01:00
adafruit_driver_test.go i2c: increase test coverage 2017-02-14 17:10:04 +01: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 for drivers 2017-02-11 11:53:19 +01: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 for bme280 2017-04-03 21:16:38 +02:00
bmp180_driver.go i2c: increase test coverage for bmp180 and jdh1313m1 drivers 2017-04-04 15:58:40 +02:00
bmp180_driver_test.go i2c: increase test coverage for bmp180 and jdh1313m1 drivers 2017-04-04 15:58:40 +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 for bme280 and bmp280 2017-04-03 20:09:50 +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 Fixed a bug where drv2605 keeps triggering after shutdown 2017-02-28 00:54:21 +01: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: eliminate race conditions introduced by tests 2017-04-02 20:10:12 +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 for drivers 2017-02-11 11:53:19 +01: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: test coverage for Close() 2017-03-20 18:21:12 +01: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 for bmp180 and jdh1313m1 drivers 2017-04-04 15:58:40 +02:00
l3gd20h_driver.go i2c: return error correctly, increase test coverage for l3gd20h 2017-04-04 15:21:17 +02:00
l3gd20h_driver_test.go i2c: return error correctly, increase test coverage for l3gd20h 2017-04-04 15:21:17 +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 for lidar-lite 2017-04-04 14:34:06 +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: additional refactoring MCP23017 driver to support new optional params 2017-02-14 11:30:56 +01: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 for mma7660 and mpl115a2 2017-04-04 12:34: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 for mma7660 and mpl115a2 2017-04-04 12:34: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 mma7660 and mpu6050 2017-04-04 11:50:31 +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 for drivers 2017-02-11 11:53:19 +01:00
ssd1306_driver.go SSD1306 Commands 2017-03-31 15:55:33 +11:00
ssd1306_driver_test.go SSD1306 Commands 2017-03-31 15:55:33 +11:00
tsl2561_driver.go i2c: minor adjustments to remove metalinter warnings 2017-03-21 09:28:46 +01:00
tsl2561_driver_test.go i2c: increase test coverage for tsl2561 2017-04-04 14:06:58 +02:00
wiichuck_driver.go i2c: eliminate race conditions introduced by tests 2017-04-02 20:10:12 +02:00
wiichuck_driver_test.go i2c: eliminate race conditions introduced by tests 2017-04-02 20:10:12 +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
  • 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))