Merry Christmas....
Teensy 2.0 on XP computer trying to compile the sample code from the analog temperature monitor.
Sorry about not using the Code tag but for some reason the tag links are not showing up for me. Running FireFox and not sure why.
This should compile just fine and I can get it to if I comment out the two SerialPrint celsius lines. I see nothing wrong, what am I missing?
Teensy 2.0 on XP computer trying to compile the sample code from the analog temperature monitor.
Code:
void setup()
{
Serial.begin(38400);
}
float code;
float celsius;
float fahrenheit;
void loop()
{
code = analogRead(1);
celsius = 25 + (code - 512) / 11.3;
fahrenheit = celsius * 1.8 + 32;
Serial.print("temperature: ");
Serial.print(celsius);
Serial.print(" Celsius, ");
Serial.print(fahrenheit);
Serial.println(" Fahrenheit");
delay(1000);
}
Sorry about not using the Code tag but for some reason the tag links are not showing up for me. Running FireFox and not sure why.
This should compile just fine and I can get it to if I comment out the two SerialPrint celsius lines. I see nothing wrong, what am I missing?
Last edited by a moderator: