Datasheet
Now look in the test sketch for the lines
if (!cap.begin()) {
Serial.println("CAP1188 not found");
while (1);
}
And change the cap.begin() statement to cap.begin(0x28) to initialize it to use the
0x28 address. Don't forget to do a full power off of the Arduino & sensor, the sensor only
detects the i2c address on power up so you can't change it on the fly!
Using with SPI
You can also use SPI if you wish. The library supports both hardware SPI (using the 'hardware
SPI' port on your arduino) or software/bit-bang SPI, where you can define the pins. In general,
these sensors are not very fast so I2C is a good way to interface them but if you wish, SPI is
there for you too! For example, if you want to have more than 5 of these connected to one
board, that is possible to do with SPI, but the I2C interface on this chip doesn't support that
many shared I2C addresses.
© Adafruit Industries https://learn.adafruit.com/adafruit-cap1188-breakout Page 15 of 19