Hello. I need to install the i2c.dev library for a project on an arduino uno, but I am having problems when trying to install it. I searched it up online, and I downloaded a zip file of the package, unziped it, but I can't get it to install. From reading online, I think I need to add the I2C.dev folder into my library, so I go Sketch - Include Library - Add .ZIP Library. However, I'm not able to add the I2C.dev folder (in the Arduino Folder), the open button doesn't work. Here is a picture of what it looks like:
If I try to just select the zip file, I get this error:
I am on a mac, which is on high sierra. Does anybody know what my problem may be?
Due to my...ahem...unfortunate ignorance way back when I first created this project, the entire codebase (all platforms, cores, and device libraries) are all inside of this one giant repository. That means there's no easy IDE integration the way most libraries work in the Arduino world and elsewhere. Instead, do the following:
1. Clone or download a .zip archive of the repo 2. Move or copy the relevant core and device drivers into your project tree or library subfolder (For Arduino, this means the /Arduino/I2Cdev and /Arduino/MPU6050 folders, for example) 3. Rescan libraries or restart your IDE if necessary
For both usage and development, I've found that it's best to clone using the git client of your choice, and then create symlinks as needed from the master repository sources into your development location(s). This is usually more intuitive for people who use Linux, but it can be done in Windows as well using the mklink /D command. See this page for a set of Windows-specific instructions with screenshots.
➜ you need to go to your home folder then /Documents/Arduino/libraries and that's where you manually copy over the /Arduino/I2Cdev from the unzipped stuff you downloaded from GitHub