qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

keymap.c (488B)


      1 #include QMK_KEYBOARD_H
      2 
      3 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
      4 
      5 LAYOUT(
      6     KC_1, KC_2, KC_3, KC_4, KC_5,
      7     KC_6, KC_7, KC_8, KC_9, KC_0, KC_ENTER),
      8 
      9 };
     10 
     11 void matrix_init_user(void) {
     12   debug_config.matrix = 1;
     13   debug_config.keyboard = 1;
     14   debug_config.enable = 1;
     15 }
     16 
     17 
     18 
     19 bool encoder_update_user(uint8_t index, bool clockwise) {
     20   if (index == 0) {
     21     if (clockwise) {
     22       tap_code(KC_PGUP);
     23     } else {
     24       tap_code(KC_PGDN);
     25     }
     26   }
     27   return true;
     28 }