I downloaded the arduino library for this temperature sensing device including a breakout board and wired it per the instruction to my arduino (https://learn.adafruit.com/adafruit-mcp ... ide/wiring) I download a basic sketch from the arduino library and the sketch would not compile. Any advice?
I also tried to load the i2C program to use. In the instructions, we are told that this is required to use the sensor. I got an error stating that I needed to remove some files. Any advice?
Will
MCP9808
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: MCP9808
Post the error messages you are seeing when compiling.
- willie_a
- Posts: 2
- Joined: Mon Mar 27, 2017 12:58 pm
Re: MCP9808
This is the error from Arduino
/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/examples/mcp9808test/mcp9808test.ino:12:30: fatal error: Adafruit_MCP9808.h: No such file or directory
#include "Adafruit_MCP9808.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/Adafruit_MCP9808.cpp
/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/examples/mcp9808test/mcp9808test.ino:12:30: fatal error: Adafruit_MCP9808.h: No such file or directory
#include "Adafruit_MCP9808.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
/Users/willasch01/Downloads/Adafruit_MCP9808_Library-master 4/Adafruit_MCP9808.cpp
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: MCP9808
It's having trouble locating the library files. Did you rename the folder and relocate it to your Arduino library location?
https://learn.adafruit.com/adafruit-mcp ... it-mcp9808
https://learn.adafruit.com/adafruit-mcp ... it-mcp9808
Please be positive and constructive with your questions and comments.