Thread: Arduino issues
View Single Post
Old 03-04-13, 04:03 AM   #10
Piwoslaw
Super Moderator
 
Piwoslaw's Avatar
 
Join Date: May 2009
Location: Warsaw, Poland
Posts: 961
Thanks: 188
Thanked 110 Times in 86 Posts
Default

Quote:
Originally Posted by jeff5may View Post
i'm no longer a programming expert, but this line looks fishy to me:
steinhart -= 273.15; // convert to C

it seems you should have something like:
variable = variable + constant
rather than
variable = constant
The line:
Code:
steinhart -= 273.15;
is the same as:
Code:
steinhart = steinhart - 273.15;
so this in itself is not a problem.

As for the
Quote:
was not declared in this scope
, this means that a variable was not defined inside the function using it (inside main(), for example), nor was it defined globally (before main()). This is an error in C/C++ programming, not Arduino-specific.
If possible please give the full error message, so that we know which variable was not declared, etc.
__________________
Ecorenovation - the bottomless piggy bank that tries to tame the energy hog.
Piwoslaw is offline   Reply With Quote