|
|
@ -23,6 +23,7 @@
|
|
|
|
namespace kaleidoscope {
|
|
|
|
namespace kaleidoscope {
|
|
|
|
namespace hardware {
|
|
|
|
namespace hardware {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool ATMegaKeyboard::do_scan_;
|
|
|
|
uint8_t ATMegaKeyboard::debounce = 3;
|
|
|
|
uint8_t ATMegaKeyboard::debounce = 3;
|
|
|
|
|
|
|
|
|
|
|
|
void ATMegaKeyboard::setup(void) {
|
|
|
|
void ATMegaKeyboard::setup(void) {
|
|
|
@ -137,8 +138,6 @@ bool ATMegaKeyboard::isKeyMasked(byte row, byte col) {
|
|
|
|
return bitRead(KeyboardHardware.masks_[row], col);
|
|
|
|
return bitRead(KeyboardHardware.masks_[row], col);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool ATMegaKeyboard::do_scan_;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint16_t ATMegaKeyboard::readCols() {
|
|
|
|
uint16_t ATMegaKeyboard::readCols() {
|
|
|
|
uint16_t results = 0x00 ;
|
|
|
|
uint16_t results = 0x00 ;
|
|
|
|
for (uint8_t i = 0; i < KeyboardHardware.matrix_columns; i++) {
|
|
|
|
for (uint8_t i = 0; i < KeyboardHardware.matrix_columns; i++) {
|
|
|
|