logo

qmk_firmware

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

keymap.c (464B)


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