phillmybuttons:
thanks for the detailed reply, i wish i understood itMaybe it will make sense in the morning.
so if i have a float, all i seem to be doing with the count number is dividing it?
Yes. Each count increments by one. Dividing that by ten gives you feet. Meters = feet / 3.28
and do i convert the "string" to an val? or dec, so lcd.write ("feet,VAL,metre,VAL1); ?
No. Split your lcd.writes See the example in the code block below.
it seems i cant get around the math behind this? or the logic of how n it works,
i know this seems a bit of a pain especially since you gave such a detailed answer but would you be able to explain it? briefly is fine, I just dont how dividing it so many times yields a conversion?
thankyouits cool if you cant, it its late to be fair,thanks
// lcd example
// clear the screen and position cursor
lcd.write("Ft "); // write the first part
lcd.write(feet); // the variable feet found with count / 10
lcd.write(" M ");
lcd.write(meters); // meters = feet / 3.28
Hope it helps.