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.

59 lines
1.3 KiB

Clueboard refresh (#4902) * Cluecard: refactor - renamed layout macro KEYMAP to LAYOUT - reformatted layout macro to more closely resemble physical device layout - keymaps now use #include QMK_KEYBOARD_H - config.h files updated to use #pragma once method - deleted outdated QUANTUM_DIR code blocks from rules.mk files - white space changes on rules.mk files (alignment/readability) * Cluecard: Configurator support * Cluecard: readme update - added image - updated Docs links * Clueboard 66% HotSwap: corrected matrix and Configurator data - removed k31 and k84 from LAYOUT - both appear to be unsupported for this PCB according to images on clueboard.co - updated block comment mock-ups to match changes - rebuilt info.json file - delete removed keys from default keymap.c * Clueboard 66% HotSwap: readme update - fix make example - updated Docs links * Clueboard 66% HotSwap: 66_ansi keymap update Updated to use #include QMK_KEYBOARD_H * Clueboard 60% refactor - renamed layout macro KEYMAP to LAYOUT_all - renamed layout macro KEYMAP_AEK to LAYOUT_aek - removed redundant KC_TRNS definitions from keymaps - all keymaps now use #include QMK_KEYBOARD_H * Clueboard 17%: refactor * Clueboard 17%: Configurator support * Clueboard 17%: update Docs links in readme * Cleanup the 2x1800 files * Update Clueboard 60% to standard matrix * Update the clueboard default keymaps * Refresh and update clueboard 17 * Add the 66% hotswap to Clueboard's readme * Clarify the 66% hotswap's readme * change the image to imgur * Update the clueboard 66 to follow modern standards * update clueboard 66_hotswap to follow modern practices * Move the logo to imgur * update clueboard/card to follow modern practices * remove clueboard/66 as a valid make target * Address comments in #4902 * fix user keymaps after the changes
5 years ago
Clueboard refresh (#4902) * Cluecard: refactor - renamed layout macro KEYMAP to LAYOUT - reformatted layout macro to more closely resemble physical device layout - keymaps now use #include QMK_KEYBOARD_H - config.h files updated to use #pragma once method - deleted outdated QUANTUM_DIR code blocks from rules.mk files - white space changes on rules.mk files (alignment/readability) * Cluecard: Configurator support * Cluecard: readme update - added image - updated Docs links * Clueboard 66% HotSwap: corrected matrix and Configurator data - removed k31 and k84 from LAYOUT - both appear to be unsupported for this PCB according to images on clueboard.co - updated block comment mock-ups to match changes - rebuilt info.json file - delete removed keys from default keymap.c * Clueboard 66% HotSwap: readme update - fix make example - updated Docs links * Clueboard 66% HotSwap: 66_ansi keymap update Updated to use #include QMK_KEYBOARD_H * Clueboard 60% refactor - renamed layout macro KEYMAP to LAYOUT_all - renamed layout macro KEYMAP_AEK to LAYOUT_aek - removed redundant KC_TRNS definitions from keymaps - all keymaps now use #include QMK_KEYBOARD_H * Clueboard 17%: refactor * Clueboard 17%: Configurator support * Clueboard 17%: update Docs links in readme * Cleanup the 2x1800 files * Update Clueboard 60% to standard matrix * Update the clueboard default keymaps * Refresh and update clueboard 17 * Add the 66% hotswap to Clueboard's readme * Clarify the 66% hotswap's readme * change the image to imgur * Update the clueboard 66 to follow modern standards * update clueboard 66_hotswap to follow modern practices * Move the logo to imgur * update clueboard/card to follow modern practices * remove clueboard/66 as a valid make target * Address comments in #4902 * fix user keymaps after the changes
5 years ago
  1. #include QMK_KEYBOARD_H
  2. enum custom_keycodes {
  3. SONG_SU = SAFE_RANGE,
  4. SONG_SC,
  5. SONG_GB
  6. };
  7. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  8. [0] = LAYOUT(
  9. RGB_TOG, RGB_SAI, RGB_VAI, \
  10. RGB_HUD, RGB_HUI, \
  11. RGB_MOD, RGB_SAD, RGB_VAD, \
  12. BL_STEP, \
  13. SONG_SU,SONG_SC,SONG_GB \
  14. )
  15. };
  16. #ifdef AUDIO_ENABLE
  17. float tone_startup[][2] = SONG(STARTUP_SOUND);
  18. float tone_qwerty[][2] = SONG(QWERTY_SOUND);
  19. float tone_dvorak[][2] = SONG(DVORAK_SOUND);
  20. float tone_colemak[][2] = SONG(COLEMAK_SOUND);
  21. float tone_plover[][2] = SONG(PLOVER_SOUND);
  22. float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND);
  23. float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
  24. float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
  25. #endif
  26. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  27. switch (keycode) {
  28. #ifdef AUDIO_ENABLE
  29. case SONG_SU:
  30. if (record->event.pressed) {
  31. PLAY_SONG(tone_startup);
  32. }
  33. return false;
  34. case SONG_SC:
  35. if (record->event.pressed) {
  36. PLAY_SONG(music_scale);
  37. }
  38. return false;
  39. case SONG_GB:
  40. if (record->event.pressed) {
  41. PLAY_SONG(tone_goodbye);
  42. }
  43. return false;
  44. #endif
  45. default:
  46. return true;
  47. }
  48. }