Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
Diff: USBProtocol.h
- Revision:
- 64:ef7ca92dff36
- Parent:
- 55:4db125cd11a0
- Child:
- 66:2e3583fbd2f4
--- a/USBProtocol.h Tue Jun 14 20:24:34 2016 +0000 +++ b/USBProtocol.h Tue Nov 22 20:46:36 2016 +0000 @@ -698,13 +698,14 @@ // the maximum array index. // // 254 -> Input button setup. This sets up one button; it can be repeated for each -// button to be configured. There are 32 button slots, numbered 1-32. Each +// button to be configured. There are MAX_EXT_BUTTONS button slots (see +// config.h for the constant definition), numbered 1..MAX_EXT_BUTTONS. Each // slot can be configured as a joystick button, a regular keyboard key, or a // media control key (mute, volume up, volume down). // // The bytes of the message are: -// byte 3 = Button number (1-32) -// byte 4 = GPIO pin to read for button input +// byte 3 = Button number (1..MAX_EXT_BUTTONS) +// byte 4 = GPIO pin for the button input; mapped as a DigitalIn port // byte 5 = key type reported to PC when button is pushed: // 0 = none (no PC input reported when button pushed) // 1 = joystick button -> byte 6 is the button number, 1-32