Kai Ryu 10 лет назад
Родитель
Сommit
e96f00a0bf
2 измененных файлов: 3 добавлений и 3 удалений
  1. 1
    1
      keyboard/lr96/keymap_common.h
  2. 2
    2
      keyboard/lr96/matrix.c

+ 1
- 1
keyboard/lr96/keymap_common.h Просмотреть файл

/* /*
Copyright 2012,2013 Jun Wako <wakojun@gmail.com>
Copyright 2014 Kai Ryu <kai1103@gmail.com>


This program is free software: you can redistribute it and/or modify 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 it under the terms of the GNU General Public License as published by

+ 2
- 2
keyboard/lr96/matrix.c Просмотреть файл

*/ */
static matrix_row_t read_cols(void) static matrix_row_t read_cols(void)
{ {
return PIND & ~(1<<PD7);
return ~PIND & ~(1<<PD7);
} }


/* Row pin configuration /* Row pin configuration
*/ */
static void unselect_rows(void) static void unselect_rows(void)
{ {
// Output low(DDR:1, PORT:0) to unselect
// Output high(DDR:1, PORT:1) to unselect
DDRB |= (1<<PB0); DDRB |= (1<<PB0);
PORTB |= (1<<PB0); PORTB |= (1<<PB0);
} }