keymap.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #include QMK_KEYBOARD_H
  2. #define _______ KC_TRNS
  3. #define FN1_Q LT(1, KC_Q)
  4. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  5. [0] = LAYOUT_ortho_3x10(
  6. FN1_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
  7. KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC,
  8. KC_Z, KC_X, KC_C, KC_V, KC_BSPC, KC_SPC, KC_B, KC_N, KC_M, KC_ENT
  9. ),
  10. [1] = LAYOUT_ortho_3x10(
  11. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  12. _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_INC,
  13. _______, _______, _______, _______, _______, _______, RESET, _______, _______, BL_DEC
  14. ),
  15. };
  16. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
  17. keyevent_t event = record->event;
  18. (void)event;
  19. switch (id) {
  20. }
  21. return MACRO_NONE;
  22. }
  23. void matrix_init_user(void) {
  24. }
  25. void matrix_scan_user(void) {
  26. }
  27. bool process_record_user(uint16_t keycode, keyrecord_t *record) {
  28. return true;
  29. }
  30. void led_set_user(uint8_t usb_led) {
  31. if (usb_led & (1 << USB_LED_NUM_LOCK)) {
  32. DDRD |= (1 << 5); PORTD &= ~(1 << 5);
  33. } else {
  34. DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
  35. }
  36. if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
  37. DDRB |= (1 << 0); PORTB &= ~(1 << 0);
  38. } else {
  39. DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
  40. }
  41. if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
  42. } else {
  43. }
  44. if (usb_led & (1 << USB_LED_COMPOSE)) {
  45. } else {
  46. }
  47. if (usb_led & (1 << USB_LED_KANA)) {
  48. } else {
  49. }
  50. }