keymap.c 516 B

123456789101112131415161718192021222324252627
  1. #include "sixkeyboard.h"
  2. #include "matrix.h"
  3. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  4. [0] = {
  5. {KC_A, KC_B, KC_C},
  6. {KC_D, KC_E, KC_F}
  7. }
  8. };
  9. const uint16_t PROGMEM fn_actions[] = {
  10. };
  11. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
  12. {
  13. return MACRO_NONE;
  14. };
  15. void matrix_scan_user(void) {
  16. // jump to bootloaer when all keys are pressed
  17. if (matrix_get_row(0) == 0b111 && matrix_get_row(1) == 0b111) {
  18. clear_keyboard();
  19. bootloader_jump();
  20. }
  21. };