Assuming you're talking about a Stamp, you can do "DEBUG BIN16 INS,CR".
This will display the 16 I/O pins as 16 bits on a single line. You can also use
the HEX4 formatter to display the information in 4 hexadecimal digits.
Yes I am talking about a BS2 stamp ... I am setting up a XBEE AppBee board and they indicate to make sure all I/O is set to IN·so to not damage the Xbee's ... I was pretty sure by default, all BASIC Stamp I/O pins are set to inputs ... but want to put it in the code to see it to be safe [noparse]:)[/noparse]
What I wrote does not set the pins to input. It just displays the value of the input register. By default, all I/O pins are set to input mode when the program starts. To make it explicit, you can put "DIRS = 0" which will set them all to input explicitly.
Comments
This will display the 16 I/O pins as 16 bits on a single line. You can also use
the HEX4 formatter to display the information in 4 hexadecimal digits.
Yes I am talking about a BS2 stamp ... I am setting up a XBEE AppBee board and they indicate to make sure all I/O is set to IN·so to not damage the Xbee's ... I was pretty sure by default, all BASIC Stamp I/O pins are set to inputs ... but want to put it in the code to see it to be safe [noparse]:)[/noparse]