Quote Originally Posted by Demon View Post
Might want to compare cursor position with 0,1,2 and 3 when checking the buttons instead of only 0 and 1 no?

Can you even use cursor position 0? Or does it start at 1?

I think you have them backwards, the units would be at position 3, tens at position 2 and so on.

But yeah, that's a perfect starting point to start building on.

Robert
Whoops, ... copy & paste & forgot to adjust
Code:
IF downbutton = 1 THEN
IF cursorposition = 0 THEN
value = value - 1
ENDIF
IF cursorposition = 1 THEN
value = value - 10
ENDIF
IF cursorposition = 2 THEN
value = value - 100
ENDIF
IF cursorposition = 3 THEN
value = value - 1000
ENDIF
and do the same with te up button.
Also need a pause for button debounce, so

Code:
pause 500
straight after each button check
cursorposition = 0 is the thousands position.
The thousands digit is the first to be printed to LCD,
so no movement needs to occur from cursor home command.