i will start here
My problem is that i need this floating number for ex. speed = 50,86 to get it as an integer speed = 5086. May i have your help please?
you do it exactly the same way as for a lcd display
Code:
buff var byte[6] ; 4dig+dp+null
speed var word
ARRAYWRITE buff,[dec2 speed/100,".",dec2 speed//100 ,0]
LCDSTR x,y, buff
LCDSTR x,y, speed
does not accept word.
correct lcdstr str buffer var ,const str
from the inc file
;################################################# #################
USERCOMMAND "LCDC" ;X,Y,CHR 0 < X < 84 , 0 < Y < 7 , 31 < CHR > 127
USERCOMMAND "LCDCLR" ;clear LCD
USERCOMMAND "LCDSTR" ;STRING @ X,Y or Constant String
USERCOMMAND "LCDCMD" ;cmd BYTE TO LCD
USERCOMMAND "LCDDAT" ;DATA BYTE TO LCD
i might preempt the next question
leading zero's and right justifying fields
http://support.melabs.com/forum/picb...strtok-usercmd
Bookmarks