logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (705B)


  1. // Copyright 2025 Nick Brassel (@tzarc)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include QMK_KEYBOARD_H
  4. enum custom_keycodes {
  5. KC_HELLO = SAFE_RANGE,
  6. };
  7. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  8. LAYOUT_ortho_1x1(KC_HELLO)
  9. };
  10. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  11. switch (keycode) {
  12. case KC_HELLO:
  13. if (record->event.pressed) {
  14. send_string_P("Hello world!");
  15. }
  16. return false;
  17. }
  18. return true;
  19. }
  20. void keyboard_post_init_user(void) {
  21. // Customise these values to desired behaviour
  22. debug_enable=true;
  23. debug_matrix=true;
  24. //debug_keyboard=true;
  25. //debug_mouse=true;
  26. }