keymap.c 572 B

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