BS1 Hex serial commands
PropNut1960
Posts: 23
How do I code a BS1 serial command where the receiving device needs"0xEB" sent. The "0xEB" is HEX format. The baud is 2400, 8 bits no-parity. I've tried several things but can't get it to work. I know the device is working, I can send commands from my PC and it responds. Any help on this is appreciated, thanks.
Comments
If the first, then you want: SEROUT <pin>,<Baud>,($EB)
If the second, then: SEROUT <pin>,<Baud>,("0xEB")
In Stamp Basic, you write hexadecimal values with "$" in front rather than with "0x" in front. HEX format is just a convention for humans to read.
That was it, thanks Mike. I was under the assumption that "#" had to be used, I don't recall ever seeing "$". Guess I haven't done enough reading. Thanks again.