diff options
Diffstat (limited to 'converter/adb_usb/matrix.c')
| -rw-r--r-- | converter/adb_usb/matrix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c index 7e5856971..54be2b0f5 100644 --- a/converter/adb_usb/matrix.c +++ b/converter/adb_usb/matrix.c | |||
| @@ -67,6 +67,13 @@ uint8_t matrix_cols(void) | |||
| 67 | void matrix_init(void) | 67 | void matrix_init(void) |
| 68 | { | 68 | { |
| 69 | adb_host_init(); | 69 | adb_host_init(); |
| 70 | // wait for keyboard to boot up and receive command | ||
| 71 | _delay_ms(1000); | ||
| 72 | // Enable keyboard left/right modifier distinction | ||
| 73 | // Addr:Keyboard(0010), Cmd:Listen(10), Register3(11) | ||
| 74 | // upper byte: reserved bits 0000, device address 0010 | ||
| 75 | // lower byte: device handler 00000011 | ||
| 76 | adb_host_listen(0x2B,0x02,0x03); | ||
| 70 | 77 | ||
| 71 | // initialize matrix state: all keys off | 78 | // initialize matrix state: all keys off |
| 72 | for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; | 79 | for (uint8_t i=0; i < MATRIX_ROWS; i++) matrix[i] = 0x00; |
