Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14101
Lua rocks!
|
 |
« Reply #15 on: February 08, 2013, 04:37:12 pm » |
Looks like the OP did not read or understand your reply, and decided to start a new thread in the hope that would help.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 14
|
 |
« Reply #16 on: February 08, 2013, 04:40:52 pm » |
i tried to change WProgram.h to Arduino.h but i still get a error. i dont know, What else I need to change?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #17 on: February 08, 2013, 04:42:34 pm » |
Nothing. In reply #8, I downloaded the library, did the changes, and recompiled the example. Did you save the files when you made the changes?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 14
|
 |
« Reply #18 on: February 08, 2013, 04:46:43 pm » |
awol i tried reply #8 probably max6675.h have a error.Can you try to max6675.h
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #19 on: February 08, 2013, 04:48:06 pm » |
I'm sorry, I'm on my tablet now, and don't have access to the source I had earlier.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 14
|
 |
« Reply #20 on: February 08, 2013, 04:49:44 pm » |
ok.thanks.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 143
Posts: 19370
I don't think you connected the grounds, Dave.
|
 |
« Reply #21 on: February 08, 2013, 04:54:35 pm » |
OK, Difficult to see, but "WProgram.h" should be <WProgram.h>
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14101
Lua rocks!
|
 |
« Reply #22 on: February 08, 2013, 04:57:25 pm » |
I downloaded the three files you linked.
I copied the library files into my "libraries" folder and restarted the IDE.
I removed the #include <WProgram.h> from inside MAX6675.cpp.
I changed #include <WProgram.h> to #include <Arduino.h> inside MAX6675.h
Your example sketch compiled without errors.
Now, your turn.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 226
Posts: 14101
Lua rocks!
|
 |
« Reply #23 on: February 08, 2013, 04:59:07 pm » |
awol i tried reply #8 probably max6675.h have a error.Can you try to max6675.h
What do you mean it "probably" had an error? Read this before posting a programming questionPost your errors. Copy and paste. Don't say it "probably" had an error.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 14
|
 |
« Reply #24 on: February 08, 2013, 05:01:01 pm » |
i fixed problem.I would like to thank all of you
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 839
|
 |
« Reply #25 on: February 08, 2013, 06:51:50 pm » |
If you READ the error message which you posted, the bad include statement was in the sketch INO file and not in the library H or CPP file.
So go to the INO file and replace the reference to WProgram.h with Arduino.h
|
|
|
|
|
Logged
|
|
|
|
|
|