logo

qmk_firmware

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

keymap.c (488B)


  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 (index == 0) {
  14. if (clockwise) {
  15. tap_code(KC_PGUP);
  16. } else {
  17. tap_code(KC_PGDN);
  18. }
  19. }
  20. return true;
  21. }