hybridgroup.gobot/drivers/i2c
Kevin Lutzer 64ab6f6b8f build out the ccs811 driver 2019-05-22 11:34:39 +02:00
..
LICENSE docs: update copyright date to 2018 2018-02-14 08:24:39 +01:00
README.md docs: add GrovePi to README 2018-08-23 18:07:08 +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
adxl345_driver.go added documentation to private structs 2018-01-27 20:17:40 +01:00
adxl345_driver_test.go added documentation to private structs 2018-01-27 20:17:40 +01:00
bh1750_driver.go added comments for godoc 2018-01-12 16:26:21 +01:00
bh1750_driver_test.go Added basic driver for BH1750 (light sensor), board GY-302 2018-01-11 20:56:23 +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 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
ccs811_driver.go build out the ccs811 driver 2019-05-22 11:34:39 +02:00
ccs811_driver_test.go build out the ccs811 driver 2019-05-22 11:34:39 +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
grovepi_driver.go grovepi: add mutex to control transactionality of the device communication 2019-05-22 11:34:39 +02:00
grovepi_driver_test.go i2c: add missing methods so the GrovePi fully implements the Adaptor interface 2018-08-15 00:12:48 +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: add commands to JHD1313MDriver 2018-08-15 12:25:07 +02:00
jhd1313m1_driver_test.go i2c: add commands to JHD1313MDriver 2018-08-15 12:25:07 +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 fix write/read gpio 2018-06-30 15:09:33 -06:00
mcp23017_driver_test.go restore driver interface test 2018-06-21 09:10:04 -06: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: update PCA9685 driver to use same protocol as Adafruit Python lib 2019-05-22 11:34:39 +02:00
pca9685_driver_test.go i2c: update PCA9685 driver to use same protocol as Adafruit Python lib 2019-05-22 11:34:39 +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 add 128x32 and 96x16 sizes to the i2c ssd1306 driver 2019-05-22 11:34:39 +02:00
ssd1306_driver_test.go add 128x32 and 96x16 sizes to the i2c ssd1306 driver 2019-05-22 11:34:39 +02:00
th02_driver.go Adde unit tests for TH02 & Minor improvement 2019-05-22 11:34:39 +02:00
th02_driver_test.go Adde unit tests for TH02 & Minor improvement 2019-05-22 11:34:39 +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 fixed typo 2017-09-23 14:16:19 +05:30

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
  • ADXL345 Digital Accelerometer
  • BH1750 Digital Luminosity/Lux/Light Sensor
  • 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
  • GrovePi Expansion Board
  • 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))