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.

32 lines
658 B

  1. #include QMK_KEYBOARD_H
  2. #include "rgblite.h"
  3. // Defines the keycodes used by our macros in process_record_user
  4. enum custom_keycodes {
  5. QMKURL = SAFE_RANGE,
  6. };
  7. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  8. [0] = LAYOUT(
  9. RGB_HUI, QMKURL
  10. )
  11. };
  12. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  13. if (record->event.pressed) {
  14. switch (keycode) {
  15. case RGB_HUI:
  16. rgblite_increase_hue();
  17. break;
  18. case QMKURL:
  19. SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
  20. break;
  21. }
  22. }
  23. return true;
  24. }
  25. void keyboard_post_init_user(void) {
  26. rgblite_init();
  27. rgblite_increase_hue();
  28. }