summaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/keymaps/console/keymap.c
blob: b47fb59d17e1f5f2f860d80c8abc5922fd9a2a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include QMK_KEYBOARD_H

enum custom_keycodes {
    KC_HELLO = SAFE_RANGE,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    LAYOUT_ortho_1x1(KC_HELLO)
};

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
    switch (keycode) {
        case KC_HELLO:
            if (record->event.pressed) {
                println("Hello world!");
            }
            return false;
    }
    return true;
}