0
(Hardware) Keyboard
simon987 edited this page 2019-11-03 09:20:53 -05:00

Your current computer keyboard can be connected wirelessly to your Cubot's microprocessor. The wireless receiver can queue up to 16 key presses in its internal buffer.

Specifications

Manufacturer: -
Version: -
Default address: 0x0004
Hardware ID: 0x0004

Interrupt Behavior

Value of A Action Energy cost Result
0 KEYBOARD_CLEAR 0 kJ Clear the keypress buffer
1 KEYBOARD_FETCH_KEY 0 kJ Reads the oldest keycode from the buffer into the B register and remove it

The KEYBOARD_FETCH_KEY operation will return 0x0 when the buffer is empty.

Keycodes: keycode.info