1
0
Fork 0

Keymap: Big switch config (#3904)

* bigswitch keymap

* bigswitch keymap

* bigswitch keymap

* bigswitch keymap

* recommended edits made

* forgot to revert this change with the others
This commit is contained in:
wanleg 2018-09-17 13:41:59 -07:00 committed by Drashna Jaelre
parent 743449472e
commit fe3bfd91c1
6 changed files with 141 additions and 0 deletions

View file

@ -19,10 +19,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
volatile uint8_t runonce = true;
static uint16_t my_timer;
__attribute__ ((weak))
void matrix_init_user(void) {
my_timer = timer_read();
}
__attribute__ ((weak))
void matrix_scan_user(void) {
if (runonce && timer_elapsed(my_timer) > 1000) {
runonce = false;