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
adafruit_driver_test.go
ads1x15_driver.go
ads1x15_driver_test.go
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
blinkm_driver_test.go
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
bmp180_driver_test.go
bmp280_driver.go
bmp280_driver_test.go
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
drv2605l_driver.go
drv2605l_driver_test.go
grove_drivers.go
grove_drivers_test.go
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
hmc6352_driver_test.go
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_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
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
l3gd20h_driver_test.go
lidarlite_driver.go
lidarlite_driver_test.go
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
mma7660_driver_test.go
mpl115a2_driver.go
mpl115a2_driver_test.go
mpu6050_driver.go
mpu6050_driver_test.go
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
sht3x_driver_test.go
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
tsl2561_driver_test.go
wiichuck_driver.go
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))