hybridgroup.gobot/drivers/i2c
deadprogram 0581133574 i2c: exclude sysfs oriented tests on Windows, at least for now
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-07-12 09:47:44 -06:00
..
LICENSE license: update license year to include 2017 2017-01-02 22:25:17 +01:00
README.md i2c: add PCA9685 servo driver to README 2017-06-23 20:18:02 +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 Fixed incorrect error condition check when reading the 'ctrl_hum' register. 2017-06-15 14:04:08 +02:00
bme280_driver_test.go Fixed incorrect error condition check when reading the 'ctrl_hum' register. 2017-06-15 14:04:08 +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: remove unused test code 2017-06-15 14:04:08 +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: exclude sysfs oriented tests on Windows, at least for now 2017-07-12 09:47:44 -06:00
i2c_config.go i2c: move Config into separate file for clarity 2017-02-13 08:31:49 +01:00
i2c_test.go i2c: exclude sysfs oriented tests on Windows, at least for now 2017-07-12 09:47:44 -06:00
ina3221_driver.go fix signed/unsigned bug 2017-06-15 14:04:08 +02:00
ina3221_driver_test.go gofmt, goimports 2017-05-05 20:57:10 -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
pca9685_driver.go i2c: improve docs and test coverage for PCA9685 2017-06-23 20:55:28 +02:00
pca9685_driver_test.go i2c: improve docs and test coverage for PCA9685 2017-06-23 20:55:28 +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
  • INA3221 Voltage Monitor
  • JHD1313M1 LCD Display w/RGB Backlight
  • L3GD20H 3-Axis Gyroscope
  • LIDAR-Lite
  • MCP23017 Port Expander
  • MMA7660 3-Axis Accelerometer
  • MPL115A2 Barometer
  • MPU6050 Accelerometer/Gyroscope
  • PCA9685 16-channel 12-bit PWM/Servo Driver
  • 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))