drwxr-xr-x@ 6 robert staff 204 17 Aug 12:43 libraries
Which is in
/Users/robert/Documents/Arduino
/Users/robert/Documents/Arduino/libraries
drwxr-xr-x@ 6 robert staff 204 26 Jul 13:58 DHT
drwxr-xr-x@ 8 robert staff 272 17 Aug 13:51 ProcessingLIB
drwxr-xr-x@ 7 robert staff 238 17 Aug 12:43 SFE_BMP180
roberts-mini:libraries robert$ ls -l SFE*
total 48
-rwxr-xr-x@ 1 robert staff 10341 9 Jan 2014 SFE_BMP180.cpp
-rwxr-xr-x@ 1 robert staff 4146 9 Jan 2014 SFE_BMP180.h
drwxr-xr-x@ 5 robert staff 170 17 Aug 12:21 examples
-rwxr-xr-x 1 robert staff 629 9 Jan 2014 keywords.txt
I notice now that in the Sketch, I have these files.
-rw-r--r-- 1 robert staff 26145 17 Aug 12:45 Weather.c
-rw-r--r-- 1 robert staff 4777 30 Jul 18:47 Weather.h
-rw-r--r--@ 1 robert staff 2 17 Aug 12:31 Weather2.ino
-rw-r--r-- 1 robert staff 4812 7 Aug 18:32 bmp180.c
-rw-r--r-- 1 robert staff 815 28 Jul 12:17 bmp180.h
If I put the two #includes into the first file, possible the ino file, ( they show across the user interface as;
[Weather 2] [weather.c] [weather.h][bmp180.c][bmp180.h] )
Then the text turns red.
#include <SFE_BMP180.h>
#include <Wire.h>
and the sketch compiles without errors. BUT - if I put them into the first, weather.c file, then it shows errors as mentioned.
So I'm not sure what's happening. As you may guess, I'm a real newcomer to this.
By the way, the code works as I have it. Output. I'm just wondering about the libraries.
HEX,05,0d,a6,06,9f,60,TEMPERATURE:20.6
HEX,55,0d,a5,2f,ad,40,HUMIDITY:52
HEX,35,0d,a2,ea,d1,d0,WINDDIRECTION:SW WINDSPEED:4.6
HEX,b5,0d,a6,1b,9e,60,GUSTDIRECTION:WSW GUSTSPEED:9.7
HEX,05,0d,a6,06,9f,60,TEMPERATURE:20.6
HEX,55,0d,a5,2f,ad,40,HUMIDITY:52
HEX,35,0d,a2,ea,d1,d0,WINDDIRECTION:SW WINDSPEED:4.6
HEX,b5,0d,a6,1b,9e,60,GUSTDIRECTION:WSW GUSTSPEED:9.7
--END--
I2C UT=27145
I2C T=22
I2C UP=333303
I2C P=1005.22
80,27,27,20.6,52,-,WSW,9.7,SW ,4.6,1005.22,443.30
Indoor Temp=22.3