Let's say I read maximum 50 volts and maximum 5 ampers ; so one "empty box" = 5 volts and one "filled box" = 0.5 ampers.
It's this "pseudo" code correct ?!
Code:
for y=9 to 0 step -1
if volts >= (y*5) then
    if ampers >= (y * 1/2) then
char = 3
LCDOUT $FE, $80, char,char,char,char,char,char,char,char,char,char
Endif
Endif
I'm sure it's another way, much easiers, but I have -till now- no ideea ...