/*
Copyright 2018 milestogo
with elements Copyright 2014 cy384 under a modified BSD license
building on qmk structure Copyright 2012 Jun Wako <wakojun@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/>.
*/
/*
* Matrix Array usage:
*
* ROW: 12(4bits)
* COL: 8(3bits)
*
* +---------+
* 0|00 ... 07|
* 1|00 ... 07|
* :| ... |
* :| ... |
* A| |
* B| |
* +---------+
*/
static uint8_t matrix;
// we're going to need a sleep timer
static uint16_t last_activity ;
// and a byte to track duplicate up events signalling all keys up.
static uint16_t last_upKey ;
// serial device can disconnect. Check every MAXDROP characters.
static uint16_t disconnect_counter = 0;
// bitmath masks.
static bool is_modified = false;
void
void
void
void
inline
uint8_t
inline
uint8_t
void
uint8_t
uint8_t
uint8_t
uint8_t
uint8_t
uint8_t
void
uint8_t
bool
inline
bool
inline
bool
inline
uint8_t
void
uint8_t