Jul 12, 2017 · Here is my Raspberry Pi Code. My assumption is that the i2c registers would be sequential in memory, but that doesn’t seem to be the case. [CODE] #include <errno.h> #include <fcntl.h> #include <linux/i2c-dev.h> #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <unistd.h> int main(int argc, char *argv[]) {int file; int ...
Plug the other end of the Grove cable into one of the Grove connectors marked I2C on the Pi2Grover that plugged on top of your Raspberry Pi. The HDC1080 hooked up to the Raspberry Pi. Note: The I2C is a bus, which means you can use any of the four I2C connectors. Power up the Raspberry Pi and open a terminal window.