Cant figure out why i have weird characters showing up here:
i know it's upside down but, the point is i have the weird stuff happening in the middle of my lines.
this is my code
//Modified by Dave Wright - April 9th 2012
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int sensorPin = 0;
byte smiley[8] = {
B110,
B1001,
B1001,
B110,
B0,
B0,
B0,
};
void setup()
{
lcd.createChar(1, smiley);
lcd.begin(16, 2);
}
void loop()
{ int reading = analogRead(sensorPin);
float voltage = reading * 5.0;
voltage /= 1024.0;
float temperatureC = (voltage - 0.5) * 100 ;
lcd.print(temperatureC); lcd.print((char)1); lcd.println("C");
lcd.setCursor(0, 1);
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
lcd.print(temperatureF); lcd.print((char)1); lcd.println("F");
float temperatureK = (temperatureC + 273.15);
lcd.print(temperatureK); lcd.print((char)1); lcd.println("K");
delay (1000);
}
any help would be awesome thanks
Moderator edit: [code] ... [/code] tags added. (Nick Gammon)
