USBBox

The main object representing the response box.

USBBox methods

USBBox properties

port0, port2, leds object

port0, port2 and leds are object properties of the main USBBox object.

port0, port2, leds methods

port0, port2, leds properties

direction, logic and state apply to all lines on the port.

line objects (port0, port2, leds)

Individual lines on port0, port2 and leds objects

line objects (port0, port2, leds) properties

port1, buttons object

port1 and buttons are synonyms on the USBBox object.

port1, buttons object properties

line objects (port1, buttons)

Object representing a single line on port1/buttons.

line objects (port1, buttons) properties

int0, voice_key object

Interrupt 0 / voice key object

int0, voice_key object properties

int1, optic_key object

Interrupt 1 / optic key object

int1, optic_key object properties

serial object

Object representing the serial port on the USBBox. Operates at 9600 baud.

serial object methods

commands object

The commmands object is intended to be a fairly low-level interface to the response box. It is mainly concerned with sending and receiving reports and therefore closely mimics the underlying protocol of the response box.

commands object methods

There exists one method for each command report specified in the response box manual. They are names are lowercase (and - to _) versions of the IDs specified in the manual. These methods are used to send commands to the HID device. e.g.

usbbox.commands.verget() # send a VERGET command to the box
    usbbox.commands.dirset(1,0,0) # send a DIRGET command (enable loopback)