forked from mirror/qmk_firmware
crkbd layout
This commit is contained in:
41
keyboards/crkbd/keymaps/allemangd/config.h
Normal file
41
keyboards/crkbd/keymaps/allemangd/config.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
This is the c configuration file for the keymap
|
||||
|
||||
Copyright 2012 Jun Wako <wakojun@gmail.com>
|
||||
Copyright 2015 Jack Humbert
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define ENABLE_COMPILE_KEYCODE
|
||||
|
||||
//#define USE_MATRIX_I2C
|
||||
|
||||
/* Select hand configuration */
|
||||
|
||||
#define EE_HANDS
|
||||
#define USE_SERIAL_PD2
|
||||
|
||||
#undef MANUFACTURER
|
||||
#define MANUFACTURER "allemangD"
|
||||
#undef PRODUCT
|
||||
#define PRODUCT "Corne"
|
||||
|
||||
#define OLED_DISABLE_TIMEOUT
|
||||
#define OLED_BRIGHTNESS 128
|
||||
|
||||
//#define QUICK_TAP_TERM 0
|
||||
//#define TAPPING_TERM 100
|
||||
86
keyboards/crkbd/keymaps/allemangd/keymap.c
Normal file
86
keyboards/crkbd/keymaps/allemangd/keymap.c
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
Copyright 2019 @foostan
|
||||
Copyright 2020 Drashna Jaelre <@drashna>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#include "allemangd.h"
|
||||
|
||||
// todo render_status
|
||||
|
||||
#define UNWRAP_LAYOUT(...) LAYOUT_split_3x6_3(__VA_ARGS__)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_DVORAK] = UNWRAP_LAYOUT(
|
||||
KC_TAB, __DVORAK_L1________________________________, __DVORAK_R1________________________________, KC_BSPC,
|
||||
KC_ESC, __DVORAK_L2________________________________, __DVORAK_R2________________________________, KC_MINS,
|
||||
KC_LSFT, __DVORAK_L3________________________________, __DVORAK_R3________________________________, KC_RSFT,
|
||||
KC_LCTL, ET_LWER, DL_LALT, IN_RALT, SP_RAIS, AP_RCTL
|
||||
),
|
||||
[_LOWER] = UNWRAP_LAYOUT(
|
||||
_______, __LOWER_L1_________________________________, __LOWER_R1_________________________________, _______,
|
||||
_______, __LOWER_L2_________________________________, __LOWER_R2_________________________________, _______,
|
||||
_______, __LOWER_L3_________________________________, __LOWER_R3_________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[_RAISE] = UNWRAP_LAYOUT(
|
||||
KC_GRV, __RAISE_L1_________________________________, __RAISE_R1_________________________________, _______,
|
||||
_______, __RAISE_L2_________________________________, __RAISE_R2_________________________________, _______,
|
||||
_______, __RAISE_L3_________________________________, __RAISE_R3_________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[_ADJUST] = UNWRAP_LAYOUT(
|
||||
QK_MAKE, __ADJUST_L1________________________________, __ADJUST_R1________________________________, QK_BOOT,
|
||||
KC_VRSN, __ADJUST_L2________________________________, __ADJUST_R2________________________________, KC_PSCR,
|
||||
_______, __ADJUST_L3________________________________, __ADJUST_R3________________________________, _______,
|
||||
_______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
static void oled_render_layer_state(void) {
|
||||
oled_write_P(PSTR("layer: "), false);
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_ln_P(PSTR("dvorak"), false);
|
||||
break;
|
||||
case 1:
|
||||
oled_write_ln_P(PSTR("lower"), false);
|
||||
break;
|
||||
case 2:
|
||||
oled_write_ln_P(PSTR("raise"), false);
|
||||
break;
|
||||
case 3:
|
||||
oled_write_ln_P(PSTR("adjust"), false);
|
||||
break;
|
||||
default:
|
||||
oled_write_ln_P(PSTR("undef"), false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void oled_render_logo(void);
|
||||
|
||||
bool oled_task_user(void) {
|
||||
if (is_keyboard_master()) {
|
||||
oled_render_layer_state();
|
||||
} else {
|
||||
oled_render_logo();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
21
keyboards/crkbd/keymaps/allemangd/rules.mk
Normal file
21
keyboards/crkbd/keymaps/allemangd/rules.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
BOOTMAGIC_ENABLE = no
|
||||
MOUSEKEY_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
CONSOLE_ENABLE = yes
|
||||
DEBUG_ENABLE = yes
|
||||
NKRO_ENABLE = yes
|
||||
BACKLIGHT_ENABLE = no
|
||||
MIDI_ENABLE = no
|
||||
AUDIO_ENABLE = no
|
||||
UNICODE_ENABLE = no
|
||||
BLUETOOTH_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
SWAP_HANDS_ENABLE = no
|
||||
RGB_MATRIX_ENABLE = no
|
||||
HAPTIC_ENABLE = no
|
||||
SLEEP_LED_ENABLE = no
|
||||
|
||||
BOOTLOADER = caterina
|
||||
|
||||
OLED_ENABLE = yes
|
||||
OLED_DRIVER = ssd1306
|
||||
Reference in New Issue
Block a user