summaryrefslogtreecommitdiffstats
path: root/keyboards/satt
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/satt')
-rw-r--r--keyboards/satt/comet46/comet46.c1
-rw-r--r--keyboards/satt/comet46/comet46.h21
-rw-r--r--keyboards/satt/comet46/config.h54
-rw-r--r--keyboards/satt/comet46/info.json66
-rw-r--r--keyboards/satt/comet46/keymaps/default-rgbled/keymap.c223
-rw-r--r--keyboards/satt/comet46/keymaps/default-rgbled/readme.md3
-rw-r--r--keyboards/satt/comet46/keymaps/default/keymap.c228
-rw-r--r--keyboards/satt/comet46/keymaps/default/readme.md3
-rw-r--r--keyboards/satt/comet46/keymaps/default/rules.mk6
-rw-r--r--keyboards/satt/comet46/keymaps/satt/action_pseudo_lut.c143
-rw-r--r--keyboards/satt/comet46/keymaps/satt/action_pseudo_lut.h15
-rw-r--r--keyboards/satt/comet46/keymaps/satt/keymap.c257
-rw-r--r--keyboards/satt/comet46/keymaps/satt/keymap_jis2us.h32
-rw-r--r--keyboards/satt/comet46/keymaps/satt/readme.md6
-rw-r--r--keyboards/satt/comet46/keymaps/satt/rules.mk8
-rw-r--r--keyboards/satt/comet46/lib/host_led_state_reader.c15
-rw-r--r--keyboards/satt/comet46/lib/keylogger.c288
-rw-r--r--keyboards/satt/comet46/lib/modifier_state_reader.c18
-rw-r--r--keyboards/satt/comet46/matrix.c72
-rw-r--r--keyboards/satt/comet46/readme.md17
-rw-r--r--keyboards/satt/comet46/rules.mk24
-rw-r--r--keyboards/satt/vision/chconf.h31
-rw-r--r--keyboards/satt/vision/config.h53
-rw-r--r--keyboards/satt/vision/info.json16
-rw-r--r--keyboards/satt/vision/keymaps/default/keymap.c93
-rw-r--r--keyboards/satt/vision/keymaps/satt/action_pseudo.c149
-rw-r--r--keyboards/satt/vision/keymaps/satt/action_pseudo.h27
-rw-r--r--keyboards/satt/vision/keymaps/satt/keymap.c168
-rw-r--r--keyboards/satt/vision/keymaps/satt/keymap_jis2us.h49
-rw-r--r--keyboards/satt/vision/keymaps/satt/readme.md6
-rw-r--r--keyboards/satt/vision/keymaps/satt/rules.mk1
-rw-r--r--keyboards/satt/vision/keymaps/via/keymap.c64
-rw-r--r--keyboards/satt/vision/keymaps/via/rules.mk3
-rw-r--r--keyboards/satt/vision/mcuconf.h28
-rw-r--r--keyboards/satt/vision/readme.md12
-rw-r--r--keyboards/satt/vision/rules.mk21
-rw-r--r--keyboards/satt/vision/vision.c17
-rw-r--r--keyboards/satt/vision/vision.h31
38 files changed, 0 insertions, 2269 deletions
diff --git a/keyboards/satt/comet46/comet46.c b/keyboards/satt/comet46/comet46.c
deleted file mode 100644
index 7c7edba93e..0000000000
--- a/keyboards/satt/comet46/comet46.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "comet46.h"
diff --git a/keyboards/satt/comet46/comet46.h b/keyboards/satt/comet46/comet46.h
deleted file mode 100644
index 094d960e20..0000000000
--- a/keyboards/satt/comet46/comet46.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-#define XXX KC_NO
-
-// This a shortcut to help you visually see your layout.
-// The first section contains all of the arguements
-// The second converts the arguments into a two-dimensional array
-#define LAYOUT( \
- k04, k01, k13, k10, k22, k33, k36, k27, k19, k16, k08, k05, \
- k03, k00, k12, k24, k21, k32, k43, k46, k37, k28, k25, k17, k09, k06, \
- k02, k14, k11, k23, k20, k31, k42, k47, k38, k29, k26, k18, k15, k07, \
- k34, k44, k41, k48, k45, k35 \
-) { \
- { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \
- { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \
- { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \
- { XXX, k31, k32, k33, k34, k35, k36, k37, k38, XXX }, \
- { XXX, k41, k42, k43, k44, k45, k46, k47, k48, XXX } \
-}
diff --git a/keyboards/satt/comet46/config.h b/keyboards/satt/comet46/config.h
deleted file mode 100644
index f14a389382..0000000000
--- a/keyboards/satt/comet46/config.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-
-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
-
-#include "config_common.h"
-
-/* key matrix size */
-#define MATRIX_ROWS 5
-#define MATRIX_COLS 10
-
-/* define if matrix has ghost */
-//#define MATRIX_HAS_GHOST
-
-/* number of backlight levels */
-//#define BACKLIGHT_LEVELS 3
-
-#define ONESHOT_TIMEOUT 500
-
-/*
- * Feature disable options
- * These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT
-
-// Define masks for modifiers
-#define MODS_SHIFT_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
-#define MODS_CTRL_MASK (MOD_BIT(KC_LCTL)|MOD_BIT(KC_RCTRL))
-#define MODS_ALT_MASK (MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
-#define MODS_GUI_MASK (MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI))
diff --git a/keyboards/satt/comet46/info.json b/keyboards/satt/comet46/info.json
deleted file mode 100644
index be71dedb39..0000000000
--- a/keyboards/satt/comet46/info.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "keyboard_name": "Comet46",
- "manufacturer": "SatT",
- "url": "",
- "maintainer": "SatT",
- "usb": {
- "vid": "0xFEED",
- "pid": "0x6060",
- "device_version": "0.0.1"
- },
- "layouts": {
- "LAYOUT": {
- "layout": [
- {"label":"TAB", "x":0, "y":0.45},
- {"label":"Q", "x":1, "y":0.45},
- {"label":"W", "x":2, "y":0.15},
- {"label":"E", "x":3, "y":0},
- {"label":"R", "x":4, "y":0.30},
- {"label":"T", "x":5, "y":0.45},
- {"label":"Y", "x":9, "y":0.45},
- {"label":"U", "x":10, "y":0.30},
- {"label":"I", "x":11, "y":0},
- {"label":"O", "x":12, "y":0.15},
- {"label":"P", "x":13, "y":0.45},
- {"label":"BSPC", "x":14, "y":0.45},
-
- {"label":"LCTL", "x":0, "y":1.45},
- {"label":"A", "x":1, "y":1.45},
- {"label":"S", "x":2, "y":1.15},
- {"label":"D", "x":3, "y":1},
- {"label":"F", "x":4, "y":1.30},
- {"label":"G", "x":5, "y":1.45},
- {"label":"ESC", "x":6, "y":1},
- {"label":"DEL", "x":8, "y":1},
- {"label":"H", "x":9, "y":1.45},
- {"label":"J", "x":10, "y":1.30},
- {"label":"K", "x":11, "y":1},
- {"label":"L", "x":12, "y":1.15},
- {"label":"SCLN", "x":13, "y":1.45},
- {"label":"QUOT", "x":14, "y":1.45},
-
- {"label":"LSFT", "x":0, "y":2.45},
- {"label":"Z", "x":1, "y":2.45},
- {"label":"X", "x":2, "y":2.15},
- {"label":"C", "x":3, "y":2},
- {"label":"V", "x":4, "y":2.30},
- {"label":"B", "x":5, "y":2.45},
- {"label":"LCBR", "x":6, "y":2},
- {"label":"RCBR", "x":8, "y":2},
- {"label":"N", "x":9, "y":2.45},
- {"label":"M", "x":10, "y":2.30},
- {"label":"COMM", "x":11, "y":2},
- {"label":"DOT", "x":12, "y":2.15},
- {"label":"SLSH", "x":13, "y":2.45},
- {"label":"RSFT", "x":14, "y":2.45},
-
- {"label":"LGUI", "x":4, "y":3.9},
- {"label":"LOWER", "x":5, "y":3.9},
- {"label":"SPACE", "x":6, "y":3.4, "h":1.5},
- {"label":"ENTER", "x":8, "y":3.4, "h":1.5},
- {"label":"RAISE", "x":9, "y":3.9},
- {"label":"LALT", "x":10, "y":3.9}
- ]
- }
- }
-}
diff --git a/keyboards/satt/comet46/keymaps/default-rgbled/keymap.c b/keyboards/satt/comet46/keymaps/default-rgbled/keymap.c
deleted file mode 100644
index 1e96bd7fbc..0000000000
--- a/keyboards/satt/comet46/keymaps/default-rgbled/keymap.c
+++ /dev/null
@@ -1,223 +0,0 @@
-// this is the style you want to emulate.
-// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
-
-#include QMK_KEYBOARD_H
-
-// Each layer gets a name for readability, which is then used in the keymap matrix below.
-// The underscores don't mean anything - you can have a layer called STUFF or any other name.
-// Layer names don't all need to be of the same length, obviously, and you can also skip them
-// entirely and just use numbers.
-enum comet46_layers
-{
- _QWERTY,
- _COLEMAK,
- _DVORAK,
- _LOWER,
- _RAISE,
- _ADJUST,
-};
-
-enum custom_keycodes {
- QWERTY = SAFE_RANGE,
- COLEMAK,
- DVORAK,
- LOWER,
- RAISE,
-};
-
-#define LOWER MO(_LOWER)
-#define RAISE MO(_RAISE)
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-
- /* Qwerty
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | S | D | F | G | Esc | | Del | H | J | K | L | ; | " |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| Z | X | C | V | B | { | | } | N | M | , | . | / | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_QWERTY] = LAYOUT(
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
- KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_ESC, KC_DEL, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCBR, KC_RCBR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Colemak
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | R | S | T | D | Esc | | Del | H | N | E | I | O | " |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| Z | X | C | V | B | { | | } | K | M | , | . | / | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_COLEMAK] = LAYOUT(
- KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
- KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_ESC, KC_DEL, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCBR, KC_RCBR, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Dvorak
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | " | , | . | P | Y | | F | G | C | R | L | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | O | E | U | I | Esc | | Del | D | H | T | N | S | / |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| ; | Q | J | K | X | { | | } | B | M | W | V | Z | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_DVORAK] = LAYOUT(
- KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
- KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_ESC, KC_DEL, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
- KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_LCBR, KC_RCBR, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Lower
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | | | | ` | \ | - | = | [ | ] | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | | | | ~ | | | _ | + | { | } | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_LOWER] = LAYOUT(
- _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
- _______, _______, _______, _______, _______, _______, _______, KC_GRV, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
- _______, _______, _______, _______, _______, _______, _______, KC_TILD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
- _______, _______, _______, _______, _______, _______
- ),
-
- /* Raise
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | 1 | 2 | 3 | 4 | 5 | | | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | F1 | F2 | F3 | F4 | F5 | F6 | | | Left | Down | Up |Right | End | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | F7 | F8 | F9 | F10 | F11 | F12 | | Home | | PgDn | PgUp | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_RAISE] = LAYOUT(
- _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
- _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_END, _______,
- _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, _______,
- _______, _______, _______, _______, _______, _______
- ),
-
- /* Adjust
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | | | | | | | | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | |Qwerty| |Colemk| | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | |Reset | |Dvorak| | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_ADJUST] = LAYOUT(
- _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______, QWERTY, COLEMAK, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______, QK_BOOT, DVORAK, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______
- )
-};
-
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- return update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
-}
-
-// settings for LED on receiver
-void led_init(void) {
- DDRD |= (1<<1);
- PORTD |= (1<<1);
- DDRF |= (1<<4) | (1<<5);
- PORTF |= (1<<4) | (1<<5);
-}
-
-#define red_led_off PORTF |= (1<<5)
-#define red_led_on PORTF &= ~(1<<5)
-#define blu_led_off PORTF |= (1<<4)
-#define blu_led_on PORTF &= ~(1<<4)
-#define grn_led_off PORTD |= (1<<1)
-#define grn_led_on PORTD &= ~(1<<1)
-
-#define set_led_off red_led_off; grn_led_off; blu_led_off
-#define set_led_red red_led_on; grn_led_off; blu_led_off
-#define set_led_blue red_led_off; grn_led_off; blu_led_on
-#define set_led_green red_led_off; grn_led_on; blu_led_off
-#define set_led_yellow red_led_on; grn_led_on; blu_led_off
-#define set_led_magenta red_led_on; grn_led_off; blu_led_on
-#define set_led_cyan red_led_off; grn_led_on; blu_led_on
-#define set_led_white red_led_on; grn_led_on; blu_led_on
-
-void matrix_init_user(void) {
- led_init();
-}
-
-void matrix_scan_user(void) {
- uint8_t layer = get_highest_layer(layer_state);
- uint8_t default_layer = biton32(eeconfig_read_default_layer());
- switch (layer) {
- case _LOWER:
- set_led_red;
- break;
- case _RAISE:
- set_led_blue;
- break;
- case _ADJUST:
- set_led_magenta;
- break;
- default:
- switch (default_layer) {
- case _COLEMAK:
- set_led_white;
- break;
- case _DVORAK:
- set_led_yellow;
- break;
- default:
- set_led_green;
- break;
- }
- break;
- }
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case QWERTY:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_QWERTY);
- }
- break;
- case COLEMAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_COLEMAK);
- }
- break;
- case DVORAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_DVORAK);
- }
- break;
- }
- return true;
-}
diff --git a/keyboards/satt/comet46/keymaps/default-rgbled/readme.md b/keyboards/satt/comet46/keymaps/default-rgbled/readme.md
deleted file mode 100644
index 40cc744337..0000000000
--- a/keyboards/satt/comet46/keymaps/default-rgbled/readme.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## default-led
-
-A keymap that is compatible with mitosis-type receivers, which use RGB LED for layer indication.
diff --git a/keyboards/satt/comet46/keymaps/default/keymap.c b/keyboards/satt/comet46/keymaps/default/keymap.c
deleted file mode 100644
index 3e6f9045ff..0000000000
--- a/keyboards/satt/comet46/keymaps/default/keymap.c
+++ /dev/null
@@ -1,228 +0,0 @@
-// this is the style you want to emulate.
-// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
-
-#include QMK_KEYBOARD_H
-
-
-// Each layer gets a name for readability, which is then used in the keymap matrix below.
-// The underscores don't mean anything - you can have a layer called STUFF or any other name.
-// Layer names don't all need to be of the same length, obviously, and you can also skip them
-// entirely and just use numbers.
-enum comet46_layers
-{
- _QWERTY,
- _COLEMAK,
- _DVORAK,
- _LOWER,
- _RAISE,
- _ADJUST,
-};
-
-enum custom_keycodes {
- QWERTY = SAFE_RANGE,
- COLEMAK,
- DVORAK,
- LOWER,
- RAISE,
-};
-
-#define LOWER MO(_LOWER)
-#define RAISE MO(_RAISE)
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-
- /* Qwerty
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | S | D | F | G | Esc | | Del | H | J | K | L | ; | " |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| Z | X | C | V | B | { | | } | N | M | , | . | / | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_QWERTY] = LAYOUT(
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
- KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_ESC, KC_DEL, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCBR, KC_RCBR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Colemak
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | R | S | T | D | Esc | | Del | H | N | E | I | O | " |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| Z | X | C | V | B | { | | } | K | M | , | . | / | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_COLEMAK] = LAYOUT(
- KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
- KC_LCTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_ESC, KC_DEL, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_LCBR, KC_RCBR, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Dvorak
- * ,-----------------------------------------+ +-----------------------------------------.
- * | Tab | " | , | . | P | Y | | F | G | C | R | L | Bksp |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Ctl | A | O | E | U | I | Esc | | Del | D | H | T | N | S | / |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | Shift| ; | Q | J | K | X | { | | } | B | M | W | V | Z | Shift|
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | GUI | Lower| Space| | Enter| Raise| Alt |
- * +--------------------/ \--------------------+
- */
- [_DVORAK] = LAYOUT(
- KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC,
- KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_ESC, KC_DEL, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH,
- KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_LCBR, KC_RCBR, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT,
- KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LALT
- ),
-
- /* Lower
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | | | | ` | \ | - | = | [ | ] | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | | | | ~ | | | _ | + | { | } | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_LOWER] = LAYOUT(
- _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
- _______, _______, _______, _______, _______, _______, _______, KC_GRV, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
- _______, _______, _______, _______, _______, _______, _______, KC_TILD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______,
- _______, _______, _______, _______, _______, _______
- ),
-
- /* Raise
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | 1 | 2 | 3 | 4 | 5 | | | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | F1 | F2 | F3 | F4 | F5 | F6 | | | Left | Down | Up |Right | End | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | F7 | F8 | F9 | F10 | F11 | F12 | | Home | | PgDn | PgUp | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_RAISE] = LAYOUT(
- _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
- _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_END, _______,
- _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, _______,
- _______, _______, _______, _______, _______, _______
- ),
-
- /* Adjust
- * ,-----------------------------------------+ +-----------------------------------------.
- * | | | | | | | | | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | |Qwerty| |Colemk| | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+------+------|
- * | | | | | | |Reset | |Dvorak| | | | | | |
- * |------+------+------+------+------+------+------+ +------+------+------+------+------+-------------|
- * | | | | | | | |
- * +--------------------/ \--------------------+
- */
- [_ADJUST] = LAYOUT(
- _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______, QWERTY, COLEMAK, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______, QK_BOOT, DVORAK, _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______, _______, _______
- )
-};
-
-
-layer_state_t layer_state_set_user(layer_state_t state) {
- return update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
-}
-
-#ifdef OLED_ENABLE
-
-// You need to add source files to SRC in rules.mk when using OLED display functions
-void set_keylog(uint16_t keycode);
-const char *read_keylog(void);
-const char *read_modifier_state(void);
-const char *read_host_led_state(void);
-
-bool oled_task_user(void) {
- // Layer state
- char layer_str[22];
- oled_write_P(PSTR("Layer: "), false);
- uint8_t layer = get_highest_layer(layer_state);
- uint8_t default_layer = get_highest_layer(eeconfig_read_default_layer());
- switch (layer) {
- case _QWERTY:
- switch (default_layer) {
- case _QWERTY:
- snprintf(layer_str, sizeof(layer_str), "Qwerty");
- break;
- case _COLEMAK:
- snprintf(layer_str, sizeof(layer_str), "Colemak");
- break;
- case _DVORAK:
- snprintf(layer_str, sizeof(layer_str), "Dvorak");
- break;
- default:
- snprintf(layer_str, sizeof(layer_str), "Undef-%d", default_layer);
- break;
- }