Closed dmieszkowski closed 6 years ago
sensor.c:121:14: error: ‘I2C_SMBUS_BLOCK_MAX’ undeclared (first use in this function) while compiling gyro_accelerometer_tutorial01.c
Have you done everything on this page; http://ozzmaker.com/i2c/
You are missing sudo apt install libi2c-dev
sudo apt install libi2c-dev
sensor.c:121:14: error: ‘I2C_SMBUS_BLOCK_MAX’ undeclared (first use in this function) while compiling gyro_accelerometer_tutorial01.c