hybridgroup.gobot/drivers/i2c
Thomas Kohler aee81436c9
lint(all): switch to 1.55.2 and adjust linter issues (#1036)
2023-11-12 14:17:02 +01:00
..
LICENSE Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
README.md i2c(PCA9685, adafruit): clean up architecture and fix init (#1021) 2023-10-29 19:35:26 +01:00
adafruit1109_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
adafruit1109_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
adafruit2327_driver.go i2c(PCA9685, adafruit): clean up architecture and fix init (#1021) 2023-10-29 19:35:26 +01:00
adafruit2327_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
adafruit2348_driver.go i2c(PCA9685, adafruit): clean up architecture and fix init (#1021) 2023-10-29 19:35:26 +01:00
adafruit2348_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ads1x15_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
ads1x15_driver_1015_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ads1x15_driver_1115_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ads1x15_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
adxl345_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
adxl345_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
bh1750_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
bh1750_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
blinkm_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
blinkm_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
bme280_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
bme280_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
bmp180_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
bmp180_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
bmp280_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
bmp280_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
bmp388_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
bmp388_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ccs811_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
ccs811_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
doc.go core(build): CLI removed (#946) 2023-06-04 18:36:55 +02:00
drv2605l_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
drv2605l_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
generic_driver.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
generic_driver_test.go test(all): switch to test package stretchr testify (#1006) 2023-10-20 10:27:09 +02:00
grove_drivers.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
grove_drivers_test.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
grovepi_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
grovepi_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
helpers_test.go all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
hmc5883l_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
hmc5883l_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
hmc6352_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
hmc6352_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
i2c_config.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
i2c_config_test.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
i2c_connection.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
i2c_connection_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
i2c_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
i2c_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ina3221_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
ina3221_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
jhd1313m1_driver.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
jhd1313m1_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
l3gd20h_driver.go all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
l3gd20h_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
lidarlite_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
lidarlite_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
mcp23017_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
mcp23017_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
mfrc522_driver.go Build(v2): revert move to v2 subfolder (#932) 2023-05-29 19:23:28 +02:00
mma7660_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
mma7660_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
mpl115a2_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
mpl115a2_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
mpu6050_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
mpu6050_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
pca953x_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
pca953x_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
pca9501_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
pca9501_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
pca9685_driver.go i2c(PCA9685, adafruit): clean up architecture and fix init (#1021) 2023-10-29 19:35:26 +01:00
pca9685_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
pcf8583_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
pcf8583_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
pcf8591_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
pcf8591_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
sht2x_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
sht2x_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
sht3x_driver.go all(style) : fix linter issues for errcheck, ineffassign, unused and fix errors (#950) 2023-06-12 19:51:25 +02:00
sht3x_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
ssd1306_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
ssd1306_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
th02_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
th02_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
tsl2561_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
tsl2561_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
wiichuck_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
wiichuck_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00
yl40_driver.go build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
yl40_driver_test.go lint(all): switch to 1.55.2 and adjust linter issues (#1036) 2023-11-12 14:17:02 +01:00

README.md

I2C

This package provides drivers for i2cdevices. It must be used along with an adaptor such as Tinker Board that supports the needed interfaces for i2c devices.

Getting Started

Please refer to the main README.md

Hardware Support

Gobot has a extensible system for connecting to hardware devices. The following i2c devices are currently supported:

  • Adafruit 1109 2x16 RGB-LCD with 5 keys
  • Adafruit 2327 16-Channel PWM/Servo HAT Hat
  • Adafruit 2348 DC and Stepper 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
  • BMP388 Barometric Pressure/Temperature/Altitude Sensor
  • DRV2605L Haptic Controller
  • Generic driver for read and write values to/from register address
  • Grove Digital Accelerometer
  • GrovePi Expansion Board
  • Grove RGB LCD
  • HMC6352 Compass
  • HMC5883L 3-Axis Digital Compass
  • INA3221 Voltage Monitor
  • JHD1313M1 LCD Display w/RGB Backlight
  • L3GD20H 3-Axis Gyroscope
  • LIDAR-Lite
  • MCP23017 Port Expander
  • MMA7660 3-Axis Accelerometer
  • MPL115A2 Barometric Pressure/Temperature
  • MPU6050 Accelerometer/Gyroscope
  • PCA9501 8-bit I/O port with interrupt, 2-kbit EEPROM
  • PCA953x LED Dimmer for PCA9530 (2-bit), PCA9533 (4-bit), PCA9531 (8-bit), PCA9532 (16-bit)
  • PCA9685 16-channel 12-bit PWM/Servo Driver
  • PCF8583 clock and calendar or event counter, 240 x 8-bit RAM
  • PCF8591 8-bit 4xA/D & 1xD/A converter
  • SHT2x Temperature/Humidity
  • SHT3x-D Temperature/Humidity
  • SSD1306 OLED Display Controller
  • TSL2561 Digital Luminosity/Lux/Light Sensor
  • Wii Nunchuck Controller
  • YL-40 Brightness/Temperature sensor, Potentiometer, analog input, analog output Driver

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))