X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=converter%2Fm0110_usb%2Fmatrix.c;h=9dcdc0d6d5061d6b5a6a5e0b4c0df68babe5323a;hb=7d621aca7bcf34374e30ddfe79f0f16cf5caa26e;hp=1ca6894c440b4fd71e1d994c1bd13bec76db476e;hpb=afb08462085132acf7a1962522952f7dbf064519;p=max%2Ftmk_keyboard.git diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c index 1ca6894c..9dcdc0d6 100644 --- a/converter/m0110_usb/matrix.c +++ b/converter/m0110_usb/matrix.c @@ -60,17 +60,16 @@ uint8_t matrix_cols(void) 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 +80,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<