#include QMK_KEYBOARD_H
enum layers {
_MAIN,
};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder*/
if (clockwise) {
tap_code(KC_1);
} else {
tap_code(KC_2);
}
} else if (index == 1) { /* Second encoder*/
tap_code(KC_3);
tap_code(KC_4);
} else if (index == 2) { /* Third encoder*/
tap_code(KC_5);
tap_code(KC_6);
} else if (index == 3) { /* Fourth encoder*/
tap_code(KC_7);
tap_code(KC_8);
} else if (index == 4) { /* Fifth encoder*/
tap_code(KC_9);
tap_code(KC_0);
return true;
//
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //buttion closest to usb is first
[_MAIN] = LAYOUT_ortho_1x5(
KC_A, KC_B, KC_C, KC_D, KC_E
)