keymap.c 463 B

1234567891011121314151617181920212223
  1. #include QMK_KEYBOARD_H
  2. #include "audio.h"
  3. /* THIS FILE WAS GENERATED AND IS EXPERIMENTAL!
  4. *
  5. * This file was generated by qmk-compile-json. You may or may not want to
  6. * edit it directly.
  7. */
  8. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  9. [0] = LAYOUT(KC_ENTER)
  10. };
  11. bool encoder_update_user(uint8_t index, bool clockwise) {
  12. if (index == 0) {
  13. if (clockwise) {
  14. tap_code(KC_UP);
  15. } else {
  16. tap_code(KC_DOWN);
  17. }
  18. }
  19. return true;
  20. };