sending a variable
Posted: Sat Jan 01, 2011 1:33 pm
Hello,
Im using an rc time program on my BS2 changing it with a POT. The value changes and shows numbers, The pink recieves it, But displays odd charcters and not the number i need it to be a number. How can I make it be a number only?
Thanks
wiresalot
Im using an rc time program on my BS2 changing it with a POT. The value changes and shows numbers, The pink recieves it, But displays odd charcters and not the number i need it to be a number. How can I make it be a number only?
Code: Select all
nbvar VAR Byte ' PINK Data Variable
' -----[ Program Code ]----------------------------------------------------
DO
HIGH 10
PAUSE 1
RCTIME 10, 1, nbvar
DEBUG HOME, "time= ", DEC5 nbvar
SEROUT TX, Baud, ["!NB0W20:", nbvar, CLS]
LOOP
wiresalot