hybridgroup.gobot/drivers/i2c
Ron Evans c4acb468af docs: add references to new drivers for ADXL345, BH1750, and TM1638.
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2018-02-14 09:40:39 +01:00
..
LICENSE docs: update copyright date to 2018 2018-02-14 08:24:39 +01:00
README.md docs: add references to new drivers for ADXL345, BH1750, and TM1638. 2018-02-14 09:40:39 +01:00
adafruit_driver.go
adafruit_driver_test.go
ads1x15_driver.go
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
blinkm_driver_test.go
bme280_driver.go
bme280_driver_test.go
bmp180_driver.go
bmp180_driver_test.go
bmp280_driver.go i2c: add test coverage for bme280 2017-04-01 13:46:37 +02:00
bmp280_driver_test.go
doc.go
drv2605l_driver.go
drv2605l_driver_test.go
grove_drivers.go
grove_drivers_test.go
helpers_test.go
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
ina3221_driver_test.go gofmt, goimports 2017-05-05 20:57:10 -04:00
jhd1313m1_driver.go Change init payload sequence within jhd1313m1 driver Start() func. 2017-11-05 16:56:51 +01:00
jhd1313m1_driver_test.go
l3gd20h_driver.go
l3gd20h_driver_test.go
lidarlite_driver.go
lidarlite_driver_test.go
mcp23017_driver.go
mcp23017_driver_test.go
mma7660_driver.go
mma7660_driver_test.go
mpl115a2_driver.go
mpl115a2_driver_test.go
mpu6050_driver.go i2c: add some additional comments for godocs awesomeeness 2017-02-11 12:34:51 +01:00
mpu6050_driver_test.go
pca9685_driver.go
pca9685_driver_test.go
sht3x_driver.go
sht3x_driver_test.go
ssd1306_driver.go i2c: SSD1306.WithDisplayHeight() and SSD1306.WithDisplayWidth() for SSD1306 that use different display ratios 2017-10-22 10:54:31 +02:00
ssd1306_driver_test.go i2c: SSD1306.WithDisplayHeight() and SSD1306.WithDisplayWidth() for SSD1306 that use different display ratios 2017-10-22 10:54:31 +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
  • 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))