Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions keyboards/mawaeg/sharkropad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// clang-format off
/*
* ┌────────────┐
* │ RGB_MOD │
* ┌───┬───┬───┼────────────┤
* │ 7 │ 8 │ 9 │ RGB_TOGGLE │
* ├───┼───┼───┼────────────┤
* │ 4 │ 5 │ 6 │ NUM │
* ├───┼───┼───┼────────────┤
* │ 1 │ 2 │ 3 │ 0 │
* └───┴───┴───┴────────────┘
*/
[0] = LAYOUT(
RM_NEXT,
KC_P7, KC_P8, KC_P9, RM_TOGG,
KC_P4, KC_P5, KC_P6, KC_NUM,
KC_P1, KC_P2, KC_P3, KC_P0
)
// clang-format on
};

#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(RM_SPDD, RM_SPDU)},
};
#endif
2 changes: 2 additions & 0 deletions keyboards/mawaeg/sharkropad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ENCODER_MAP_ENABLE = yes
VIA_ENABLE = yes