X-Git-Url: https://git.gir.st/tmk_keyboard.git/blobdiff_plain/62d1ebb91c7b381ce3d88aad9ee0b03bea9fce26..1ad31539a6e27d55af374cc8ad55194227db35dd:/converter/m0110_usb/matrix.c diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c index 1ca6894c..b216aba1 100644 --- a/converter/m0110_usb/matrix.c +++ b/converter/m0110_usb/matrix.c @@ -46,31 +46,18 @@ static uint8_t _matrix0[MATRIX_ROWS]; static void register_key(uint8_t key); -inline -uint8_t matrix_rows(void) -{ - return MATRIX_ROWS; -} - -inline -uint8_t matrix_cols(void) -{ - return MATRIX_COLS; -} - void matrix_init(void) { - print_enable = true; - debug_enable = true; - debug_matrix = false; - debug_keyboard = false; - debug_mouse = false; - print("debug enabled.\n"); - m0110_init(); // initialize matrix state: all keys off for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; matrix = _matrix0; + + // LED flash + DDRD |= (1<<6); PORTD |= (1<<6); + _delay_ms(500); + DDRD |= (1<<6); PORTD &= ~(1<<6); + return; } @@ -81,31 +68,11 @@ uint8_t matrix_scan(void) is_modified = false; key = m0110_recv_key(); -#ifdef MATRIX_HAS_LOCKING_CAPS - // Send Caps key up event - if (matrix_is_on(ROW(CAPS), COL(CAPS))) { - is_modified = true; - register_key(CAPS_BREAK); - } -#endif if (key == M0110_NULL) { return 0; } else if (key == M0110_ERROR) { return 0; } else { -#ifdef MATRIX_HAS_LOCKING_CAPS - if (host_keyboard_leds() & (1<