Hi all,
Part of my current project requires a thermistor and I found a great library that compiles and works in 0022. However the rest of my project is in 1.0.4.
The library of interest is Thermistor4 Arduino Playground - Thermistor4
The header and cpp files are just text on the webpage, so I copied and pasted them into notepad++ (setting c++ as the language) and saved them into my newly created Thermistor4 folder in the 1.0.4 libraries folder, using .h and .cpp extensions, and saving as c++ type files.
When it didn't compile ("Thermistor4 does not name a type" error), I assumed it needed the following code in the cpp file to work.
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
However, I was wrong. I am still getting the same error. So it seems that 1.0.4 still cannot find the library.
I have double checked that the header and cpp files are in the Thermistor4 folder under the libraries folder.
In the Arduino sketch, the first line is
#include <Thermistor4.h>
I have restarted the IDE, even tried restarting my PC to be sure.
I also tried placing the WProgram.h file in /Arduino_1_0_4/hardware/arduino/cores/arduino/ folder
I am still getting the same error. What am I missing?