Source code for the vckyb6 firmware
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. /* Copyright 2020 Bratzworth *
  2. * This program is free software: you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation, either version 2 of the License, or
  5. * (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #include QMK_KEYBOARD_H
  16. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  17. [0] = LAYOUT(
  18. LCA(KC_C), KC_F11, LCTL(KC_D),
  19. MO(1), LCTL(KC_E), LCTL(KC_D)
  20. ),
  21. [1] = LAYOUT(
  22. LCA(KC_C), KC_F11, RESET,
  23. KC_TRNS, LCTL(KC_E), KC_MUTE
  24. )
  25. };
  26. bool encoder_update_user(uint8_t index, bool clockwise) {
  27. if (clockwise) {
  28. tap_code(KC_VOLU);
  29. } else {
  30. tap_code(KC_VOLD);
  31. }
  32. return true;
  33. }