Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
7e655a207e | |||
55d37d9fbc | |||
27b0f8923e | |||
3da8d46a07 | |||
4db31fb374 | |||
3956b7c685 | |||
de5c8d86b4 | |||
7e68faa336 | |||
588b2329cb | |||
6fa88d981c | |||
12a07dae33 | |||
3235c8527d | |||
22ba36a4d8 | |||
50bc2dbe77 | |||
61ce41ae13 | |||
e4b5c44262 | |||
074be4fe5e | |||
670ff2d19f | |||
e95283b545 | |||
8725197ad6 | |||
d67b99ff3c | |||
7c2a7ab817 | |||
5b9667a4bf | |||
0cde880747 | |||
b09dc19d32 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -54,6 +54,7 @@ util/Win_Check_Output.txt
|
||||
.vscode/tasks.json
|
||||
.vscode/last.sql
|
||||
.vscode/temp.sql
|
||||
.vscode/ipch/
|
||||
.stfolder
|
||||
.tags
|
||||
|
||||
|
@ -334,9 +334,9 @@ SRC += $(KEYBOARD_SRC) \
|
||||
|
||||
# Search Path
|
||||
VPATH += $(KEYMAP_PATH)
|
||||
VPATH += $(USER_PATH)
|
||||
VPATH += $(KEYBOARD_PATHS)
|
||||
VPATH += $(COMMON_VPATH)
|
||||
VPATH += $(USER_PATH)
|
||||
|
||||
include common_features.mk
|
||||
include $(TMK_PATH)/protocol.mk
|
||||
|
@ -105,6 +105,7 @@ endif
|
||||
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
||||
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h
|
||||
OPT_DEFS += -DRGBLIGHT_ENABLE
|
||||
SRC += $(QUANTUM_DIR)/color.c
|
||||
SRC += $(QUANTUM_DIR)/rgblight.c
|
||||
CIE1931_CURVE = yes
|
||||
LED_BREATHING_TABLE = yes
|
||||
|
@ -63,6 +63,7 @@
|
||||
* [LED Matrix](feature_led_matrix.md)
|
||||
* [Macros](feature_macros.md)
|
||||
* [Mouse Keys](feature_mouse_keys.md)
|
||||
* [OLED Driver](feature_oled_driver)
|
||||
* [One Shot Keys](feature_advanced_keycodes.md#one-shot-keys)
|
||||
* [Pointing Device](feature_pointing_device.md)
|
||||
* [PS/2 Mouse](feature_ps2_mouse.md)
|
||||
|
@ -330,6 +330,8 @@ Use these to enable or disable building certain features. The more you have enab
|
||||
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
||||
* `NO_USB_STARTUP_CHECK`
|
||||
* Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
|
||||
* `LINK_TIME_OPTIMIZATION_ENABLE`
|
||||
= Enables Link Time Optimization (`LTO`) when compiling the keyboard. This makes the process take longer, but can significantly reduce the compiled size (and since the firmware is small, the added time is not noticable). However, this will automatically disable the old Macros and Functions features automatically, as these break when `LTO` is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`
|
||||
|
||||
## USB Endpoint Limitations
|
||||
|
||||
|
@ -114,7 +114,7 @@ The following options can be used to tweak the various animations:
|
||||
|`RGBLIGHT_EFFECT_RGB_TEST` |*Not defined*|If defined, enable RGB test animation mode. |
|
||||
|`RGBLIGHT_EFFECT_ALTERNATING` |*Not defined*|If defined, enable alternating animation mode. |
|
||||
|`RGBLIGHT_ANIMATIONS` |*Not defined*|If defined, enables all additional animation modes |
|
||||
|`RGBLIGHT_EFFECT_BREATHE_CENTER` |`1.85` |Used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
|
||||
|`RGBLIGHT_EFFECT_BREATHE_CENTER` |*Not defined*|If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7 |
|
||||
|`RGBLIGHT_EFFECT_BREATHE_MAX` |`255` |The maximum brightness for the breathing mode. Valid values are 1 to 255 |
|
||||
|`RGBLIGHT_EFFECT_SNAKE_LENGTH` |`4` |The number of LEDs to light up for the "Snake" animation |
|
||||
|`RGBLIGHT_EFFECT_KNIGHT_LENGTH` |`3` |The number of LEDs to light up for the "Knight" animation |
|
||||
@ -145,7 +145,7 @@ const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {100, 50, 20};
|
||||
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31};
|
||||
|
||||
// These control which hues are selected for each of the "Static gradient" modes
|
||||
const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90};
|
||||
const uint8_t RGBLED_GRADIENT_RANGES[] PROGMEM = {255, 170, 127, 85, 64};
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
@ -158,7 +158,7 @@ void inline ws2812_setled(int i, uint8_t r, uint8_t g, uint8_t b)
|
||||
|
||||
void ws2812_setled_all (uint8_t r, uint8_t g, uint8_t b)
|
||||
{
|
||||
for (int i = 0; i < RGBLED_NUM; i++) {
|
||||
for (int i = 0; i < sizeof(led)/sizeof(led[0]); i++) {
|
||||
led[i].r = r;
|
||||
led[i].g = g;
|
||||
led[i].b = b;
|
||||
|
15
keyboards/bm16s/bm16s.h
Executable file
15
keyboards/bm16s/bm16s.h
Executable file
@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ortho_4x4( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K20, K21, K22, K23, \
|
||||
K30, K31, K32, K33 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03 }, \
|
||||
{ K10, K11, K12, K13 }, \
|
||||
{ K20, K21, K22, K23 }, \
|
||||
{ K30, K31, K32, K33 } \
|
||||
}
|
46
keyboards/bm16s/config.h
Executable file
46
keyboards/bm16s/config.h
Executable file
@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x6060
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER KPrepublic
|
||||
#define PRODUCT bm16s
|
||||
#define DESCRIPTION KPrepublic bm16s
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 4
|
||||
|
||||
/* key matrix pins */
|
||||
#define MATRIX_ROW_PINS { D1, D0, D3, D2 }
|
||||
#define MATRIX_COL_PINS { F7, F6, D4, D6 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
#ifdef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
#endif
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
#define RGB_DI_PIN E2
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 16
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
30
keyboards/bm16s/info.json
Normal file
30
keyboards/bm16s/info.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"keyboard_name": "bm16s",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 4,
|
||||
"height": 4,
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_4x4": {
|
||||
"key_count": 16,
|
||||
"layout": [
|
||||
{"x":0, "y":0},
|
||||
{"x":1, "y":0},
|
||||
{"x":2, "y":0},
|
||||
{"x":3, "y":0},
|
||||
{"x":0, "y":1},
|
||||
{"x":1, "y":1},
|
||||
{"x":2, "y":1},
|
||||
{"x":3, "y":1},
|
||||
{"x":0, "y":2},
|
||||
{"x":1, "y":2},
|
||||
{"x":2, "y":2},
|
||||
{"x":3, "y":2},
|
||||
{"x":0, "y":3},
|
||||
{"x":1, "y":3},
|
||||
{"x":2, "y":3},
|
||||
{"x":3, "y":3}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
16
keyboards/bm16s/keymaps/default/keymap.c
Executable file
16
keyboards/bm16s/keymaps/default/keymap.c
Executable file
@ -0,0 +1,16 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_ortho_4x4(
|
||||
KC_KP_7, KC_KP_8, KC_KP_9, MO(1), \
|
||||
KC_KP_4, KC_KP_5, KC_KP_6, KC_PMNS, \
|
||||
KC_KP_1, KC_KP_2, KC_KP_3, KC_PPLS, \
|
||||
KC_KP_0, KC_PDOT, KC_PCMM, KC_PENT \
|
||||
),
|
||||
[1] = LAYOUT_ortho_4x4(
|
||||
RESET, BL_STEP, _______, KC_VOLU, \
|
||||
BL_TOGG, BL_DEC, BL_INC, KC_VOLD, \
|
||||
RGB_TOG, RGB_MOD, RGB_HUI, KC_MUTE, \
|
||||
RGB_SAI, RGB_SAD, RGB_HUD, _______ \
|
||||
),
|
||||
};
|
20
keyboards/bm16s/keymaps/media/keymap.c
Executable file
20
keyboards/bm16s/keymaps/media/keymap.c
Executable file
@ -0,0 +1,20 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define RGB_BRU RGB_VAI
|
||||
#define RGB_BRD RGB_VAD
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT_ortho_4x4(
|
||||
KC_BRIU, _______, _______, KC_VOLU, \
|
||||
KC_BRID, _______, _______, KC_VOLD, \
|
||||
_______, _______, _______, KC_MUTE, \
|
||||
KC_MPRV, KC_MPLY, KC_MNXT, MO(1) \
|
||||
),
|
||||
[1] = LAYOUT_ortho_4x4(
|
||||
RESET, _______, _______, _______, \
|
||||
RGB_SPD, RGB_BRU, RGB_SPI, _______, \
|
||||
RGB_RMOD, RGB_BRD, RGB_MOD, _______, \
|
||||
RGB_TOG, _______, _______, _______ \
|
||||
),
|
||||
};
|
13
keyboards/bm16s/readme.md
Normal file
13
keyboards/bm16s/readme.md
Normal file
@ -0,0 +1,13 @@
|
||||
# bm16s
|
||||
|
||||
A 16-key macropad, with USB C and per-key RGB backlighting. This is a variant of the BM16A, but with low profile Choc switches.
|
||||
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: The PCBs, controllers supported
|
||||
Hardware Availability: [KPrepublic](https://kprepublic.com/collections/pcb/products/bm16s-16-keys-custom-mechanical-keyboard-pcb-plate-programmed-numpad-layouts-qmk-firmware-with-rgb-switch-leds-choc-switch); [AliExpress](https://www.aliexpress.com/item/bm16s-16-keys-Custom-Mechanical-Keyboard-PCB-plate-programmed-numpad-layouts-qmk-firmware-with-rgb-switch/32999247908.html); [Massdrop](https://www.massdrop.com/buy/78169)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make bm16s:default
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
72
keyboards/bm16s/rules.mk
Executable file
72
keyboards/bm16s/rules.mk
Executable file
@ -0,0 +1,72 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Processor frequency.
|
||||
# This will define a symbol, F_CPU, in all source code files equal to the
|
||||
# processor frequency in Hz. You can then use this symbol in your source code to
|
||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
||||
# automatically to create a 32-bit value in your source code.
|
||||
#
|
||||
# This will be an integer division of F_USB below, as it is sourced by
|
||||
# F_USB after it has run through any CPU prescalers. Note that this value
|
||||
# does not *change* the processor frequency - it should merely be updated to
|
||||
# reflect the processor speed set externally so that the code can use accurate
|
||||
# software delays.
|
||||
F_CPU = 16000000
|
||||
|
||||
#
|
||||
# LUFA specific
|
||||
#
|
||||
# Target architecture (see library "Board Types" documentation).
|
||||
ARCH = AVR8
|
||||
|
||||
# Input clock frequency.
|
||||
# This will define a symbol, F_USB, in all source code files equal to the
|
||||
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
||||
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
||||
# at the end, this will be done automatically to create a 32-bit value in your
|
||||
# source code.
|
||||
#
|
||||
# If no clock division is performed on the input clock inside the AVR (via the
|
||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
||||
F_USB = $(F_CPU)
|
||||
|
||||
# Interrupt driven control endpoint task(+60)
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# atmega32a bootloadHID
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
|
||||
# If you don't know the bootloader type, then you can specify the
|
||||
# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
|
||||
# Teensy halfKay 512
|
||||
# Teensy++ halfKay 1024
|
||||
# Atmel DFU loader 4096
|
||||
# LUFA bootloader 4096
|
||||
# USBaspLoader 2048
|
||||
# OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
|
||||
LAYOUTS = ortho_4x4
|
56
keyboards/butterstick/butterstick.c
Normal file
56
keyboards/butterstick/butterstick.c
Normal file
@ -0,0 +1,56 @@
|
||||
/* Copyright 2019 Jeremy Bernhardt
|
||||
*
|
||||
* 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 "butterstick.h"
|
||||
|
||||
// Optional override functions below.
|
||||
// You can leave any or all of these undefined.
|
||||
// These are only required if you want to perform custom actions.
|
||||
|
||||
/*
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
*/
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
#ifdef DEBUG_MATRIX
|
||||
for (uint8_t c = 0; c < MATRIX_COLS; c++)
|
||||
for (uint8_t r = 0; r < MATRIX_ROWS; r++)
|
||||
if (matrix_is_on(r, c)) xprintf("r:%d c:%d \n", r, c);
|
||||
#endif
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
/*
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
// put your per-action keyboard code here
|
||||
// runs for every action, just before processing by the firmware
|
||||
|
||||
return process_record_user(keycode, record);
|
||||
}
|
||||
|
||||
void led_set_kb(uint8_t usb_led) {
|
||||
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
|
||||
*/
|
11
keyboards/butterstick/butterstick.h
Normal file
11
keyboards/butterstick/butterstick.h
Normal file
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_butter( \
|
||||
k09, k08, k07, k06, k05, k04, k03, k02, k01, k00, \
|
||||
k19, k18, k17, k16, k15, k14, k13, k12, k11, k10 \
|
||||
) { \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09}, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19}, \
|
||||
}
|
26
keyboards/butterstick/config.h
Normal file
26
keyboards/butterstick/config.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x1337
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER g Heavy Industries
|
||||
#define PRODUCT Butter Stick
|
||||
#define DESCRIPTION Its a stick of butter
|
||||
#define VERSION "Paula Deen"
|
||||
|
||||
#define DEBOUNCING_DELAY 5
|
||||
#define FORCE_NKRO
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 2
|
||||
#define MATRIX_COLS 10
|
||||
#define MATRIX_ROW_PINS { F4, F5 }
|
||||
#define MATRIX_COL_PINS { B0, B1, B2, B3, B4, B5, B6, B7, C6, C7}
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION ROW2COL
|
||||
|
183
keyboards/butterstick/keymaps/default/keymap.c
Normal file
183
keyboards/butterstick/keymaps/default/keymap.c
Normal file
@ -0,0 +1,183 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#include "sten.h"
|
||||
/*
|
||||
* Key names are inherited from steno machines
|
||||
* .-----------------------------------------------------.
|
||||
* | LSU | LFT | LP | LH | ST1 | RF | RP | RL | RT | RD |
|
||||
* |-----------------------------------------------------|
|
||||
* | LSD | LK | LW | LR | ST2 | RR | RB | RG | RS | RZ |
|
||||
* '-----------------------------------------------------'
|
||||
*/
|
||||
|
||||
// Function prefixes
|
||||
#define MEDIA (LSD | LK | LW | LR)
|
||||
#define FUNCT (LSD | LK | LP | LH)
|
||||
#define MOVE (LSU | LFT | LP | LH)
|
||||
#define SYMB (RD | RZ)
|
||||
#define NUMA (LW | LR)
|
||||
#define NUMB (RR | RB)
|
||||
|
||||
// QMK Layer Numbers
|
||||
#define BASE 0
|
||||
#define GAME 1
|
||||
|
||||
// Do not change QMK Layer 0! This is your main keyboard.
|
||||
// Make your QMK modifications to the later layers, to add
|
||||
// keys/customize on the first layer modify processQwerty():
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[BASE] = LAYOUT_butter(
|
||||
STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR,
|
||||
STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR
|
||||
),
|
||||
// I don't game don't roast me thanks
|
||||
[GAME] = LAYOUT_butter(
|
||||
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_ENT,
|
||||
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, TO(BASE)
|
||||
)
|
||||
};
|
||||
|
||||
// Note: You can only use basic keycodes here!
|
||||
// P() is just a wrapper to make your life easier, any C code can be executed.
|
||||
// Only the longest matched chord is run!
|
||||
//
|
||||
// http://docs.gboards.ca
|
||||
uint32_t processQwerty(bool lookup) {
|
||||
// SECRET AGENT CHORDS
|
||||
P( LSU | LK | RS | RD, SEND_STRING(VERSION); SEND_STRING(__DATE__));
|
||||
P( LSD | RZ, SEND(KC_SPC));
|
||||
|
||||
// Dual chords
|
||||
P( LP | LH, CLICK_MOUSE(KC_MS_BTN2));
|
||||
P( ST1 | RF, CLICK_MOUSE(KC_MS_BTN1));
|
||||
P( LSU | LFT, SEND(KC_ESC));
|
||||
P( LSD | LK, SEND(KC_LSFT));
|
||||
P( RZ | RS, SEND(KC_LSFT));
|
||||
P( ST2 | RR, SEND(KC_SPC));
|
||||
P( RP | RL, SEND(KC_LGUI));
|
||||
P( RT | RD, SEND(KC_LCTL));
|
||||
P( RL | RT, SEND(KC_LALT));
|
||||
P( LSU | LSD | LFT | LK, SEND(KC_LCTL));
|
||||
P( RS | RT | RD | RZ, SEND(KC_ENT));
|
||||
|
||||
// Function Layer
|
||||
P( FUNCT | RF, SEND(KC_F1));
|
||||
P( FUNCT | RP, SEND(KC_F2));
|
||||
P( FUNCT | RL, SEND(KC_F3));
|
||||
P( FUNCT | RT, SEND(KC_F4));
|
||||
P( FUNCT | RF | RR, SEND(KC_F5));
|
||||
P( FUNCT | RP | RB, SEND(KC_F6));
|
||||
P( FUNCT | RL | RG, SEND(KC_F7));
|
||||
P( FUNCT | RT | RS, SEND(KC_F8));
|
||||
P( FUNCT | RR, SEND(KC_F9));
|
||||
P( FUNCT | RB, SEND(KC_F10));
|
||||
P( FUNCT | RG, SEND(KC_F11));
|
||||
P( FUNCT | RS, SEND(KC_F12));
|
||||
|
||||
// Movement Layer
|
||||
P( MOVE | RF, SEND(KC_LEFT));
|
||||
P( MOVE | RP, SEND(KC_DOWN));
|
||||
P( MOVE | RL, SEND(KC_UP));
|
||||
P( MOVE | RT, SEND(KC_RIGHT));
|
||||
P( MOVE | ST1, SEND(KC_PGUP));
|
||||
P( MOVE | ST2, SEND(KC_PGDN));
|
||||
|
||||
// Media Layer
|
||||
P( MEDIA | RF, SEND(KC_MPRV));
|
||||
P( MEDIA | RP, SEND(KC_MPLY));
|
||||
P( MEDIA | RL, SEND(KC_MPLY));
|
||||
P( MEDIA | RT, SEND(KC_MNXT));
|
||||
P( MEDIA | RG, SEND(KC_VOLU));
|
||||
P( MEDIA | RB, SEND(KC_VOLD));
|
||||
P( MEDIA | RS, SEND(KC_MUTE));
|
||||
|
||||
// Number Row, Right
|
||||
P( NUMB | LSU, SEND(KC_1));
|
||||
P( NUMB | LFT, SEND(KC_2));
|
||||
P( NUMB | LP, SEND(KC_3));
|
||||
P( NUMB | LH, SEND(KC_4));
|
||||
P( NUMB | ST1, SEND(KC_5));
|
||||
P( NUMB | RF, SEND(KC_6));
|
||||
P( NUMB | RP, SEND(KC_7));
|
||||
P( NUMB | RL, SEND(KC_8));
|
||||
P( NUMB | RT, SEND(KC_9));
|
||||
P( NUMB | RD, SEND(KC_0));
|
||||
|
||||
// Number Row, Left
|
||||
P( NUMA | LSU, SEND(KC_1));
|
||||
P( NUMA | LFT, SEND(KC_2));
|
||||
P( NUMA | LP, SEND(KC_3));
|
||||
P( NUMA | LH, SEND(KC_4));
|
||||
P( NUMA | ST1, SEND(KC_5));
|
||||
P( NUMA | RF, SEND(KC_6));
|
||||
P( NUMA | RP, SEND(KC_7));
|
||||
P( NUMA | RL, SEND(KC_8));
|
||||
P( NUMA | RT, SEND(KC_9));
|
||||
P( NUMA | RD, SEND(KC_0));
|
||||
|
||||
|
||||
// Symbols and Numbers
|
||||
P( SYMB | LP | LW, SEND(KC_LSFT); SEND(KC_9)); // (
|
||||
P( SYMB | LH | LR, SEND(KC_LSFT); SEND(KC_0)); // )
|
||||
P( SYMB | ST1 | ST2, SEND(KC_GRV)); // `
|
||||
P( SYMB | RR | RF, SEND(KC_LSFT); SEND(KC_3)); // #
|
||||
P( SYMB | LFT | LK, SEND(KC_LSFT); SEND(KC_4)); // $
|
||||
P( SYMB | LSU, SEND(KC_LSFT); SEND(KC_1)); // !
|
||||
P( SYMB | LSD, SEND(KC_LSFT); SEND(KC_5)); // %
|
||||
P( SYMB | LFT, SEND(KC_LSFT); SEND(KC_2)); // @
|
||||
P( SYMB | LK, SEND(KC_LSFT); SEND(KC_6)); // ^
|
||||
P( SYMB | LP, SEND(KC_LSFT); SEND(KC_LBRC)); // {
|
||||
P( SYMB | LW, SEND(KC_LBRC));
|
||||
P( SYMB | LH, SEND(KC_LSFT); SEND(KC_RBRC)); // }
|
||||
P( SYMB | LR, SEND(KC_RBRC));
|
||||
P( SYMB | ST1, SEND(KC_LSFT); SEND(KC_BSLS)); // |
|
||||
P( SYMB | ST2, SEND(KC_LSFT); SEND(KC_GRV)); // ~
|
||||
P( SYMB | RP | RB, SEND(KC_QUOT));
|
||||
P( SYMB | RP | RG, SEND(KC_LSFT); SEND(KC_QUOT)); // "
|
||||
P( SYMB | RF, SEND(KC_KP_PLUS));
|
||||
P( SYMB | RR, SEND(KC_LSFT); SEND(KC_7)); // &
|
||||
P( SYMB | RP, SEND(KC_MINS));
|
||||
P( SYMB | RB, SEND(KC_EQL));
|
||||
P( SYMB | RL, SEND(KC_SLSH));
|
||||
P( SYMB | RG, SEND(KC_COMM));
|
||||
P( SYMB | RT, SEND(KC_PAST));
|
||||
P( SYMB | RS, SEND(KC_DOT));
|
||||
|
||||
// Letters
|
||||
P( LSU | LSD, SEND(KC_A));
|
||||
P( LFT | LK, SEND(KC_S));
|
||||
P( LP | LW, SEND(KC_D));
|
||||
P( LH | LR, SEND(KC_F));
|
||||
P( ST1 | ST2, SEND(KC_G));
|
||||
P( RF | RR, SEND(KC_H));
|
||||
P( RT | RS, SEND(KC_L));
|
||||
P( RD | RZ, SEND(KC_SCLN));
|
||||
P( RG | RL, SEND(KC_K));
|
||||
P( RP | RB, SEND(KC_J));
|
||||
P( LSU, SEND(KC_Q));
|
||||
P( LSD, SEND(KC_Z));
|
||||
P( LFT, SEND(KC_W));
|
||||
P( LK, SEND(KC_X));
|
||||
P( LP, SEND(KC_E));
|
||||
P( LW, SEND(KC_C));
|
||||
P( LH, SEND(KC_R));
|
||||
P( LR, SEND(KC_V));
|
||||
P( ST1, SEND(KC_T));
|
||||
P( ST2, SEND(KC_B));
|
||||
P( RF, SEND(KC_Y));
|
||||
P( RR, SEND(KC_N));
|
||||
P( RP, SEND(KC_U));
|
||||
P( RB, SEND(KC_M));
|
||||
P( RL, SEND(KC_I));
|
||||
P( RG, SEND(KC_COMM));
|
||||
P( RT, SEND(KC_O));
|
||||
P( RS, SEND(KC_DOT));
|
||||
P( RD, SEND(KC_P));
|
||||
P( RZ, SEND(KC_SLSH));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// Don't fuck with this, thanks.
|
||||
size_t keymapsCount = sizeof(keymaps)/sizeof(keymaps[0]);
|
0
keyboards/butterstick/keymaps/default/rules.mk
Normal file
0
keyboards/butterstick/keymaps/default/rules.mk
Normal file
14
keyboards/butterstick/readme.md
Normal file
14
keyboards/butterstick/readme.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Butter Stick
|
||||
|
||||

|
||||
|
||||
A chorded 20% keyboard packing full sized useage into your pocket. More info on [gboards.ca](http://docs.gboards.ca/Meet-Butter-Stick)!
|
||||
|
||||
Keyboard Maintainer: [Germ](https://github.com/germ)
|
||||
Hardware Availability: [g Heavy Industries](https://www.gboards.ca/product/butter-stick-limited-edition)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make butterstick:default
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
19
keyboards/butterstick/rules.mk
Normal file
19
keyboards/butterstick/rules.mk
Normal file
@ -0,0 +1,19 @@
|
||||
# MCU name
|
||||
MCU = atmega32u4
|
||||
F_CPU = 16000000
|
||||
ARCH = AVR8
|
||||
F_USB = $(F_CPU)
|
||||
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT -DONLYQWERTY -DDEBUG_MATRIX
|
||||
SRC += sten.c
|
||||
EXTRAFLAGS += -flto
|
||||
|
||||
|
||||
BOOTLOADER = atmel-dfu
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||
STENO_ENABLE = yes # Needed for chording
|
||||
|
367
keyboards/butterstick/sten.c
Normal file
367
keyboards/butterstick/sten.c
Normal file
File diff suppressed because it is too large
Load Diff
77
keyboards/butterstick/sten.h
Normal file
77
keyboards/butterstick/sten.h
Normal file
@ -0,0 +1,77 @@
|
||||
// 2019, g Heavy Industries
|
||||
// Blessed mother of Christ, please keep this readable
|
||||
// and protect us from segfaults. For thine is the clock,
|
||||
// the slave and the master. Until we return from main.
|
||||
//
|
||||
// Amen.
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "mousekey.h"
|
||||
#include "keymap.h"
|
||||
#include "keymap_steno.h"
|
||||
#include "wait.h"
|
||||
|
||||
extern size_t keymapsCount; // Total keymaps
|
||||
extern uint32_t cChord; // Current Chord
|
||||
|
||||
// Function defs
|
||||
void processChord(bool useFakeSteno);
|
||||
uint32_t processQwerty(bool lookup);
|
||||
uint32_t processFakeSteno(bool lookup);
|
||||
void saveState(uint32_t cChord);
|
||||
void restoreState(void);
|
||||
|
||||
// Macros for use in keymap.c
|
||||
void SEND(uint8_t kc);
|
||||
void REPEAT(void);
|
||||
void SET_STICKY(uint32_t);
|
||||
void SWITCH_LAYER(int);
|
||||
void CLICK_MOUSE(uint8_t);
|
||||
|
||||
// Keymap helper
|
||||
#define P(chord, act) if (cChord == (chord)) { if (!lookup) {act;} return chord;}
|
||||
|
||||
// Shift to internal representation
|
||||
// i.e) S(teno)R(ight)F
|
||||
#define STN(n) (1L<<n)
|
||||
enum ORDER {
|
||||
SFN = 0, SPWR, SST1, SST2, SST3, SST4, SNUML, SNUMR,
|
||||
SLSU, SLSD, SLT, SLK, SLP, SLW, SLH, SLR, SLA, SLO,
|
||||
SRE, SRU, SRF, SRR, SRP, SRB, SRL, SRG, SRT, SRS, SRD, SRZ, SRES1, SRES2
|
||||
};
|
||||
|
||||
// Break it all out
|
||||
#define FN STN(SFN)
|
||||
#define PWR STN(SPWR)
|
||||
#define ST1 STN(SST1)
|
||||
#define ST2 STN(SST2)
|
||||
#define ST3 STN(SST3)
|
||||
#define ST4 STN(SST4)
|
||||
#define LNO STN(SNUML) // STN1-6
|
||||
#define RNO STN(SNUMR) // STN7-C
|
||||
#define RES1 STN(SRES1) // Use reserved for sticky state
|
||||
#define RES2 STN(SRES2)
|
||||
|
||||
#define LSU STN(SLSU)
|
||||
#define LSD STN(SLSD)
|
||||
#define LFT STN(SLT) // (L)e(F)t (T), preprocessor conflict
|
||||
#define LK STN(SLK)
|
||||
#define LP STN(SLP)
|
||||
#define LW STN(SLW)
|
||||
#define LH STN(SLH)
|
||||
#define LR STN(SLR)
|
||||
#define LA STN(SLA)
|
||||
#define LO STN(SLO)
|
||||
|
||||
#define RE STN(SRE)
|
||||
#define RU STN(SRU)
|
||||
#define RF STN(SRF)
|
||||
#define RR STN(SRR)
|
||||
#define RP STN(SRP)
|
||||
#define RB STN(SRB)
|
||||
#define RL STN(SRL)
|
||||
#define RG STN(SRG)
|
||||
#define RT STN(SRT)
|
||||
#define RS STN(SRS)
|
||||
#define RD STN(SRD)
|
||||
#define RZ STN(SRZ)
|
@ -1,5 +1,12 @@
|
||||
# Default Doro67 ANSI layout.
|
||||
|
||||
**THIS IS THE DEFAULT ANSI KEYMAP (AVAILABILITY: CHINA + INTERNATIONAL GB)**
|
||||
The "multi" directory includes keymaps for the multi-layout PCB, which supports ANSI, ISO, and multi (split backspace & non-blocker).
|
||||
The keymap you choose from the "multi" directory must correspond to the integrated plate option you chose.
|
||||
|
||||
The multi-layout PCB and RGB pcb were the only two options available to NON-china buyers.
|
||||
If you purchased an RGB PCB, please see the 'rgb' directory.
|
||||
|
||||
This is the default ANSI layout that comes flashed on the Doro67 multi PCB with
|
||||
the exception of adding backtick as it was not mapped.
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
# Default Doro67 ISO layout.
|
||||
|
||||
**THIS IS THE DEFAULT ISO KEYMAP (AVAILABILITY: CHINA + INTERNATIONAL GB)**
|
||||
The "multi" directory includes keymaps for the multi-layout PCB, which supports ANSI, ISO, and multi (split backspace & non-blocker).
|
||||
The keymap you choose from the "multi" directory must correspond to the integrated plate option you chose.
|
||||
|
||||
The multi-layout PCB and RGB pcb were the only two options available to NON-china buyers.
|
||||
If you purchased an RGB PCB, please see the 'rgb' directory.
|
||||
|
||||
This is the default ISO layout that comes flashed on the Doro67 multi PCB with
|
||||
the exception of adding backtick and UK ISO specific keycodes as they were not mapped.
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
# Default Doro67 Multi layout.
|
||||
|
||||
**THIS IS THE DEFAULT MULTI-LAYOUT (SPLIT BACKSPACE) KEYMAP (AVAILABILITY: CHINA + INTERNATIONAL GB)**
|
||||
The "multi" directory includes keymaps for the multi-layout PCB, which supports ANSI, ISO, and multi (split backspace & non-blocker).
|
||||
The keymap you choose from the "multi" directory must correspond to the integrated plate option you chose.
|
||||
|
||||
The multi-layout PCB and RGB pcb were the only two options available to NON-china buyers.
|
||||
If you purchased an RGB PCB, please see the 'rgb' directory.
|
||||
|
||||
This is the default Multi layout that comes flashed on the Doro67 multi PCB with
|
||||
the exception of adding backtick as it was not mapped.
|
||||
|
||||
|
@ -2,6 +2,13 @@
|
||||
|
||||
65% custom keyboard made by 80ultraman/Alf/Backprop Studios with multiple layout support. Despite the layout options available, layout is dictated by the selected integrated plate.
|
||||
|
||||
**MULTI-LAYOUT PCB (AVAILABILITY: CHINA + INTERNATIONAL GB)**
|
||||
The "multi" directory includes keymaps for the multi-layout PCB, which supports ANSI, ISO, and multi (split backspace & non-blocker).
|
||||
The keymap you choose from the "multi" directory must correspond to the integrated plate option you chose.
|
||||
|
||||
The multi-layout PCB and RGB pcb were the only two options available to NON-china buyers.
|
||||
If you purchased an RGB PCB, please see the 'rgb' directory.
|
||||
|
||||
Keyboard Maintainer: [ShadeDream](https://github.com/shadedream)
|
||||
Hardware Supported: Doro67 Multi PCB
|
||||
Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=97265.0)
|
||||
|
@ -1 +1,5 @@
|
||||
# The default keymap for doro67
|
||||
|
||||
**THIS IS THE DEFAULT KEYMAP DIRECTORY (AVAILABILITY: CHINA GB ONLY)**
|
||||
If you are a non-china buyer, you probably have the multi PCB or rgb PCB.
|
||||
Please look at the "multi" and "rgb" readme files.
|
@ -4,6 +4,10 @@
|
||||
|
||||
This is not the PCB with RGB support. Do not flash RGB firmware for this board.
|
||||
|
||||
**REGULAR PCB (AVAILABILITY: CHINA GB ONLY)*
|
||||
If you are a non-china buyer, you probably have the multi PCB or rgb PCB.
|
||||
Please look at the "multi" and "rgb" readme files.
|
||||
|
||||
Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
|
||||
Hardware Supported: Doro67 Regular PCB
|
||||
Hardware Availability: [Geekhack GB](https://geekhack.org/index.php?topic=97265.0)
|
||||
|
@ -1 +1,7 @@
|
||||
# The default keymap for rgb
|
||||
|
||||
**RGB PCB (AVAILABILITY: CHINA + INTERNATIONAL GB)**
|
||||
The "rgb" directory includes the keymap for the RGB PCB.
|
||||
|
||||
The multi-layout PCB and RGB pcb were the only two options available to NON-china buyers.
|
||||
If you purchased a non-rgb PCB, please see the 'multi' directory.
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user