diff options
author | Erez Zukerman <bulk@ezuk.org> | 2018-05-15 10:50:24 -0400 |
---|---|---|
committer | Erez Zukerman <bulk@ezuk.org> | 2018-05-15 10:50:24 -0400 |
commit | 5272218ac9cff7ce5af8cfda9129dc03b7aafa49 (patch) | |
tree | 61ad3987770684afd55cbdd12bca48a221d83713 /keyboards/jj50/matrix.c | |
parent | 0592d23b74142a554c9e36d2da7bf525fbe3a4c0 (diff) | |
parent | e41147da929afd15c1088226893cc02537650284 (diff) |
Merge branch 'master' into hf/shinydox
Diffstat (limited to 'keyboards/jj50/matrix.c')
-rw-r--r-- | keyboards/jj50/matrix.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/keyboards/jj50/matrix.c b/keyboards/jj50/matrix.c index 8f9c67fe47..95c6057e7c 100644 --- a/keyboards/jj50/matrix.c +++ b/keyboards/jj50/matrix.c @@ -1,5 +1,6 @@ /* Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com> +Modified 2018 by Wayne K Jones <github.com/WarmCatUK> 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<<PIND7); + //----> DDRD &= ~(1<<PIND7); + // Port D not used on this keyboard // all columns are pulled-up PORTA = 0xFF; PORTC |= (0b111111<<2); //PORTD |= (1<<PIND7); + // Port D not used on this keyboard // initialize matrix state: all keys off for (uint8_t row = 0; row < MATRIX_ROWS; row++) { matrix[row] = 0x00; matrix_debouncing[row] = 0x00; } + matrix_init_quantum(); // missing from original port by Luiz } void matrix_set_row_status(uint8_t row) { @@ -72,9 +76,6 @@ uint8_t matrix_scan(void) { ) | ( // cols 8..13, PORTC 7 -> 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; } |