From 933842067df08e7d0515049509bdd3fa73b334e1 Mon Sep 17 00:00:00 2001 From: WarmCat Date: Thu, 10 May 2018 16:28:58 +0100 Subject: Backlight and RGB now working for JJ50 (#2929) * Added support for JJ50 from KPRepublic, no rgb or backlight control yet. Added as a layout of ymd96 at the moment (same microprocessor). Basic keymap with three layers to get started. * Added support for JJ50 * Tidied up jj50 code, backlight and RGB is now working. * Renaming "KEYMAP" to "LAYOUT" to adhere to the new QMK standards. --- keyboards/jj50/matrix.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'keyboards/jj50/matrix.c') diff --git a/keyboards/jj50/matrix.c b/keyboards/jj50/matrix.c index 8f9c67fe4..95c6057e7 100644 --- a/keyboards/jj50/matrix.c +++ b/keyboards/jj50/matrix.c @@ -1,5 +1,6 @@ /* Copyright 2017 Luiz Ribeiro +Modified 2018 by Wayne K Jones This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,17 +37,20 @@ void matrix_init(void) { // all inputs for columns DDRA = 0x00; DDRC &= ~(0x111111<<2); - DDRD &= ~(1< DDRD &= ~(1< 0 bit_reverse((~PINC) & 0xFF) << 8 - ) | ( - // col 14, PORTD 7 - ((~PIND) & (1 << PIND7)) << 7 ); if (matrix_debouncing[row] != cols) { @@ -92,8 +93,8 @@ uint8_t matrix_scan(void) { } } } - - matrix_scan_user(); + matrix_scan_quantum(); // also missing in original PS2AVRGB implementation + //matrix_scan_user(); return 1; } -- cgit v1.2.3