keymap.c 657 B

1234567891011121314151617181920212223242526272829
  1. // This is the canonical layout file for the Quantum project. If you want to add another keyboard,
  2. // this is the style you want to emulate.
  3. #include "sixkeyboard.h"
  4. #include "matrix.h"
  5. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  6. [0] = {
  7. {KC_A, KC_B, KC_C},
  8. {KC_D, KC_E, KC_F}
  9. }
  10. };
  11. const uint16_t PROGMEM fn_actions[] = {
  12. };
  13. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
  14. {
  15. return MACRO_NONE;
  16. };
  17. void matrix_scan_user(void) {
  18. // jump to bootloaer when all keys are pressed
  19. if (matrix_get_row(0) == 0b111 && matrix_get_row(1) == 0b111) {
  20. clear_keyboard();
  21. bootloader_jump();
  22. }
  23. };