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
11 changes: 11 additions & 0 deletions KeymapPlans/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Keymap Mnmemonic pages

As the number of macro layers increases, it is harder to know exactly what is in each one of them. Here is a handy page for one to write which macros are in each key.

## eRGB_keymap_map.pdf

Empty Keymap map for eRGB board, including rotary encoder and underglow.

## eRGB_6layer_keymap_A4.pdf

Combination of 6 of the above in a single A4 page
Binary file added KeymapPlans/eRGB_6layer_keymap_A4.pdf
Binary file not shown.
Binary file added KeymapPlans/eRGB_keymap_map.pdf
Binary file not shown.
18 changes: 14 additions & 4 deletions eRGB/Black PCB Example Firmware/gowla/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

void encoder_update_kb(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
switch(biton32(layer_state)){
case 1: //Layer 1
if (clockwise){
tap_code(KC_DOWN);
} else{
tap_code(KC_UP);
}
break;
default: // All other layers
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
break;
}
}
};
Expand Down