Hi Guys
I have been playing with Flowcode 4 to build a thermostat,
so far i have the ADC input sorted and i have converted the INT value to a temperature value, and i can display this on the lcd
Problem is i want this to be set with a 0.5f resolution so the temperature should read say 87.5f or 90.0 f
this is the part i am struggling on, can anyone help.
would anyone happen to have done this sort of thing before??
Thermometer / Thermostat problems with display
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Thermometer / Thermostat problems with display
Hello
How are you doing your ADC to temparature conversion? Is it via a lookup table or a real time calculation? If it is a calculation then maybe you can simply store the result in a float variable. Then convert the float to a string and send the string to the LCD.
How are you doing your ADC to temparature conversion? Is it via a lookup table or a real time calculation? If it is a calculation then maybe you can simply store the result in a float variable. Then convert the float to a string and send the string to the LCD.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel