qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (572B)


      1 // Copyright 2024 QMK
      2 // SPDX-License-Identifier: GPL-2.0-or-later
      3 
      4 #include QMK_KEYBOARD_H
      5 
      6 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      7     LAYOUT_ortho_1x1(KC_A)
      8 };
      9 
     10 void keyboard_post_init_user(void) {
     11   // Customise these values to desired behaviour
     12   debug_enable=true;
     13 //   debug_matrix=false;
     14 //   debug_keyboard=true;
     15 //   debug_mouse=false;
     16 }
     17 
     18 void housekeeping_task_user(void) {
     19     static uint32_t last = 0;
     20     if (timer_elapsed32(last) > 2000) {
     21         uprintf("Bat: %d!\n", battery_get_percent());
     22 
     23         last = timer_read32();
     24     }
     25 }