#include QMK_KEYBOARD_H
enum honeycomb_layers {
_BS,
_EN
};
enum honeycomb_keycodes {
HW = SAFE_RANGE,
COPY,
PASTA
};
extern int8_t encoderValue;
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BS] = LAYOUT(
HW, COPY, PASTA, KC_MUTE,
KC_4, KC_5, KC_6, KC_7,
KC_8, KC_9, KC_A, KC_B,
KC_C, KC_D, KC_E, KC_F
),
[_EN] = LAYOUT(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______
)
};
report_mouse_t currentReport = {};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case HW:
if (record->event.pressed) {
SEND_STRING("Hello, world!");
} else {
SEND_STRING("Goodbye, cruel world!");
}
break;
case COPY:
if (record->event.pressed) {
tap_code16(LCTL(KC_C)); }
break;
case PASTA:
if (record->event.pressed) {
tap_code16(LCTL(KC_V)); }
break;
return false;
}
return true;
};
void matrix_scan_user(void) {
while (encoderValue < 0){
tap_code(KC_VOLD);
encoderValue++;
}
while (encoderValue > 0){
tap_code(KC_VOLU);
encoderValue--;
}
};