logo

qmk_firmware

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

keymap.c (383B)


  1. #include QMK_KEYBOARD_H
  2. #include "matrix.h"
  3. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  4. [0] = LAYOUT_ortho_2x3(
  5. KC_A, KC_B, KC_C,
  6. KC_D, KC_E, KC_F
  7. )
  8. };
  9. void matrix_scan_user(void) {
  10. // jump to bootloaer when all keys are pressed
  11. if (matrix_get_row(0) == 0b111 && matrix_get_row(1) == 0b111) {
  12. clear_keyboard();
  13. bootloader_jump();
  14. }
  15. };