Compare commits
65 Commits
Author | SHA1 | Date | |
---|---|---|---|
bd1c048a76 | |||
4d33d72975 | |||
7ce5402417 | |||
b5ebdf1b3a | |||
d7c90d805f | |||
5f2c434954 | |||
f2eb080aa2 | |||
f12dcb0659 | |||
262a607334 | |||
7ef98e7f61 | |||
d46fa2274c | |||
e024147ce5 | |||
c60cafae41 | |||
38162af5a7 | |||
e680af98d2 | |||
4ba0cb7ebc | |||
4b839db384 | |||
e041ec1655 | |||
75201c73a0 | |||
8e71d3d053 | |||
e69da2db2c | |||
dc40f00aaf | |||
c1481629fd | |||
83eecdce22 | |||
780b7722fb | |||
86ac56cd7f | |||
c1e69bcef0 | |||
78019c3e21 | |||
76bc235508 | |||
fed9c97ddb | |||
9f0dbc21a3 | |||
c731432765 | |||
f450bdbb41 | |||
4fa1924bd7 | |||
7b33897b97 | |||
d705918f50 | |||
a3f1defcd4 | |||
fb579aae49 | |||
67654e4a82 | |||
952a4c8312 | |||
b9ea10a80d | |||
4e72224aa3 | |||
1bfec6ddd9 | |||
db9204c7e1 | |||
27b8046867 | |||
359aff6c49 | |||
36f4f1e9b8 | |||
f487b726cd | |||
5cecc1ea1e | |||
b9ed9d33d3 | |||
2ac0927fd7 | |||
9dad914841 | |||
50481ce7ed | |||
74a2edd903 | |||
805e13a6d0 | |||
fcd55e2f04 | |||
8685409784 | |||
1d85fe176a | |||
a42e3ba2cb | |||
c745cbb77a | |||
6b1ae7e6aa | |||
a602ef75fb | |||
1ba93875ba | |||
33074bcbad | |||
329eb4b8df |
7
.github/workflows/api.yml
vendored
7
.github/workflows/api.yml
vendored
@ -13,6 +13,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: qmkfm/base_container
|
||||
|
||||
# protect against those who develop with their fork on master
|
||||
if: github.repository == 'qmk/qmk_firmware'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -22,6 +25,10 @@ jobs:
|
||||
- name: Generate API Data
|
||||
run: qmk generate-api
|
||||
|
||||
- name: Install rsync
|
||||
run: |
|
||||
apt-get update && apt-get install -y rsync
|
||||
|
||||
- name: Upload API Data
|
||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||
with:
|
||||
|
@ -6,7 +6,7 @@ on:
|
||||
- 'keyboards/**'
|
||||
|
||||
jobs:
|
||||
info:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container: qmkfm/base_container
|
||||
@ -27,7 +27,7 @@ jobs:
|
||||
echo ${{ github.event.pull_request.base.sha }}
|
||||
echo '${{ steps.file_changes.outputs.files}}'
|
||||
|
||||
- name: Run qmk info
|
||||
- name: Run qmk lint
|
||||
shell: 'bash {0}'
|
||||
run: |
|
||||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}')
|
||||
@ -45,10 +45,7 @@ jobs:
|
||||
if [[ $KEYMAP_ONLY -gt 0 ]]; then
|
||||
echo "linting ${KB}"
|
||||
|
||||
# TODO: info info always returns 0 - right now the only way to know failure is to inspect log lines
|
||||
qmk info -l -kb ${KB} 2>&1 | tee /tmp/$$
|
||||
!(grep -cq ☒ /tmp/$$)
|
||||
: $((exit_code = $exit_code + $?))
|
||||
qmk lint --keyboard ${KB} && qmk info -l --keyboard ${KB}
|
||||
fi
|
||||
done
|
||||
exit $exit_code
|
@ -178,6 +178,24 @@ Creates a keymap.json from a keymap.c.
|
||||
qmk c2json [--no-cpp] [-o OUTPUT] filename
|
||||
```
|
||||
|
||||
## `qmk lint`
|
||||
|
||||
Checks over a keyboard and/or keymap and highlights common errors, problems, and anti-patterns.
|
||||
|
||||
**Usage**:
|
||||
|
||||
```
|
||||
qmk lint [-km KEYMAP] [-kb KEYBOARD] [--strict]
|
||||
```
|
||||
|
||||
This command is directory aware. It will automatically fill in KEYBOARD and/or KEYMAP if you are in a keyboard or keymap directory.
|
||||
|
||||
**Examples**:
|
||||
|
||||
Do a basic lint check:
|
||||
|
||||
qmk lint -kb rominronin/katana60/rev2
|
||||
|
||||
## `qmk list-keyboards`
|
||||
|
||||
This command lists all the keyboards currently defined in `qmk_firmware`
|
||||
@ -212,6 +230,16 @@ This command is directory aware. It will automatically fill in KEYBOARD and/or K
|
||||
qmk new-keymap [-kb KEYBOARD] [-km KEYMAP]
|
||||
```
|
||||
|
||||
## `qmk clean`
|
||||
|
||||
This command cleans up the `.build` folder. If `--all` is passed, any .hex or .bin files present in the `qmk_firmware` directory will also be deleted.
|
||||
|
||||
**Usage**:
|
||||
|
||||
```
|
||||
qmk clean [-a]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Developer Commands
|
||||
@ -299,4 +327,3 @@ This command runs the python test suite. If you make changes to python code you
|
||||
```
|
||||
qmk pytest
|
||||
```
|
||||
|
||||
|
@ -140,8 +140,8 @@ void oled_task_user(void) {
|
||||
|---------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------|
|
||||
|`OLED_DISPLAY_ADDRESS` |`0x3C` |The i2c address of the OLED Display |
|
||||
|`OLED_FONT_H` |`"glcdfont.c"` |The font code file to use for custom fonts |
|
||||
|`OLED_FONT_START` |`0` |The starting characer index for custom fonts |
|
||||
|`OLED_FONT_END` |`223` |The ending characer index for custom fonts |
|
||||
|`OLED_FONT_START` |`0` |The starting character index for custom fonts |
|
||||
|`OLED_FONT_END` |`223` |The ending character index for custom fonts |
|
||||
|`OLED_FONT_WIDTH` |`6` |The font width |
|
||||
|`OLED_FONT_HEIGHT` |`8` |The font height (untested) |
|
||||
|`OLED_TIMEOUT` |`60000` |Turns off the OLED screen after 60000ms of keyboard inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
||||
@ -149,6 +149,7 @@ void oled_task_user(void) {
|
||||
|`OLED_SCROLL_TIMEOUT_RIGHT`|*Not defined* |Scroll timeout direction is right when defined, left when undefined. |
|
||||
|`OLED_IC` |`OLED_IC_SSD1306`|Set to `OLED_IC_SH1106` if you're using the SH1106 OLED controller. |
|
||||
|`OLED_COLUMN_OFFSET` |`0` |(SH1106 only.) Shift output to the right this many pixels.<br />Useful for 128x64 displays centered on a 132x64 SH1106 IC.|
|
||||
|`OLED_BRIGHTNESS` |`255` |The default brightness level of the OLED, from 0 to 255. |
|
||||
|
||||
## 128x64 & Custom sized OLED Displays
|
||||
|
||||
@ -304,6 +305,12 @@ bool oled_off(void);
|
||||
// not
|
||||
bool is_oled_on(void);
|
||||
|
||||
// Sets the brightness level of the display
|
||||
uint8_t oled_set_brightness(uint8_t level);
|
||||
|
||||
// Gets the current brightness level of the display
|
||||
uint8_t oled_get_brightness(void);
|
||||
|
||||
// Basically it's oled_render, but with timeout management and oled_task_user calling!
|
||||
void oled_task(void);
|
||||
|
||||
|
@ -3,6 +3,25 @@
|
||||
Since starting, QMK has grown by leaps and bounds thanks to people like you who contribute to creating and maintaining our community keyboards. As we've grown we've discovered some patterns that work well, and ask that you conform to them to make it easier for other people to benefit from your hard work.
|
||||
|
||||
|
||||
## Use QMK Lint
|
||||
|
||||
We have provided a tool, `qmk lint`, which will let you check over your keyboard for problems. We suggest using it frequently while working on your keyboard and keymap.
|
||||
|
||||
Example passing check:
|
||||
|
||||
```
|
||||
$ qmk lint -kb rominronin/katana60/rev2
|
||||
Ψ Lint check passed!
|
||||
```
|
||||
|
||||
Example failing check:
|
||||
|
||||
```
|
||||
$ qmk lint -kb clueboard/66/rev3
|
||||
☒ Missing keyboards/clueboard/66/rev3/readme.md
|
||||
☒ Lint check failed!
|
||||
```
|
||||
|
||||
## Naming Your Keyboard/Project
|
||||
|
||||
All keyboard names are in lower case, consisting only of letters, numbers, and underscore (`_`). Names may not begin with an underscore. Forward slash (`/`) is used as a sub-folder separation character.
|
||||
|
@ -107,6 +107,7 @@ OLED_BLOCK_TYPE oled_dirty = 0;
|
||||
bool oled_initialized = false;
|
||||
bool oled_active = false;
|
||||
bool oled_scrolling = false;
|
||||
uint8_t oled_brightness = OLED_BRIGHTNESS;
|
||||
uint8_t oled_rotation = 0;
|
||||
uint8_t oled_rotation_width = 0;
|
||||
uint8_t oled_scroll_speed = 0; // this holds the speed after being remapped to ssd1306 internal values
|
||||
@ -193,7 +194,7 @@ bool oled_init(uint8_t rotation) {
|
||||
}
|
||||
}
|
||||
|
||||
static const uint8_t PROGMEM display_setup2[] = {I2C_CMD, COM_PINS, OLED_COM_PINS, CONTRAST, 0x8F, PRE_CHARGE_PERIOD, 0xF1, VCOM_DETECT, 0x40, DISPLAY_ALL_ON_RESUME, NORMAL_DISPLAY, DEACTIVATE_SCROLL, DISPLAY_ON};
|
||||
static const uint8_t PROGMEM display_setup2[] = {I2C_CMD, COM_PINS, OLED_COM_PINS, CONTRAST, OLED_BRIGHTNESS, PRE_CHARGE_PERIOD, 0xF1, VCOM_DETECT, 0x20, DISPLAY_ALL_ON_RESUME, NORMAL_DISPLAY, DEACTIVATE_SCROLL, DISPLAY_ON};
|
||||
if (I2C_TRANSMIT_P(display_setup2) != I2C_STATUS_SUCCESS) {
|
||||
print("display_setup2 failed\n");
|
||||
return false;
|
||||
@ -550,6 +551,20 @@ bool oled_off(void) {
|
||||
|
||||
bool is_oled_on(void) { return oled_active; }
|
||||
|
||||
uint8_t oled_set_brightness(uint8_t level) {
|
||||
uint8_t set_contrast[] = {I2C_CMD, CONTRAST, level};
|
||||
if (oled_brightness != level) {
|
||||
if (I2C_TRANSMIT(set_contrast) != I2C_STATUS_SUCCESS) {
|
||||
print("set_brightness cmd failed\n");
|
||||
return oled_brightness;
|
||||
}
|
||||
oled_brightness = level;
|
||||
}
|
||||
return oled_brightness;
|
||||
}
|
||||
|
||||
uint8_t oled_get_brightness(void) { return oled_brightness; }
|
||||
|
||||
// Set the specific 8 lines rows of the screen to scroll.
|
||||
// 0 is the default for start, and 7 for end, which is the entire
|
||||
// height of the screen. For 128x32 screens, rows 4-7 are not used.
|
||||
|
@ -141,6 +141,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#if !defined(OLED_FONT_HEIGHT)
|
||||
# define OLED_FONT_HEIGHT 8
|
||||
#endif
|
||||
// Default brightness level
|
||||
#if !defined(OLED_BRIGHTNESS)
|
||||
# define OLED_BRIGHTNESS 255
|
||||
#endif
|
||||
|
||||
#if !defined(OLED_TIMEOUT)
|
||||
# if defined(OLED_DISABLE_TIMEOUT)
|
||||
@ -261,6 +265,12 @@ bool oled_off(void);
|
||||
// not
|
||||
bool is_oled_on(void);
|
||||
|
||||
// Sets the brightness of the display
|
||||
uint8_t oled_set_brightness(uint8_t level);
|
||||
|
||||
// Gets the current brightness of the display
|
||||
uint8_t oled_get_brightness(void);
|
||||
|
||||
// Basically it's oled_render, but with timeout management and oled_task_user calling!
|
||||
void oled_task(void);
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
||||
CONSOLE_ENABLE = no
|
||||
|
@ -1,2 +1 @@
|
||||
VIA_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
@ -1,5 +1,8 @@
|
||||
#include "rev2.h"
|
||||
|
||||
// Tested and verified working on ext65rev2
|
||||
void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); }
|
||||
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
void board_init(void) {
|
||||
SYSCFG->CFGR1 |= SYSCFG_CFGR1_I2C1_DMA_RMP;
|
||||
|
22
keyboards/ai03/polaris/keymaps/mekberg/config.h
Normal file
22
keyboards/ai03/polaris/keymaps/mekberg/config.h
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
Copyright 2019 Ryota Goto
|
||||
|
||||
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 some configuration for modtap behavior
|
||||
// #define TAPPING_TERM 150
|
||||
#define PERMISSIVE_HOLD
|
97
keyboards/ai03/polaris/keymaps/mekberg/keymap.c
Normal file
97
keyboards/ai03/polaris/keymaps/mekberg/keymap.c
Normal file
@ -0,0 +1,97 @@
|
||||
/* Copyright 2019 Ryota Goto
|
||||
*
|
||||
* 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
|
||||
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_NAV,
|
||||
_FN
|
||||
};
|
||||
|
||||
#define MY_LOCK C(LCMD(KC_L)) // Mac: Custom lock hotkey in BTT (when Alt/Command have been swapped in macOS)
|
||||
|
||||
/*
|
||||
KBD6x ANSI physical layout
|
||||
1u == 8chars
|
||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
| | | | | | | | | | | | | | | |
|
||||
|─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
| 1,5u | | | | | | | | | | | | | 1,5u |
|
||||
|─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
| 1,75u | | | | | | | | | | | | 1,25u |
|
||||
|─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
| 2,25u | | | | | | | | | | | 1,75u | |
|
||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
| | 1,25u | | 1,25u | |
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_60_tsangan_hhkb(
|
||||
// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
// | | | | | | | | | | | | | | | |
|
||||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NUBS, KC_RBRC,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,5u | | | | | | | | | | | | | 1,5u |
|
||||
LT(_NAV,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_NUHS, KC_BSPC,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,75u | | | | | | | | | | | | 1,25u |
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,25u | | | | | | | | | | | 1,75u | |
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
|
||||
// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
// | | 1,25u | | 1,25u | |
|
||||
XXXXXXX, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, KC_RGUI, XXXXXXX
|
||||
// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
),
|
||||
[_NAV] = LAYOUT_60_tsangan_hhkb(
|
||||
// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
// | | | | | | | | | | | | | | | |
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, KC_BSPC,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,5u | | | | | | | | | | | | | 1,5u |
|
||||
_______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_UP, KC_PGUP, KC_HOME, _______, _______, KC_DEL,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,75u | | | | | | | | | | | | 1,25u |
|
||||
_______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,25u | | | | | | | | | | | 1,75u | |
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
// | | 1,25u | | 1,25u | |
|
||||
XXXXXXX, _______, _______, _______, _______, _______, XXXXXXX
|
||||
// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
),
|
||||
[_FN] = LAYOUT_60_tsangan_hhkb(
|
||||
// ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
// | | | | | | | | | | | | | | | |
|
||||
RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,5u | | | | | | | | | | | | | 1,5u |
|
||||
_______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,75u | | | | | | | | | | | | 1,25u |
|
||||
KC_RCTL, KC_VOLD, KC_VOLU, KC_MUTE, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, MY_LOCK,
|
||||
// |─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────|
|
||||
// | 1,25u | | | | | | | | | | | 1,75u | |
|
||||
_______, BL_TOGG, BL_INC, BL_DEC, BL_STEP, _______, _______, _______, KC_MRWD, KC_MFFD, _______, _______, _______,
|
||||
// └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
// | | 1,25u | | 1,25u | |
|
||||
XXXXXXX, _______, _______, KC_MPLY, _______, _______, XXXXXXX
|
||||
// └────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
),
|
||||
};
|
14
keyboards/ai03/polaris/keymaps/mekberg/readme.md
Normal file
14
keyboards/ai03/polaris/keymaps/mekberg/readme.md
Normal file
@ -0,0 +1,14 @@
|
||||
# General Information
|
||||
|
||||
This is more or less a HHKB base layout, but with completely different Fn layers. I don't use most of the HHKB secondary key positions because, honestly, they make no sense to me at all.
|
||||
|
||||
Fn key layer is focused mostly on keyboard firmware features (like RGB) as well as some of the necessary alternate functions. It also hold media controls, F-keys and Reset.
|
||||
|
||||
Left Tab-Hold layer is focused on nav cluster functionality, and turns Backspace into Delete (and moves Backspace up into the top right 1u position).
|
||||
|
||||
|
||||
# Build instructions
|
||||
|
||||
To simply build the firmware file: `make clean && make ai03/polaris:mekberg`
|
||||
|
||||
To build and immediately flash: `make clean && make ai03/polaris:mekberg:flash`
|
2
keyboards/ai03/polaris/keymaps/mekberg/rules.mk
Normal file
2
keyboards/ai03/polaris/keymaps/mekberg/rules.mk
Normal file
@ -0,0 +1,2 @@
|
||||
BACKLIGHT_ENABLE = no # Disable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Disable keyboard RGB underglow
|
117
keyboards/anavi/macropad8/keymaps/kicad/keymap.c
Normal file
117
keyboards/anavi/macropad8/keymaps/kicad/keymap.c
Normal file
@ -0,0 +1,117 @@
|
||||
/* Copyright 2020 Leon Anavi <leon@anavi.org>
|
||||
*
|
||||
* 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
|
||||
|
||||
#define _SCH 0
|
||||
#define _PCB 1
|
||||
#define _FN 2
|
||||
|
||||
#define KC_X0 LT(_FN, KC_ESC)
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
// How long (in ms) to wait between animation steps for the rainbow mode
|
||||
const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {60, 30, 15};
|
||||
// How long (in milliseconds) to wait between animation steps for each of the "Swirling rainbow" animations
|
||||
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {20, 10, 4};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The keymap contains 2 layers for KiCad hotkeys and a 3rd layer
|
||||
* for controlling the backlighting and the underlighting.
|
||||
*
|
||||
* - Layer for KiCad Schematic hotkeys:
|
||||
* m - to move selected component
|
||||
* r - to rotate selected component
|
||||
* w - to wire components
|
||||
* v - to edit component value
|
||||
* F1 - zoom in
|
||||
* F2 - zoom out
|
||||
* F4 - zoom center
|
||||
*
|
||||
* - Layer for KiCad PCB layout hotkets:
|
||||
* m - to move selected component
|
||||
* r - to rotate selected component
|
||||
* x - to route a new track
|
||||
* v - to add a via
|
||||
* F1 - zoom in
|
||||
* F2 - zoom out
|
||||
* F4 - zoom center
|
||||
*
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_SCH] = LAYOUT_ortho_2x4(
|
||||
KC_M, KC_R, KC_W, KC_V,
|
||||
KC_F1, KC_F2, KC_F4, TO(_PCB)
|
||||
),
|
||||
|
||||
[_PCB] = LAYOUT_ortho_2x4(
|
||||
KC_M, KC_R, KC_X, KC_V,
|
||||
KC_F1, KC_F2, KC_F4, TO(_FN)
|
||||
),
|
||||
|
||||
[_FN] = LAYOUT_ortho_2x4(
|
||||
RGB_TOG, RGB_MOD, RGB_M_R, RGB_M_SN,
|
||||
BL_TOGG, BL_STEP, BL_BRTG, TO(_SCH)
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
|
||||
}
|
||||
|
||||
void oled_task_user(void) {
|
||||
// Host Keyboard Layer Status
|
||||
oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false);
|
||||
oled_write_P(PSTR("Layer: "), false);
|
||||
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _SCH:
|
||||
oled_write_ln_P(PSTR("KiCad Schema"), false);
|
||||
break;
|
||||
case _PCB:
|
||||
oled_write_ln_P(PSTR("KiCad PCB"), false);
|
||||
break;
|
||||
case _FN:
|
||||
oled_write_ln_P(PSTR("FN "), false);
|
||||
break;
|
||||
default:
|
||||
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
||||
oled_write_ln_P(PSTR("N/A"), false);
|
||||
}
|
||||
|
||||
// Host Keyboard LED Status
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
oled_write_P(PSTR("Num Lock: "), false);
|
||||
oled_write_ln_P(led_state.num_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Caps Lock: "), false);
|
||||
oled_write_ln_P(led_state.caps_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Scroll Lock: "), false);
|
||||
oled_write_ln_P(led_state.scroll_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Backlit: "), false);
|
||||
oled_write_ln_P(is_backlight_enabled() ? PSTR("On") : PSTR("Off"), false);
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
static char rgbStatusLine1[26] = {0};
|
||||
snprintf(rgbStatusLine1, sizeof(rgbStatusLine1), "RGB Mode: %d", rgblight_get_mode());
|
||||
oled_write_ln(rgbStatusLine1, false);
|
||||
static char rgbStatusLine2[26] = {0};
|
||||
snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val());
|
||||
oled_write_ln(rgbStatusLine2, false);
|
||||
#endif
|
||||
}
|
||||
#endif
|
97
keyboards/anavi/macropad8/keymaps/obs/keymap.c
Normal file
97
keyboards/anavi/macropad8/keymaps/obs/keymap.c
Normal file
@ -0,0 +1,97 @@
|
||||
/* Copyright 2020 Leon Anavi <leon@anavi.org>
|
||||
*
|
||||
* 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
|
||||
|
||||
#define _MAIN 0
|
||||
#define _FN 1
|
||||
|
||||
#define KC_X0 LT(_FN, KC_ESC)
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
// How long (in ms) to wait between animation steps for the rainbow mode
|
||||
const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {60, 30, 15};
|
||||
// How long (in milliseconds) to wait between animation steps for each of the "Swirling rainbow" animations
|
||||
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {20, 10, 4};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* This keymap contains the following shortcuts for OBS:
|
||||
*
|
||||
* - Shortcuts useful for switching scenes on the 1st row:
|
||||
* Hold Left Control, Shift, Alt and GUI and press F9
|
||||
* Hold Left Control, Shift, Alt and GUI and press F10
|
||||
* Hold Left Control, Shift, Alt and GUI and press F11
|
||||
* Hold Left Control, Shift, Alt and GUI and press F12
|
||||
* - Center to screen: Ctrl+D
|
||||
* - Fit to screen: Ctrl+F
|
||||
* - Move source to top of sources list: Ctrl+Home
|
||||
*/
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAIN] = LAYOUT_ortho_2x4(
|
||||
HYPR(KC_F9), HYPR(KC_F10), HYPR(KC_F11), HYPR(KC_F12),
|
||||
LCTL(KC_D), LCTL(KC_F), LCTL(KC_HOME), MO(_FN)
|
||||
),
|
||||
|
||||
[_FN] = LAYOUT_ortho_2x4(
|
||||
RGB_TOG, RGB_MOD, RGB_M_R, RGB_M_SN,
|
||||
BL_TOGG, BL_STEP, BL_BRTG, _______
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef OLED_DRIVER_ENABLE
|
||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
|
||||
}
|
||||
|
||||
void oled_task_user(void) {
|
||||
// Host Keyboard Layer Status
|
||||
oled_write_ln_P(PSTR("ANAVI Macro Pad 8"), false);
|
||||
oled_write_P(PSTR("Active layer: "), false);
|
||||
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case _MAIN:
|
||||
oled_write_ln_P(PSTR("OBS"), false);
|
||||
break;
|
||||
case _FN:
|
||||
oled_write_ln_P(PSTR("FN"), false);
|
||||
break;
|
||||
default:
|
||||
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
||||
oled_write_ln_P(PSTR("N/A"), false);
|
||||
}
|
||||
|
||||
// Host Keyboard LED Status
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
oled_write_P(PSTR("Num Lock: "), false);
|
||||
oled_write_ln_P(led_state.num_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Caps Lock: "), false);
|
||||
oled_write_ln_P(led_state.caps_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Scroll Lock: "), false);
|
||||
oled_write_ln_P(led_state.scroll_lock ? PSTR("On") : PSTR("Off"), false);
|
||||
oled_write_P(PSTR("Backlit: "), false);
|
||||
oled_write_ln_P(is_backlight_enabled() ? PSTR("On") : PSTR("Off"), false);
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
static char rgbStatusLine1[26] = {0};
|
||||
snprintf(rgbStatusLine1, sizeof(rgbStatusLine1), "RGB Mode: %d", rgblight_get_mode());
|
||||
oled_write_ln(rgbStatusLine1, false);
|
||||
static char rgbStatusLine2[26] = {0};
|
||||
snprintf(rgbStatusLine2, sizeof(rgbStatusLine2), "h:%d s:%d v:%d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val());
|
||||
oled_write_ln(rgbStatusLine2, false);
|
||||
#endif
|
||||
}
|
||||
#endif
|
@ -1,2 +1 @@
|
||||
VIA_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
@ -1,42 +0,0 @@
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include QMK_KEYBOARD_CONFIG_H
|
||||
|
||||
#define PREVENT_STUCK_MODIFIERS
|
||||
#define SPACE_COUNT 2
|
||||
|
||||
#define TEMPLATE( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
|
||||
K40, K41, K42, K44, K45, K46, K48, K49, K4B, K4C \
|
||||
) LAYOUT( \
|
||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
|
||||
K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
|
||||
K10, K41, K42, K30, K44, K1D, K20, K45, K3C, K0D, K2B, K3D \
|
||||
)
|
||||
|
||||
#define TEMPLATE_NUM( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
|
||||
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
|
||||
K40, K41, K42, K44, K45, K46, K48, K49, K4B, K4C \
|
||||
) LAYOUT( \
|
||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
|
||||
K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, \
|
||||
K10, K41, K42, K30, K44, K1D, K20, K45, K48, K49, K2B, K3D \
|
||||
)
|
||||
|
||||
|
||||
#define TEMPLATE_RESET LAYOUT( \
|
||||
RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||
)
|
||||
#endif
|
53
keyboards/atreus/keymaps/talljoe/config.h
Normal file
53
keyboards/atreus/keymaps/talljoe/config.h
Normal file
@ -0,0 +1,53 @@
|
||||
/* Copyright 2020 Joseph Wasson
|
||||
*
|
||||
* 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 SPACE_COUNT 3
|
||||
|
||||
#define TEMPLATE_TKL( \
|
||||
KESC, KF01, KF02, KF03, KF04, KF05, KF06, KF07, KF08, KF09, KF10, KF11, KF12, KSCL, KPRS, KADJ, \
|
||||
KGRV, K_1 , K_2 , K_3 , K_4 , K_5 , K_6 , K_7 , K_8 , K_9 , K_0 , KMIN, KEQL, KBSP, KINS, KHOM, KPUP, \
|
||||
KTAB, K_Q , K_W , K_E , K_R , K_T , K_Y , K_U , K_I , K_O , K_P , KLBR, KRBR, KBLS, KDEL, KEND, LPDN, \
|
||||
KCAP, K_A , K_S , K_D , K_F , K_G , K_H , K_J , K_K , K_L , KSMI, KQUO, KENT, \
|
||||
KLSH, K_Z , K_X , K_C , K_V , K_B , K_N , K_M , KCMA, KDOT, KSLS, KRSH, K_UP, \
|
||||
KLCT, KLOS, KLAL, KSP3, KSP2, KSP1, KRAL, KROS, KRCT, KPTT, K_LT, K_DN, K_RT \
|
||||
) LAYOUT( \
|
||||
K_Q , K_W , K_E , K_R , K_T , K_Y , K_U , K_I , K_O , K_P , \
|
||||
K_A , K_S , K_D , K_F , K_G , K_H , K_J , K_K , K_L , KSMI, \
|
||||
K_Z , K_X , K_C , K_V , K_B , K_N , K_M , KCMA, KDOT, KSLS, \
|
||||
KTAB, KLOS, KLAL, KLSH, KSP3, KSP2, KCAP, KSP1, KRSH, KBLS, KQUO, KADJ \
|
||||
)
|
||||
|
||||
#define TEMPLATE_NUM( \
|
||||
KGRV, K_1 , K_2 , K_3 , K_4 , K_5 , K_6 , K_7 , K_8 , K_9 , K_0 , KMIN, KEQL, KBSL, KESC, \
|
||||
KTAB, K_Q , K_W , K_E , K_R , K_T , K_Y , K_U , K_I , K_O , K_P , KLBR, KRBR, KBSP, \
|
||||
KCAP, K_A , K_S , K_D , K_F , K_G , K_H , K_J , K_K , K_L , KSMI, KQUO, KENT, \
|
||||
KLSH, K_Z , K_X , K_C , K_V , K_B , K_N , K_M , KCMA, KDOT, KSLS, KRSH, KADJ, \
|
||||
KLCT, KLOS, KLAL, KSP3, KSP2, KSP1, KRAL, KROS, KRCT, KPTT \
|
||||
) LAYOUT( \
|
||||
K_Q , K_W , K_E , K_R , K_T , K_Y , K_U , K_I , K_O , K_P , \
|
||||
K_A , K_S , K_D , K_F , K_G , K_H , K_J , K_K , K_L , KSMI, \
|
||||
K_Z , K_X , K_C , K_V , K_B , K_N , K_M , KCMA, KDOT, KSLS, \
|
||||
KTAB, KLOS, KLAL, KLSH, KSP3, KSP2, KCAP, KSP1, KRAL, KROS, KQUO, KADJ \
|
||||
)
|
||||
|
||||
#define TEMPLATE_RESET LAYOUT( \
|
||||
RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
|
||||
RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET , XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX \
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
|
||||
EXTRAKEY_ENABLE = no
|
||||
CONSOLE_ENABLE = no
|
||||
|
173
keyboards/cannonkeys/tmov2/keymaps/brandonschlack/keymap.c
Normal file
173
keyboards/cannonkeys/tmov2/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,173 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
/**
|
||||
* Layer Names
|
||||
*
|
||||
* Layers mostly used for macro keys
|
||||
*/
|
||||
#define _REEDER _M1
|
||||
#define _NAV _M2
|
||||
#define _MOUSE _M3
|
||||
|
||||
/**
|
||||
* Keycodes & Macros
|
||||
*/
|
||||
#define TG_BASE TO(_BASE)
|
||||
#define TG_REDR TO(_REEDER)
|
||||
#define TG_NAV TO(_NAV)
|
||||
#define TG_MOUS TO(_MOUSE)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/**
|
||||
* Base
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Esc│││Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│Bck│
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │PgU│││HyEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │PgD│││Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shft│ Fn│
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │End│││││││││││Opt│Cmd │ │ │ Cmd│Ctl│││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_default(
|
||||
KC_ESC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, \
|
||||
KC_PGUP, HY_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
|
||||
KC_PGDN, KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, PLY_FN1, \
|
||||
KC_END, KC_LOPT, KC_LCMD, SPC_RAI, SPC_RAI, KC_RCMD, KC_RCTL \
|
||||
),
|
||||
/**
|
||||
* Reeder
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ P │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ K │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ J │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │ N │││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_REEDER] = LAYOUT_default( \
|
||||
KC_P, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_K, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_J, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_N, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Nav
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │ → │││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │ ← │││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_NAV] = LAYOUT_default( \
|
||||
KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_LEFT, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Mouse
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │WhU│││ │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │ ↑ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │ ↓ │││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │WhD│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_MOUSE] = LAYOUT_default( \
|
||||
MC_WH_U, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
KC_DOWN, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
MC_WH_D, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Lower
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Nxt│││Del │BrD│BrU│Msn│LHP│ │ │ │ │ │ │ ↑ │Mut│SlD│
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │VlU│││HyCaps│ │ │NxW│PvT│Bck│Fwd│NxT│ │ │ ← │ → │ Play │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │VlD│││ │ │ │ │1PX│1Ps│ │ │ │ │ ↓ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │Prv│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_default( \
|
||||
KC_MNXT, KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, _______, _______, _______, KC_UP, KC_MUTE, MC_SLPD, \
|
||||
KC_VOLU, HY_CAPS, _______, _______, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, _______, _______, KC_LEFT, KC_RGHT, KC_MPLY, \
|
||||
KC_VOLD, _______, XXXXXXX, _______, _______, _______, PX_AFLL, OP_AFLL, _______, _______, _______, _______, KC_DOWN, _______, _______, \
|
||||
KC_MPRV, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
|
||||
/**
|
||||
* Raise
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Hom│││~ ` │! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │PgU│││ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │PgD│││ │ F7│ F8│ F9│F10│F11│F12│ │ │ │| \│ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │End│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_default( \
|
||||
KC_HOME, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, \
|
||||
KC_PGUP, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, _______, _______, _______, _______, \
|
||||
KC_PGDN, _______, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, KC_BSLS, _______, _______, \
|
||||
KC_END, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/**
|
||||
* Adjust
|
||||
* ┌───┬┬┬─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
|
||||
* │Bse│││Make │ │ │EEP│RST│ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴───┤
|
||||
* │Rdr│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴──┬───┤
|
||||
* │Nav│││ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├───┼┼┼┬┬┬┬┬┬┬┬┴──┬┴───┴┬──┴───┴─┬─┴───┴───┴┬──┴──┬┴──┬┼┬┬┬┬┼┬┬┬┤
|
||||
* │Mse│││││││││││ │ │ │ │ │ │││││││││││
|
||||
* └───┴┴┴┴┴┴┴┴┴┴┴───┴─────┴────────┴──────────┴─────┴───┴┴┴┴┴┴┴┴┴┴┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_default( \
|
||||
TG_BASE, QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_REDR, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_NAV, _______, XXXXXXX, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
TG_MOUS, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
};
|
||||
|
||||
void keyboard_post_init_keymap(void) {
|
||||
rgblight_disable_noeeprom();
|
||||
}
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
@ -19,17 +19,17 @@
|
||||
{"label":"K09 (D2,B1)", "x":9, "y":0},
|
||||
{"label":"K0A (D2,F7)", "x":10, "y":0},
|
||||
{"label":"K0B (D2,F6)", "x":11, "y":0},
|
||||
{"label":"K10 (D3,D4)", "x":0, "y":1, "w":1.25},
|
||||
{"label":"K11 (D3,C6)", "x":1.25, "y":1},
|
||||
{"label":"K12 (D3,D7)", "x":2.25, "y":1},
|
||||
{"label":"K13 (D3,E6)", "x":3.25, "y":1},
|
||||
{"label":"K14 (D3,B4)", "x":4.25, "y":1},
|
||||
{"label":"K15 (D3,B5)", "x":5.25, "y":1},
|
||||
{"label":"K16 (D3,B6)", "x":6.25, "y":1},
|
||||
{"label":"K17 (D3,B2)", "x":7.25, "y":1},
|
||||
{"label":"K18 (D3,B3)", "x":8.25, "y":1},
|
||||
{"label":"K19 (D3,B1)", "x":9.25, "y":1},
|
||||
{"label":"K1B (D3,F6)", "x":10.25, "y":1, "w":1.75},
|
||||
{"label":"K10 (D3,D4)", "x":0, "y":1, "w":1.5},
|
||||
{"label":"K11 (D3,C6)", "x":1.5, "y":1},
|
||||
{"label":"K12 (D3,D7)", "x":2.5, "y":1},
|
||||
{"label":"K13 (D3,E6)", "x":3.5, "y":1},
|
||||
{"label":"K14 (D3,B4)", "x":4.5, "y":1},
|
||||
{"label":"K15 (D3,B5)", "x":5.5, "y":1},
|
||||
{"label":"K16 (D3,B6)", "x":6.5, "y":1},
|
||||
{"label":"K17 (D3,B2)", "x":7.5, "y":1},
|
||||
{"label":"K18 (D3,B3)", "x":8.5, "y":1},
|
||||
{"label":"K19 (D3,B1)", "x":9.5, "y":1},
|
||||
{"label":"K1B (D3,F6)", "x":10.5, "y":1, "w":1.5},
|
||||
{"label":"K20 (D0,D4)", "x":0, "y":2},
|
||||
{"label":"K21 (D0,C6)", "x":1, "y":2},
|
||||
{"label":"K22 (D0,D7)", "x":2, "y":2},
|
||||
|
@ -1,3 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
@ -0,0 +1,60 @@
|
||||
/* Copyright 2019 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │Esc│! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│_ -│+ =│ Bckspc│Hom│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{ [│} ]│| \│PgU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │HyCaps│ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter│PgD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│ Shift│ Up│End│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │Ctrl│ Opt│ Cmd│ Space │ Cmd │FnPly│Lef│Dow│Rig│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_65_ansi_2_right_mods( \
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, \
|
||||
HY_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, PLY_FN1, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
/* Function Layer
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐
|
||||
* │` ~│ F1│ F2│ F3│ F4│ F5│ F6│ F7│ F8│ F9│F10│F11│F12│ Del │SlD│
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │F13│F14│F15│ LHP │VlU│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │VlD│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
|
||||
* │ │ │ │ │ │RST│ │Mke│Prv│Nxt│Ply│ │PgU│Mut│
|
||||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴──┬───┼───┼───┤
|
||||
* │ │ │ │ │ │ │Hom│PgD│End│
|
||||
* └────┴────┴────┴────────────────────────┴─────┴─────┴───┴───┴───┘
|
||||
*/
|
||||
[_FN1] = LAYOUT_65_ansi_2_right_mods( \
|
||||
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DELT, MC_SLPD, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F13, KC_F14, KC_F15, MC_LHPD, KC_VOLU, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, \
|
||||
_______, _______, _______, _______, _______, RESET, _______, QM_MAKE, KC_MPRV, KC_MNXT, KC_MPLY, _______, KC_PGUP, KC_MUTE, \
|
||||
_______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||
)
|
||||
};
|
@ -1,3 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
111
keyboards/coseyfannitutti/romeo/keymaps/brandonschlack/keymap.c
Normal file
111
keyboards/coseyfannitutti/romeo/keymaps/brandonschlack/keymap.c
Normal file
@ -0,0 +1,111 @@
|
||||
/* Copyright 2020 Brandon Schlack
|
||||
*
|
||||
* 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 "brandonschlack.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Base Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ Bspc│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyEsc │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Enter│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│ ?/Sft│
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │Ctrl│Opt│Cmd│ Space │ Cmd│Opt│ Lwr│
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_BASE] = LAYOUT_ansi_40( \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
HY_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, SF_SLSH, \
|
||||
KC_LCTL, KC_LOPT, KC_LCMD, SPC_RAI, KC_RCMD, KC_ROPT, LOWER \
|
||||
),
|
||||
/* Lower
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Del │BrD│BrU│Msn│LHP│ │ │ │PgU│Hom│End│ SlpD│
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │HyCaps│Mut│VlU│NxW│PvT│Bck│Fwd│NxT│PgD│ ↑ │ Play│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │Prv│VlD│Nxt│1PX│1Ps│ │ ← │ ↓ │ → │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_LOWER] = LAYOUT_ansi_40( \
|
||||
KC_DELT, KC_BRMD, KC_BRMU, MC_MSSN, MC_LHPD, _______, _______, _______, KC_PGUP, KC_HOME, KC_END, MC_SLPD, \
|
||||
HY_CAPS, KC_MUTE, KC_VOLU, NXT_WIN, PRV_TAB, MC_BACK, MC_FWRD, NXT_TAB, KC_PGDN, KC_UP, KC_MPLY, \
|
||||
_______, KC_MPRV, KC_VOLD, KC_MNXT, PX_AFLL, OP_AFLL, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/* Raise
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │~ ` │! 1│@ 2│# 3│$ 4│% 5│^ 6│& 7│* 8│( 9│) 0│ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ F1│ F2│ F3│ F4│ F5│ F6│_ -│+ =│: ;│ " '│
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ F7│ F8│ F9│F10│F11│F12│ │{ [│} ]│ |\Sft│
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_RAISE] = LAYOUT_ansi_40( \
|
||||
KC_GRV, 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, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, \
|
||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_LBRC, KC_RBRC, SF_BSLS, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
),
|
||||
/* Adjust/Macro Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │Make │ │ │EEP│RST│ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
[_ADJUST] = LAYOUT_ansi_40( \
|
||||
QM_MAKE, _______, _______, EEP_RST, RESET, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
/* Blank Layer
|
||||
* ┌─────┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬─────┐
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬──────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┬───┼───┼───┴───┴───┴───┴───┴───┴┬──┴─┬─┴─┬────┤
|
||||
* │ │ │ │ │ │ │ │
|
||||
* └────┴───┴───┴────────────────────────┴────┴───┴────┘
|
||||
*/
|
||||
/*
|
||||
[BLANK] = LAYOUT_ansi_40( \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______ \
|
||||
)
|
||||
*/
|
||||
};
|
||||
|
||||
layer_state_t layer_state_set_keymap(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#define EE_HANDS
|
||||
|
||||
/* Limit max RGB LED current to avoid tripping controller fuse. */
|
||||
#undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
|
||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user