aboutsummaryrefslogtreecommitdiff
path: root/keyboard/phantom/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/phantom/matrix.c')
-rw-r--r--keyboard/phantom/matrix.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboard/phantom/matrix.c b/keyboard/phantom/matrix.c
index 49d6b738e..c91c0d99a 100644
--- a/keyboard/phantom/matrix.c
+++ b/keyboard/phantom/matrix.c
@@ -158,7 +158,7 @@ uint8_t matrix_key_count(void)
158 158
159/* Row pin configuration 159/* Row pin configuration
160 * row: 0 1 2 3 4 5 160 * row: 0 1 2 3 4 5
161 * pin: B0 B1 B2 B3 B4 B5 161 * pin: B5 B4 B3 B2 B1 B0
162 */ 162 */
163static void init_rows(void) 163static void init_rows(void)
164{ 164{
@@ -169,12 +169,12 @@ static void init_rows(void)
169 169
170static uint8_t read_rows(void) 170static uint8_t read_rows(void)
171{ 171{
172 return (PINB&(1<<0) ? 0 : (1<<0)) | 172 return (PINB&(1<<5) ? 0 : (1<<0)) |
173 (PINB&(1<<1) ? 0 : (1<<1)) | 173 (PINB&(1<<4) ? 0 : (1<<1)) |
174 (PINB&(1<<2) ? 0 : (1<<2)) | 174 (PINB&(1<<3) ? 0 : (1<<2)) |
175 (PINB&(1<<3) ? 0 : (1<<3)) | 175 (PINB&(1<<2) ? 0 : (1<<3)) |
176 (PINB&(1<<4) ? 0 : (1<<4)) | 176 (PINB&(1<<1) ? 0 : (1<<4)) |
177 (PINB&(1<<5) ? 0 : (1<<5)); 177 (PINB&(1<<0) ? 0 : (1<<5));
178} 178}
179 179
180/* Column pin configuration 180/* Column pin configuration