/**
* matrix.c
*
Copyright 2020 astro <yuleiz@gmail.com>
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
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
static uint8_t debouncing = DEBOUNCE;
static matrix_row_t matrix;
static matrix_row_t matrix_debouncing;
static uint8_t ;
static void ;
static void ;
static void ;
static void ;
void
void
void
void
void
uint8_t
inline matrix_row_t
void
/*
* Row pin configuration
* row: 0 1 2 3 4
* pin: PE6 PF6 PF7 PB7 PD4
*/
static void
static uint8_t
/*
* Columns 0 - 13
* These columns uses two 74LVC138 3 to 8 bit demultiplexers.
* EN Pin, PF5, PD6
*
* col / pin: PF0 PF1 PF4
* 0: 0 0 0
* 1: 1 0 0
* 2: 0 1 0
* 3: 1 1 0
* 4: 0 0 1
* 5: 1 0 1
* 6: 0 1 1
* PD2 PD3 PD5
* 7: 0 0 0
* 8: 1 0 0
* 9: 0 1 0
* 10: 1 1 0
* 11: 0 0 1
* 12: 1 0 1
* 13: 0 1 1
*
*/
static void
static void
static void