Quote Originally Posted by Charles Linquis View Post
There are several ways, but the easiest is to add some blank spaces after "km/h" so your code instead looks like

LCDOUT $FE,$8D, DEC speed, "km/h "
But that would result in the display moving about.

Better to conditionally add space BEFORE the value to be display eg

If speed < 10 then LCDOUT " " ' 1 space
If speed < 100 then LCDOUT " " ' 1 space
LCDUT DEC speed,"km/h"

IF the speed is 100 or greater then no spaces are prefixed
If the speed is 10-99 then one space will be prefixed
If the speed is below 10 then both conditions will be met and two spaces prefixed resulting the display remaining in a static position on the screen