Try this:
Code:Y var word Value var byte FOR Value = 0 to 255 Y = ( Value * 51 ) / 26 'divided down from * 255 / 130 LCDOUT 254,row1+1,"BATTERY:",DEC1 ( Y / 100 ),".",DEC2 ( Y // 100 )," VDC" pause 100 Next Value
Try this:
Code:Y var word Value var byte FOR Value = 0 to 255 Y = ( Value * 51 ) / 26 'divided down from * 255 / 130 LCDOUT 254,row1+1,"BATTERY:",DEC1 ( Y / 100 ),".",DEC2 ( Y // 100 )," VDC" pause 100 Next Value
SkiMask,
Working great now....I realized that I had
Y VAR BYTE instead of Y VAR WORD which caused my math to be all funky...
I have also never used the // modulus math command either, I think I understand how that works now, I will play with 4 sig figs now to see If I get the rest all worked out.
thanks a million!
Padawan-78
Bookmarks