gobot.io/x/gobot@v1.16.0/drivers/i2c/README.md (about)

     1  # I2C
     2  
     3  This package provides drivers for [i2c](https://en.wikipedia.org/wiki/I%C2%B2C)devices. It must be used along with an adaptor such as [firmata](https://gobot.io/x/gobot/platforms/firmata) that supports the needed interfaces for i2c devices.
     4  
     5  ## Getting Started
     6  
     7  ## Installing
     8  ```
     9  go get -d -u gobot.io/x/gobot/...
    10  ```
    11  
    12  ## Hardware Support
    13  Gobot has a extensible system for connecting to hardware devices. The following i2c devices are currently supported:
    14  
    15  - Adafruit 2x16 RGB-LCD with 5 keys
    16  - Adafruit Motor Hat
    17  - ADS1015 Analog to Digital Converter
    18  - ADS1115 Analog to Digital Converter
    19  - ADXL345 Digital Accelerometer
    20  - BH1750 Digital Luminosity/Lux/Light Sensor
    21  - BlinkM LED
    22  - BME280 Barometric Pressure/Temperature/Altitude/Humidity Sensor
    23  - BMP180 Barometric Pressure/Temperature/Altitude Sensor
    24  - BMP280 Barometric Pressure/Temperature/Altitude Sensor
    25  - BMP388 Barometric Pressure/Temperature/Altitude Sensor
    26  - DRV2605L Haptic Controller
    27  - Grove Digital Accelerometer
    28  - GrovePi Expansion Board
    29  - Grove RGB LCD
    30  - HMC6352 Compass
    31  - HMC8553L 3-Axis Digital Compass
    32  - INA3221 Voltage Monitor
    33  - JHD1313M1 LCD Display w/RGB Backlight
    34  - L3GD20H 3-Axis Gyroscope
    35  - LIDAR-Lite
    36  - MCP23017 Port Expander
    37  - MMA7660 3-Axis Accelerometer
    38  - MPL115A2 Barometer
    39  - MPU6050 Accelerometer/Gyroscope
    40  - PCA9685 16-channel 12-bit PWM/Servo Driver
    41  - PCF8591 8-bit 4xA/D & 1xD/A converter
    42  - SHT2x Temperature/Humidity
    43  - SHT3x-D Temperature/Humidity
    44  - SSD1306 OLED Display Controller
    45  - TSL2561 Digital Luminosity/Lux/Light Sensor
    46  - Wii Nunchuck Controller
    47  - Y-40 Brightness/Temperature sensor, Potentiometer, analog input, analog output Driver
    48  
    49  More drivers are coming soon...
    50  
    51  ## Using A Different Bus or Address
    52  
    53  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:
    54  
    55  ```go
    56  blinkm := i2c.NewBlinkMDriver(e, i2c.WithBus(0), i2c.WithAddress(0x09))
    57  ```