Displaying the value of a variable using Serout
Nothing but questions
Posts: 2
I have any easy question using Serout in PBasic.
There·is no·problem displaying a string via RS232 to Hyperterminal·but I have been unable to display a value of a variable.
What am I missing?
Thanks.
·
There·is no·problem displaying a string via RS232 to Hyperterminal·but I have been unable to display a value of a variable.
What am I missing?
Thanks.
·
Comments
I don't know PBasic, but in other serial interface drivers you have functions like hex or dec which take a number and send the hexadecimal or decimal representation of this number.
Have a look at this thread···· http://forums.parallax.com/showthread.php?p=892641
regards
Gerry
I'll follow up on these leads.
it may take an hours to understand the commands but then sending a number is done by just calling
serial.dec(1234)
or serial.dec(MyVariable)
want to see the numbers binary in hypertext like this "01100111"?
just use
serial.bin(MyVar,8)
best regards
Stefan