Hello
I am making a simple pressure sensor all works fine.
i get the output reading as XX.XXX on a 16x2 LCD
i want only the XX before the decimal to be displayed. Help please.
cheers
Mastero
I am making a simple pressure sensor all works fine.
i get the output reading as XX.XXX on a 16x2 LCD
i want only the XX before the decimal to be displayed. Help please.
Code:
Dim Pressure as Single
displaypressure:
Adcin 0, analogread
pressure = analogread * 5.0 / 1024
pressure = (pressure - 0.54) / 0.059
Lcdcmdout LcdLine1Clear
Lcdcmdout LcdLine1Home
Lcdout "PRESSURE", ":", " ", " ", #pressure
Return
cheers
Mastero