Problem using the i2c-dev library while making my gesture controlled robot

kamehamehakosu:
but the other one still exists

Did you do this:

pert:
Move C:\Program Files\Arduino\libraries\i2cdevlib-master\Arduino\I2Cdev to {sketchbook folder}\libraries. You can find\set the location of {sketchbook folder} in the Arduino IDE at File > Preferences > Sketchbook location.

If you did that then the error "fatal error: i2cdev.h: No such file or directory" should no longer occur.

kamehamehakosu:
I have also tried adding a zipped library but when I'm adding that I'm getting the error that "Specified folder/zip file does not contain a valid library".

That's because you can only use Sketch > Include Library > Add .zip Library with .zip files that contain the library in the root of the .zip file but the .zip file you download from GitHub - jrowberg/i2cdevlib: I2C device library collection for AVR/Arduino or other C++-based MCUs does not have the library in the root since it's a collection of many libraries for several platforms, all in their own subfolders. So you need to do a manual installation following my previous instructions, not the Arduino IDE's Add .zip Library feature.

1 Like