#include #include #include #include #include "htu21d.h" int main(int argc, char *argv[]){ int fd; char path[20]; snprintf(path, sizeof(path), "/dev/i2c-%d", 1); // 1 is the number of I2C bus fd = open(path, O_RDWR); if(fd<0){ perror("Unable to access I2C bus path\n"); return -1; } i2cReset(fd); return 0; }