Go Down

Topic: LCD (Read 1 time) previous topic - next topic

GreenMart

#10
Dec 26, 2012, 01:55 pm Last Edit: Dec 26, 2012, 02:11 pm by GreenMart Reason: 1
Could you try using the modulo operator '%' ?
For example,

Code: [Select]
 
{
  if ((val)%100 < 10) {
    lcd.print(" ");
    lcd.print(val);
  }
  else {
    lcd.print(val);
}


Might have to play around to get it right

AWOL

Quote
Could you try using the modulo operator '%' ?
For example,

The modulo operator is noticeable by its absence in your example.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

GreenMart

Ahh, sorry.
Fixed it

Go Up