USB0.readbyte()

This command receives a byte from the first mini USB port USB0.

It has no input parameter.

The return value is a Python integer which is the byte value received and stored in buffer at the moment of command execution or is -1 if no data is received. The return value can also be zero.

 

Example:

 

b = USB0.readbyte()

 

receives a byte from first mini USB port USB0 handling, assigning the return value to b.