i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

I'm trying to use your ADS1115 library for a current sensor project I'm working on right now. When i use that library it gives this error:

Open jrowberg opened this issue 2 years ago • 1 comments

I'm trying to use your ADS1115 library for a current sensor project I'm working on right now. When i use that library it gives this error:

In file included from D:\college stuff\Internship\Arduino\ads\ads.ino:35:0:

C:\Users\adity\OneDrive\Documents\Arduino\libraries\ADS1115/ADS1115.h:40:10: fatal error: I2Cdev.h: No such file or directory

#include "I2Cdev.h"

      ^~~~~~~~~~

compilation terminated.

exit status 1

Error compiling for board Arduino Nano.

Can you tell me what should i do to correct this error. I'm new to this and would like your help. Thank you.

Originally posted by @Aditya-Ratnakar in https://github.com/jrowberg/i2cdevlib/discussions/595#discussioncomment-6240850

jrowberg avatar Jun 23 '23 20:06 jrowberg

It looks like you downloaded only the ADS1115 library (into the correct place), but you didn't also download the I2Cdev library that it depends on. Make sure you also put that one in your \Arduino\libraries folder, then I expect the compile problem will disappear.

jrowberg avatar Jun 23 '23 20:06 jrowberg