1 #include QMK_KEYBOARD_H
3 // Each layer gets a name for readability, which is then used in the keymap matrix below.
4 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
5 // Layer names don't all need to be of the same length, obviously, and you can also skip them
6 // entirely and just use numbers.
7 enum honeycomb_layers {
12 // Macro definitions for readability
13 enum honeycomb_keycodes {
19 extern int8_t encoderValue;
21 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
22 [_BS] = LAYOUT( /* Base layout, put whatever defaults. */
23 HW, COPY, PASTA, KC_MUTE,
24 KC_4, KC_5, KC_6, KC_7,
25 KC_8, KC_9, KC_A, KC_B,
26 KC_C, KC_D, KC_E, KC_F
29 [_EN] = LAYOUT( /* Alternate layer */
30 _______, _______, _______, _______,
31 _______, _______, _______, _______,
32 _______, _______, _______, _______,
33 _______, _______, _______, _______
37 report_mouse_t currentReport = {};
39 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
40 //uint8_t layer = biton32(layer_state); // get the current layer
42 // Basic example functions
45 if (record->event.pressed) {
46 SEND_STRING("Hello, world!");
48 SEND_STRING("Goodbye, cruel world!");
52 if (record->event.pressed) {
53 tap_code16(LCTL(KC_C)); // Replace with tap_code16(LCMD(KC_C)) to enable for Mac
57 if (record->event.pressed) {
58 tap_code16(LCTL(KC_V)); // Replace with tap_code16(LCMD(KC_V)) to enable for Mac
66 void matrix_scan_user(void) {
67 /* Leaving some LED stuff in here in comment form so you can see how to use it.
68 if (shiftLED || capsLED){
83 while (encoderValue < 0){
87 while (encoderValue > 0){