(Hardware) Keyboard - simon987/Much-Assembly-Required GitHub Wiki

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