forked from mirrors/qmk_firmware
Compare commits
153 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
471722f495 | ||
|
|
5e66140fbc | ||
|
|
ef8de0e6f0 | ||
|
|
d495b26d2d | ||
|
|
e992079e08 | ||
|
|
0aa30138ff | ||
|
|
aa11627383 | ||
|
|
5c132afbf5 | ||
|
|
b4feae42b4 | ||
|
|
b867398408 | ||
|
|
9d915ed051 | ||
|
|
cd9e15036e | ||
|
|
fef206f661 | ||
|
|
7b768be784 | ||
|
|
3d446c6050 | ||
|
|
fc87d9b0d5 | ||
|
|
98b68bec53 | ||
|
|
4a597e031f | ||
|
|
81fae5c306 | ||
|
|
234c117613 | ||
|
|
6d4f6f3f49 | ||
|
|
ba11a1c807 | ||
|
|
33e9f1c75a | ||
|
|
be8257f0a7 | ||
|
|
da2eedc0c2 | ||
|
|
3aa4d55bee | ||
|
|
edef1f9396 | ||
|
|
2e8e465423 | ||
|
|
73d8593352 | ||
|
|
dbfbe0d7f0 | ||
|
|
8c2a23dee1 | ||
|
|
69d6298f6b | ||
|
|
4c62c7bd6e | ||
|
|
a8a9a2066e | ||
|
|
a903893883 | ||
|
|
3e8ee96b2c | ||
|
|
c7c4937eef | ||
|
|
cdfcbfc92d | ||
|
|
7bfe0879bf | ||
|
|
043ef40b92 | ||
|
|
3305df8e79 | ||
|
|
a2a2ba0eec | ||
|
|
9b0a548687 | ||
|
|
be497126e8 | ||
|
|
3380694740 | ||
|
|
f9f04ff2a4 | ||
|
|
98b87e6357 | ||
|
|
b5d85ddc90 | ||
|
|
6aba3ce9d2 | ||
|
|
79e0964d21 | ||
|
|
be1d5c6609 | ||
|
|
51182a4f03 | ||
|
|
f9c070e1a4 | ||
|
|
9baee84b36 | ||
|
|
6a088f7ff6 | ||
|
|
14908f86fb | ||
|
|
b05a4b1a4b | ||
|
|
1b3b9414b7 | ||
|
|
45dddfa6c2 | ||
|
|
fbe2eba472 | ||
|
|
de2e03650b | ||
|
|
8e0dfdfb53 | ||
|
|
f09a237a07 | ||
|
|
784e2af062 | ||
|
|
be65a0cc79 | ||
|
|
bd43df53bd | ||
|
|
5a41c06cd7 | ||
|
|
7b11d740ea | ||
|
|
ddb0f39ebf | ||
|
|
2f07627a5d | ||
|
|
d163b22dfb | ||
|
|
ea23035c53 | ||
|
|
ef189da243 | ||
|
|
db1ace5426 | ||
|
|
012c5ef9bd | ||
|
|
f2543c3b9b | ||
|
|
6695c874fb | ||
|
|
6f386ca6ae | ||
|
|
6e48ea082d | ||
|
|
681db534f3 | ||
|
|
d8ccabeeef | ||
|
|
d5f01ad2f9 | ||
|
|
f4a2e58182 | ||
|
|
7abf507cb6 | ||
|
|
5c491da0e7 | ||
|
|
41d8be7e75 | ||
|
|
a1de199aa9 | ||
|
|
f6a0ee85fd | ||
|
|
beb292e7f0 | ||
|
|
8dd1dab7cb | ||
|
|
7470317d95 | ||
|
|
9b82a9295f | ||
|
|
220551ed5f | ||
|
|
32b63d676f | ||
|
|
a872faa53e | ||
|
|
3ac3bb9b5e | ||
|
|
95d2a11c44 | ||
|
|
a120a000d4 | ||
|
|
a0c36ed253 | ||
|
|
dcf4877fac | ||
|
|
659e5d6316 | ||
|
|
168b0cf64d | ||
|
|
bcaf66bd32 | ||
|
|
11bdf28001 | ||
|
|
0d936b2fe6 | ||
|
|
7ba2bc765b | ||
|
|
80ddb34415 | ||
|
|
7a89b39aad | ||
|
|
5838c458d7 | ||
|
|
f019cd12a5 | ||
|
|
36fce12d08 | ||
|
|
303859ea28 | ||
|
|
65db404260 | ||
|
|
d7e3d718d0 | ||
|
|
da5e904306 | ||
|
|
7276cc24d0 | ||
|
|
2c1963d583 | ||
|
|
c4451f4505 | ||
|
|
79acf1e660 | ||
|
|
d5dcf54e23 | ||
|
|
c8de0f78bf | ||
|
|
6f30a6b407 | ||
|
|
a69e4406d4 | ||
|
|
0f62383be5 | ||
|
|
539a6fc825 | ||
|
|
58d035dccc | ||
|
|
791cdd6e31 | ||
|
|
db26d0fbd8 | ||
|
|
24a8bc3fd0 | ||
|
|
50139d9c59 | ||
|
|
c3cf9c0cef | ||
|
|
e3621c162c | ||
|
|
384fef72d3 | ||
|
|
8a2346eda1 | ||
|
|
9c73a4a5c6 | ||
|
|
0c607f8bf7 | ||
|
|
c1c5922aae | ||
|
|
9f1d781fcb | ||
|
|
de0fb39403 | ||
|
|
657b44cb7c | ||
|
|
eb7a821c5b | ||
|
|
b6e1e6aeeb | ||
|
|
67495ae24a | ||
|
|
8ae83b490e | ||
|
|
ffb75b720f | ||
|
|
33f1259f89 | ||
|
|
9a64c6b82e | ||
|
|
030faf951c | ||
|
|
100697ebab | ||
|
|
149015e799 | ||
|
|
0cee0764fd | ||
|
|
feee01192e | ||
|
|
1a6a2a7b75 |
6
Makefile
6
Makefile
@@ -536,9 +536,9 @@ endef
|
||||
cmp $(ROOT_DIR)/Makefile $(ROOT_DIR)/Makefile >/dev/null 2>&1; if [ $$? -gt 0 ]; then printf "$(MSG_NO_CMP)"; exit 1; fi;
|
||||
# Check if the submodules are dirty, and display a warning if they are
|
||||
ifndef SKIP_GIT
|
||||
if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --init lib/chibios; fi
|
||||
if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --init lib/chibios-contrib; fi
|
||||
if [ ! -e lib/ugfx ]; then git submodule sync lib/ugfx && git submodule update --init lib/ugfx; fi
|
||||
if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 1 --init lib/chibios; fi
|
||||
if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --depth 1 --init lib/chibios-contrib; fi
|
||||
if [ ! -e lib/ugfx ]; then git submodule sync lib/ugfx && git submodule update --depth 1 --init lib/ugfx; fi
|
||||
git submodule status --recursive 2>/dev/null | \
|
||||
while IFS= read -r x; do \
|
||||
case "$$x" in \
|
||||
|
||||
@@ -266,6 +266,11 @@ ifeq ($(strip $(HD44780_ENABLE)), yes)
|
||||
OPT_DEFS += -DHD44780_ENABLE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(VELOCIKEY_ENABLE)), yes)
|
||||
OPT_DEFS += -DVELOCIKEY_ENABLE
|
||||
SRC += $(QUANTUM_DIR)/velocikey.c
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
|
||||
OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
|
||||
SRC += $(QUANTUM_DIR)/dynamic_keymap.c
|
||||
@@ -293,19 +298,11 @@ ifneq ($(strip $(CUSTOM_MATRIX)), yes)
|
||||
endif
|
||||
|
||||
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
|
||||
# Debounce Modules. If implemented in matrix.c, don't use these.
|
||||
# Debounce Modules. Set DEBOUNCE_TYPE=custom if including one manually.
|
||||
DEBOUNCE_TYPE?= sym_g
|
||||
VALID_DEBOUNCE_TYPES := sym_g eager_pk custom
|
||||
ifeq ($(filter $(DEBOUNCE_TYPE),$(VALID_DEBOUNCE_TYPES)),)
|
||||
$(error DEBOUNCE_TYPE="$(DEBOUNCE_TYPE)" is not a valid debounce algorithm)
|
||||
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
|
||||
endif
|
||||
ifeq ($(strip $(DEBOUNCE_TYPE)), sym_g)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c
|
||||
else ifeq ($(strip $(DEBOUNCE_TYPE)), eager_pk)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c
|
||||
endif
|
||||
|
||||
|
||||
|
||||
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||
OPT_DEFS += -DSPLIT_KEYBOARD
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
* [Key Lock](feature_key_lock.md)
|
||||
* [Layouts](feature_layouts.md)
|
||||
* [Leader Key](feature_leader_key.md)
|
||||
* [LED Matrix](feature_led_matrix.md)
|
||||
* [Macros](feature_macros.md)
|
||||
* [Mouse Keys](feature_mouse_keys.md)
|
||||
* [One Shot Keys](feature_advanced_keycodes.md#one-shot-keys)
|
||||
@@ -76,6 +77,7 @@
|
||||
* [Thermal Printer](feature_thermal_printer.md)
|
||||
* [Unicode](feature_unicode.md)
|
||||
* [Userspace](feature_userspace.md)
|
||||
* [Velocikey](feature_velocikey.md)
|
||||
|
||||
* For Makers and Modders
|
||||
* [Hand Wiring Guide](hand_wire.md)
|
||||
|
||||
@@ -68,11 +68,11 @@ This is a C header file that is one of the first things included, and will persi
|
||||
* `#define C6_AUDIO`
|
||||
* enables audio on pin C6
|
||||
* `#define B5_AUDIO`
|
||||
* enables audio on pin B5 (duophony is enables if one of B[5-7]_AUDIO is enabled along with one of C[4-6]_AUDIO)
|
||||
* enables audio on pin B5 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
|
||||
* `#define B6_AUDIO`
|
||||
* enables audio on pin B6 (duophony is enables if one of B[5-7]_AUDIO is enabled along with one of C[4-6]_AUDIO)
|
||||
* enables audio on pin B6 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
|
||||
* `#define B7_AUDIO`
|
||||
* enables audio on pin B7 (duophony is enables if one of B[5-7]_AUDIO is enabled along with one of C[4-6]_AUDIO)
|
||||
* enables audio on pin B7 (duophony is enables if one of B[5-7]\_AUDIO is enabled along with one of C[4-6]\_AUDIO)
|
||||
* `#define BACKLIGHT_PIN B7`
|
||||
* pin of the backlight - B5, B6, B7 use PWM, others use softPWM
|
||||
* `#define BACKLIGHT_LEVELS 3`
|
||||
@@ -307,8 +307,8 @@ Use these to enable or disable building certain features. The more you have enab
|
||||
* Enables split keyboard support (dual MCU like the let's split and bakingpy's boards) and includes all necessary files located at quantum/split_common
|
||||
* `CUSTOM_MATRIX`
|
||||
* Allows replacing the standard matrix scanning routine with a custom one.
|
||||
* `CUSTOM_DEBOUNCE`
|
||||
* Allows replacing the standard key debouncing routine with a custom one.
|
||||
* `DEBOUNCE_TYPE`
|
||||
* Allows replacing the standard key debouncing routine with an alternative or custom one.
|
||||
* `WAIT_FOR_USB`
|
||||
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
||||
* `NO_USB_STARTUP_CHECK`
|
||||
|
||||
@@ -129,6 +129,20 @@ Documentation is one of the easiest ways to get started contributing to QMK. Fin
|
||||
|
||||
You'll find all our documentation in the `qmk_firmware/docs` directory, or if you'd rather use a web based workflow you can click "Suggest An Edit" at the top of each page on http://docs.qmk.fm/.
|
||||
|
||||
When providing code examples in your documentation, try to observe naming conventions used elsewhere in the docs. For example, standardizing enums as `my_layers` or `my_keycodes` for consistency:
|
||||
|
||||
```c
|
||||
enum my_layers {
|
||||
_FIRST_LAYER,
|
||||
_SECOND_LAYER
|
||||
};
|
||||
|
||||
enum my_keycodes {
|
||||
FIRST_LAYER = SAFE_RANGE,
|
||||
SECOND_LAYER
|
||||
};
|
||||
```
|
||||
|
||||
## Keymaps
|
||||
|
||||
Most first-time QMK contributors start with their personal keymaps. We try to keep keymap standards pretty casual (keymaps, after all, reflect the personality of their creators) but we do ask that you follow these guidelines to make it easier for others to discover and learn from your keymap.
|
||||
@@ -137,7 +151,7 @@ Most first-time QMK contributors start with their personal keymaps. We try to ke
|
||||
* All Keymap PR's are squashed, so if you care about how your commits are squashed you should do it yourself
|
||||
* Do not lump features in with keymap PR's. Submit the feature first and then a second PR for the keymap.
|
||||
* Do not include `Makefile`s in your keymap folder (they're no longer used)
|
||||
* Update copyrights in file headers (look for `REPLACE_WITH_YOUR_NAME `)
|
||||
* Update copyrights in file headers (look for `%YOUR_NAME%`)
|
||||
|
||||
## Keyboards
|
||||
|
||||
@@ -150,7 +164,7 @@ We also ask that you follow these guidelines:
|
||||
* Do not lump core features in with new keyboards. Submit the feature first and then submit a separate PR for the keyboard.
|
||||
* Name `.c`/`.h` file after the immediate parent folder, eg `/keyboards/<kb1>/<kb2>/<kb2>.[ch]`
|
||||
* Do not include `Makefile`s in your keyboard folder (they're no longer used)
|
||||
* Update copyrights in file headers (look for `REPLACE_WITH_YOUR_NAME `)
|
||||
* Update copyrights in file headers (look for `%YOUR_NAME%`)
|
||||
|
||||
## Quantum/TMK Core
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@ uint32_t layer_state_set_user(uint32_t state) {
|
||||
```
|
||||
### `layer_state_set_*` Function Documentation
|
||||
|
||||
* Keyboard/Revision: `void uint32_t layer_state_set_kb(uint32_t state)`
|
||||
* Keyboard/Revision: `uint32_t layer_state_set_kb(uint32_t state)`
|
||||
* Keymap: `uint32_t layer_state_set_user(uint32_t state)`
|
||||
|
||||
The `state` is the bitmask of the active layers, as explained in the [Keymap Overview](keymap.md#keymap-layer-status)
|
||||
|
||||
@@ -151,13 +151,13 @@ This turns right modifier keys into arrow keys when the keys are tapped while st
|
||||
*/
|
||||
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* 0: qwerty */
|
||||
[0] = KEYMAP( \
|
||||
[0] = LAYOUT( \
|
||||
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \
|
||||
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
|
||||
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
|
||||
LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \
|
||||
FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3),
|
||||
[1] = KEYMAP( \
|
||||
[1] = LAYOUT( \
|
||||
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \
|
||||
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\
|
||||
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
||||
|
||||
@@ -11,11 +11,11 @@ People often define custom names using `#define`. For example:
|
||||
#define ALT_TAB LALT(KC_TAB)
|
||||
```
|
||||
|
||||
This will allow you to use `FN_CAPS` and `ALT_TAB` in your `KEYMAP()`, keeping it more readable.
|
||||
This will allow you to use `FN_CAPS` and `ALT_TAB` in your keymap, keeping it more readable.
|
||||
|
||||
## Caveats
|
||||
|
||||
Currently, `LT()` and `MT()` are limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. Modifiers specified as part of a Layer Tap or Mod Tap's keycode will be ignored.
|
||||
Currently, `LT()` and `MT()` are limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. Modifiers specified as part of a Layer Tap or Mod Tap's keycode will be ignored. If you need to apply modifiers to your tapped keycode, [Tap Dance](https://github.com/qmk/qmk_firmware/blob/master/docs/feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
||||
|
||||
Additionally, if at least one right-handed modifier is specified in a Mod Tap or Layer Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two.
|
||||
|
||||
|
||||
@@ -2,45 +2,38 @@
|
||||
|
||||
QMK supports multiple debounce algorithms through its debounce API.
|
||||
|
||||
The underlying debounce algorithm is determined by which matrix.c file you are using.
|
||||
|
||||
The logic for which debounce method called is below. It checks various defines that you have set in rules.mk
|
||||
|
||||
```
|
||||
DEBOUNCE_DIR:= $(QUANTUM_DIR)/debounce
|
||||
DEBOUNCE_TYPE?= sym_g
|
||||
VALID_DEBOUNCE_TYPES := sym_g eager_pk custom
|
||||
ifeq ($(filter $(DEBOUNCE_TYPE),$(VALID_DEBOUNCE_TYPES)),)
|
||||
$(error DEBOUNCE_TYPE="$(DEBOUNCE_TYPE)" is not a valid debounce algorithm)
|
||||
endif
|
||||
ifeq ($(strip $(DEBOUNCE_TYPE)), sym_g)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_sym_g.c
|
||||
else ifeq ($(strip $(DEBOUNCE_TYPE)), eager_pk)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/debounce_eager_pk.c
|
||||
ifneq ($(strip $(DEBOUNCE_TYPE)), custom)
|
||||
QUANTUM_SRC += $(DEBOUNCE_DIR)/$(strip $(DEBOUNCE_TYPE)).c
|
||||
endif
|
||||
```
|
||||
|
||||
# Debounce selection
|
||||
|
||||
| DEBOUNCE_ALGO | Description | What to do |
|
||||
| ------------- | --------------------------------------------------- | ----------------------------- |
|
||||
| Not defined | You are using the included matrix.c and debounce.c | Nothing. Debounce_sym_g will be compiled, and used if necessary |
|
||||
| custom | Use your own debounce.c | ```SRC += debounce.c``` add your own debounce.c and implement necessary functions |
|
||||
| sym_g / eager_pk | You are using the included matrix.c and debounce.c | Use an alternative debounce algorithm |
|
||||
| DEBOUNCE_TYPE | Description | What else is needed |
|
||||
| ------------- | --------------------------------------------------- | ----------------------------- |
|
||||
| Not defined | Use the default algorithm, currently sym_g | Nothing |
|
||||
| custom | Use your own debounce.c | ```SRC += debounce.c``` add your own debounce.c and implement necessary functions |
|
||||
| anything_else | Use another algorithm from quantum/debounce/* | Nothing |
|
||||
|
||||
**Regarding split keyboards**:
|
||||
**Regarding split keyboards**:
|
||||
The debounce code is compatible with split keyboards.
|
||||
|
||||
# Use your own debouncing code
|
||||
* Set ```DEBOUNCE_TYPE = custom ```.
|
||||
* Add ```SRC += debounce.c```
|
||||
* Add your own ```debounce.c```. Look at included ```debounce_sym_g.c```s for sample implementations.
|
||||
* Add your own ```debounce.c```. Look at current implementations in ```quantum/debounce``` for examples.
|
||||
* Debouncing occurs after every raw matrix scan.
|
||||
* Use num_rows rather than MATRIX_ROWS, so that split keyboards are supported correctly.
|
||||
|
||||
# Changing between included debouncing methods
|
||||
You can either use your own code, by including your own debounce.c, or switch to another included one.
|
||||
Included debounce methods are:
|
||||
* debounce_eager_pk - debouncing per key. On any state change, response is immediate, followed by ```DEBOUNCE_DELAY``` millseconds of no further input for that key
|
||||
* debounce_sym_g - debouncing per keyboard. On any state change, a global timer is set. When ```DEBOUNCE_DELAY``` milliseconds of no changes has occured, all input changes are pushed.
|
||||
* eager_pk - debouncing per key. On any state change, response is immediate, followed by ```DEBOUNCE_DELAY``` millseconds of no further input for that key
|
||||
* sym_g - debouncing per keyboard. On any state change, a global timer is set. When ```DEBOUNCE_DELAY``` milliseconds of no changes has occured, all input changes are pushed.
|
||||
|
||||
|
||||
|
||||
@@ -183,11 +183,11 @@ A macro can include the following commands:
|
||||
|
||||
### Mapping a Macro to a Key
|
||||
|
||||
Use the `M()` function within your `KEYMAP()` to call a macro. For example, here is the keymap for a 2-key keyboard:
|
||||
Use the `M()` function within your keymap to call a macro. For example, here is the keymap for a 2-key keyboard:
|
||||
|
||||
```c
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = KEYMAP(
|
||||
[0] = LAYOUT(
|
||||
M(0), M(1)
|
||||
),
|
||||
};
|
||||
@@ -216,7 +216,7 @@ If you have a bunch of macros you want to refer to from your keymap while keepin
|
||||
#define M_BYE M(1)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = KEYMAP(
|
||||
[0] = LAYOUT(
|
||||
M_HI, M_BYE
|
||||
),
|
||||
};
|
||||
|
||||
@@ -67,7 +67,7 @@ Configure the hardware via your `config.h`:
|
||||
#define DRIVER_ADDR_1 0b1010000
|
||||
#define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
|
||||
|
||||
#define DRIVER_COUNT 1
|
||||
#define DRIVER_COUNT 2
|
||||
#define DRIVER_1_LED_TOTAL 64
|
||||
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
|
||||
|
||||
@@ -102,8 +102,8 @@ From this point forward the configuration is the same for all the drivers.
|
||||
|
||||
The format for the matrix position used in this array is `{row | (col << 4)}`. The `x` is between (inclusive) 0-224, and `y` is between (inclusive) 0-64. The easiest way to calculate these positions is:
|
||||
|
||||
x = 224 / ( NUMBER_OF_ROWS - 1 ) * ROW_POSITION
|
||||
y = 64 / (NUMBER_OF_COLS - 1 ) * COL_POSITION
|
||||
x = 224 / ( NUMBER_OF_COLS - 1 ) * ROW_POSITION
|
||||
y = 64 / (NUMBER_OF_ROWS - 1 ) * COL_POSITION
|
||||
|
||||
Where all variables are decimels/floats.
|
||||
|
||||
|
||||
@@ -314,3 +314,86 @@ qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
And then simply use `TD(X_CTL)` anywhere in your keymap.
|
||||
|
||||
If you want to implement this in your userspace, then you may want to check out how [DanielGGordon](https://github.com/qmk/qmk_firmware/tree/master/users/gordon) has implemented this in their userspace.
|
||||
|
||||
### Example 5: Using tap dance for advanced mod-tap and layer-tap keys
|
||||
|
||||
Tap dance can be used to emulate `MT()` and `LT()` behavior when the tapped code is not a basic keycode. This is useful to send tapped keycodes that normally require `Shift`, such as parentheses or curly braces—or other modified keycodes, such as `Control + X`.
|
||||
|
||||
Below your layers and custom keycodes, add the following:
|
||||
|
||||
```c
|
||||
// tapdance keycodes
|
||||
enum td_keycodes {
|
||||
ALT_LP // Our example key: `LALT` when held, `(` when tapped. Add additional keycodes for each tapdance.
|
||||
};
|
||||
|
||||
// define a type containing as many tapdance states as you need
|
||||
typedef enum {
|
||||
SINGLE_TAP,
|
||||
SINGLE_HOLD,
|
||||
DOUBLE_SINGLE_TAP
|
||||
} td_state_t;
|
||||
|
||||
// create a global instance of the tapdance state type
|
||||
static td_state_t td_state;
|
||||
|
||||
// declare your tapdance functions:
|
||||
|
||||
// function to determine the current tapdance state
|
||||
int cur_dance (qk_tap_dance_state_t *state);
|
||||
|
||||
// `finished` and `reset` functions for each tapdance keycode
|
||||
void altlp_finished (qk_tap_dance_state_t *state, void *user_data);
|
||||
void altlp_reset (qk_tap_dance_state_t *state, void *user_data);
|
||||
```
|
||||
|
||||
Below your `LAYOUT`, define each of the tapdance functions:
|
||||
|
||||
```c
|
||||
// determine the tapdance state to return
|
||||
int cur_dance (qk_tap_dance_state_t *state) {
|
||||
if (state->count == 1) {
|
||||
if (state->interrupted || !state->pressed) { return SINGLE_TAP; }
|
||||
else { return SINGLE_HOLD; }
|
||||
}
|
||||
if (state->count == 2) { return DOUBLE_SINGLE_TAP; }
|
||||
else { return 3; } // any number higher than the maximum state value you return above
|
||||
}
|
||||
|
||||
// handle the possible states for each tapdance keycode you define:
|
||||
|
||||
void altlp_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||
td_state = cur_dance(state);
|
||||
switch (td_state) {
|
||||
case SINGLE_TAP:
|
||||
register_code16(KC_LPRN);
|
||||
break;
|
||||
case SINGLE_HOLD:
|
||||
register_mods(MOD_BIT(KC_LALT)); // for a layer-tap key, use `layer_on(_MY_LAYER)` here
|
||||
break;
|
||||
case DOUBLE_SINGLE_TAP: // allow nesting of 2 parens `((` within tapping term
|
||||
tap_code16(KC_LPRN);
|
||||
register_code16(KC_LPRN);
|
||||
}
|
||||
}
|
||||
|
||||
void altlp_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||
switch (td_state) {
|
||||
case SINGLE_TAP:
|
||||
unregister_code16(KC_LPRN);
|
||||
break;
|
||||
case SINGLE_HOLD:
|
||||
unregister_mods(MOD_BIT(KC_LALT)); // for a layer-tap key, use `layer_off(_MY_LAYER)` here
|
||||
break;
|
||||
case DOUBLE_SINGLE_TAP:
|
||||
unregister_code16(KC_LPRN);
|
||||
}
|
||||
}
|
||||
|
||||
// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[ALT_LP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset)
|
||||
};
|
||||
```
|
||||
|
||||
Wrap each tapdance keycode in `TD()` when including it in your keymap, e.g. `TD(ALT_LP)`.
|
||||
|
||||
@@ -65,6 +65,8 @@ The following input modes are available:
|
||||
To enable, go to _System Preferences > Keyboard > Input Sources_, add _Unicode Hex Input_ to the list (it's under _Other_), then activate it from the input dropdown in the Menu Bar.
|
||||
By default, this mode uses the left Option key (`KC_LALT`), but this can be changed by defining [`UNICODE_OSX_KEY`](#input-key-configuration) with another keycode.
|
||||
|
||||
**Note:** Using the _Unicode Hex Input_ input source may disable some Option based shortcuts, such as: Option + Left Arrow (`moveWordLeftAndModifySelection`) and Option + Right Arrow (`moveWordRightAndModifySelection`).
|
||||
|
||||
* **`UC_LNX`**: Linux built-in IBus Unicode input. Supports code points up to `0x10FFFF` (all possible code points).
|
||||
|
||||
Enabled by default and works almost anywhere on IBus-enabled distros. Without IBus, this mode works under GTK apps, but rarely anywhere else.
|
||||
@@ -121,7 +123,7 @@ For instance, you can add these definitions to your `config.h` file:
|
||||
|
||||
### Additional Customization
|
||||
|
||||
Because Unicode is such a large and variable feature, there are a number of options that you can customize to work better on your system.
|
||||
Because Unicode is such a large and variable feature, there are a number of options that you can customize to work better on your system.
|
||||
|
||||
#### Start and Finish input functions
|
||||
|
||||
@@ -183,7 +185,7 @@ AutoHotkey inserts the Text right of `Send, ` when this combination is pressed.
|
||||
|
||||
### US International
|
||||
|
||||
If you enable the US International layout on the system, it will use punctuation to accent the characters.
|
||||
If you enable the US International layout on the system, it will use punctuation to accent the characters.
|
||||
|
||||
For instance, typing "`a" will result in à.
|
||||
|
||||
|
||||
@@ -201,27 +201,51 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_MAKE:
|
||||
if (!record->event.pressed) {
|
||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP
|
||||
#if (defined(BOOTLOADER_DFU) || defined(BOOTLOADER_LUFA_DFU) || defined(BOOTLOADER_QMK_DFU))
|
||||
":dfu "
|
||||
#elif defined(BOOTLOADER_HALFKAY)
|
||||
":teensy "
|
||||
#elif defined(BOOTLOADER_CATERINA)
|
||||
":avrdude "
|
||||
#endif
|
||||
SS_TAP(X_ENTER));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case KC_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader
|
||||
if (!record->event.pressed) {
|
||||
uint8_t temp_mod = get_mods();
|
||||
uint8_t temp_osm = get_oneshot_mods();
|
||||
clear_mods(); clear_oneshot_mods();
|
||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
|
||||
#ifndef FLASH_BOOTLOADER
|
||||
if ( (temp_mod | temp_osm) & MOD_MASK_SHIFT )
|
||||
#endif
|
||||
{ //
|
||||
#if defined(__arm__) // only run for ARM boards
|
||||
SEND_STRING(":dfu-util");
|
||||
#elif defined(BOOTLOADER_DFU) // only run for DFU boards
|
||||
SEND_STRING(":dfu");
|
||||
#elif defined(BOOTLOADER_HALFKAY) // only run for teensy boards
|
||||
SEND_STRING(":teensy");
|
||||
#elif defined(BOOTLOADER_CATERINA) // only run for Pro Micros
|
||||
SEND_STRING(":avrdude");
|
||||
#endif // bootloader options
|
||||
}
|
||||
if ( (temp_mod | temp_osm) & MOD_MASK_CTRL) {
|
||||
SEND_STRING(" -j8 --output-sync");
|
||||
}
|
||||
SEND_STRING(SS_TAP(X_ENTER));
|
||||
set_mods(temp_mod);
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
return process_record_keymap(keycode, record);
|
||||
}
|
||||
```
|
||||
|
||||
For boards that may not have a shift button (such as on a macro pad), we need a way to always include the bootloader option. To do that, add the following to the `rules.mk` in your userspace folder:
|
||||
|
||||
```make
|
||||
ifeq ($(strip $(FLASH_BOOTLOADER)), yes)
|
||||
OPT_DEFS += -DFLASH_BOOTLOADER
|
||||
endif
|
||||
```
|
||||
|
||||
This will add a new `KC_MAKE` keycode that can be used in any of your keymaps. And this keycode will output `make <keyboard>:<keymap>`, making frequent compiling easier. And this will work with any keyboard and any keymap as it will output the current boards info, so that you don't have to type this out every time.
|
||||
|
||||
Additionally, this should flash the newly compiled firmware automatically, using the correct utility, based on the bootloader settings (or default to just generating the HEX file). However, it should be noted that this may not work on all systems. AVRDUDE doesn't work on WSL, namely (and will dump the HEX in the ".build" folder instead).
|
||||
Also, holding `shift` will add the appropriate flashing command (`:dfu`, `:teensy`, `:avrdude`, `:dfu-util`) for a majority of keyboards. Holding `control` will add some commands that will speed up compiling time by processing multiple files at once.
|
||||
|
||||
And for the boards that lack a shift key, or that you want to always attempt the flashing part, you can add `FLASH_BOOTLOADER = yes` to the `rules.mk` of that keymap.
|
||||
|
||||
?> This should flash the newly compiled firmware automatically, using the correct utility, based on the bootloader settings (or default to just generating the HEX file). However, it should be noted that this may not work on all systems. AVRDUDE doesn't work on WSL, namely. And this doesn't support BootloadHID or mdloader.
|
||||
|
||||
30
docs/feature_velocikey.md
Normal file
30
docs/feature_velocikey.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Velocikey
|
||||
|
||||
Velocikey is a feature that lets you control the speed of lighting effects (like the Rainbow Swirl effect) with the speed of your typing. The faster you type, the faster the lights will go!
|
||||
|
||||
## Usage
|
||||
For Velocikey to take effect, there are two steps. First, when compiling your keyboard, you'll need to set `VELOCIKEY_ENABLE=yes` in `rules.mk`, e.g.:
|
||||
|
||||
```
|
||||
BOOTMAGIC_ENABLE = no
|
||||
MOUSEKEY_ENABLE = no
|
||||
STENO_ENABLE = no
|
||||
EXTRAKEY_ENABLE = yes
|
||||
VELOCIKEY_ENABLE = yes
|
||||
```
|
||||
|
||||
Then, while using your keyboard, you need to also turn it on with the VLK_TOG keycode, which toggles the feature on and off.
|
||||
|
||||
The following light effects will all be controlled by Velocikey when it is enabled:
|
||||
- RGB Breathing
|
||||
- RGB Rainbow Mood
|
||||
- RGB Rainbow Swirl
|
||||
- RGB Snake
|
||||
- RGB Knight
|
||||
|
||||
Support for LED breathing effects is planned but not available yet.
|
||||
|
||||
As long as Velocikey is enabled, it will control the speed regardless of any other speed setting that your RGB lights are currently on.
|
||||
|
||||
## Configuration
|
||||
Velocikey doesn't currently support any configuration via keyboard settings. If you want to adjust something like the speed increase or decay rate, you would need to edit `velocikey.c` and adjust the values there to achieve the kinds of speeds that you like.
|
||||
@@ -17,6 +17,7 @@ QMK has a staggering number of features for building your keyboard. It can take
|
||||
* [Key Lock](feature_key_lock.md) - Lock a key in the "down" state.
|
||||
* [Layouts](feature_layouts.md) - Use one keymap with any keyboard that supports your layout.
|
||||
* [Leader Key](feature_leader_key.md) - Tap the leader key followed by a sequence to trigger custom behavior.
|
||||
* [LED Matrix](feature_led_matrix.md) - LED Matrix single color lights for per key lighting (Single Color, not RGB).
|
||||
* [Macros](feature_macros.md) - Send multiple key presses when pressing only one physical key.
|
||||
* [Mouse keys](feature_mouse_keys.md) - Control your mouse pointer from your keyboard.
|
||||
* [One Shot Keys](feature_advanced_keycodes.md#one-shot-keys) - Sticky Keys, lets hit a key rather than holding it.
|
||||
|
||||
@@ -44,9 +44,7 @@ Fedora / Red Hat example:
|
||||
|
||||
Arch / Manjaro example:
|
||||
|
||||
pacman -S base-devel gcc unzip wget zip avr-gcc avr-binutils avr-libc dfu-util arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib git
|
||||
|
||||
(the `dfu-programmer` package is availble on AUR only so you should download from there or use an AUR helper)
|
||||
pacman -S base-devel gcc unzip wget zip avr-gcc avr-binutils avr-libc dfu-util arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib git dfu-programmer dfu-util
|
||||
|
||||
## Nix
|
||||
|
||||
|
||||
@@ -143,9 +143,9 @@ As there is no standard split communication driver for ARM-based split keyboards
|
||||
|
||||
Lets you replace the default matrix scanning routine with your own code. You will need to provide your own implementations of matrix_init() and matrix_scan().
|
||||
|
||||
`CUSTOM_DEBOUNCE`
|
||||
`DEBOUNCE_TYPE`
|
||||
|
||||
Lets you replace the default key debouncing routine with your own code. You will need to provide your own implementation of debounce().
|
||||
Lets you replace the default key debouncing routine with an alternative one. If `custom` you will need to provide your own implementation.
|
||||
|
||||
## Customizing Makefile Options on a Per-Keymap Basis
|
||||
|
||||
|
||||
@@ -185,11 +185,18 @@ When you're done with the columns, start with the rows in the same process, from
|
||||
|
||||
As you move along, be sure that the Teensy is staying in place - recutting and soldering the wires is a pain!
|
||||
|
||||
## Additional guides
|
||||
|
||||
If you're more of a visual learner, or want some additional tips and something more to follow along, these two visual step by step guides may be helpful:
|
||||
|
||||
- [BrownFox's step by step guide](https://deskthority.net/viewtopic.php?f=7&t=6050)
|
||||
- [Cribbit's modern hand wiring guide](https://geekhack.org/index.php?topic=87689.0)
|
||||
|
||||
# Getting Some Basic Firmware Set Up
|
||||
|
||||
From here, you should have a working keyboard once you program a firmware. Before we attach the Teensy permanently to the keyboard, let's quickly get some firmware loaded onto the Teensy so we can test each keyswitch.
|
||||
|
||||
To start out, download [the firmware](https://github.com/qmk/qmk_firmware/) - we'll be using my (Jack's) fork of TMK called QMK/Quantum. We'll be doing a lot from the Terminal/command prompt, so get that open, along with a decent text editor like [Sublime Text](http://www.sublimetext.com/).
|
||||
To start out, download [the firmware](https://github.com/qmk/qmk_firmware/) - we'll be using my (Jack's) fork of TMK called QMK/Quantum. We'll be doing a lot from the Terminal/command prompt, so get that open, along with a decent text editor like [Sublime Text](http://www.sublimetext.com/) (paid) or [Visual Studio Code](https://code.visualstudio.com) (free).
|
||||
|
||||
The first thing we're going to do is create a new project using the script in the root directory of the firmware. In your terminal, run this command with `<project_name>` replaced by the name of your project - it'll need to be different from any other project in the `keyboards/` folder:
|
||||
|
||||
@@ -209,7 +216,7 @@ Farther down are `MATRIX_ROW_PINS` and `MATRIX_COL_PINS`. Change their definitio
|
||||
|
||||
### `<project_name>.h`
|
||||
|
||||
The next file you'll want to look at is `<project_name>.h`. You're going to want to rewrite the `KEYMAP` definition - the format and syntax here is extremely important, so pay attention to how things are setup. The first half of the definition are considered the arguments - this is the format that you'll be following in your keymap later on, so you'll want to have as many k*xy* variables here as you do keys. The second half is the part that the firmware actually looks at, and will contain gaps depending on how you wired your matrix.
|
||||
The next file you'll want to look at is `<project_name>.h`. You're going to want to rewrite the `LAYOUT` definition - the format and syntax here is extremely important, so pay attention to how things are setup. The first half of the definition are considered the arguments - this is the format that you'll be following in your keymap later on, so you'll want to have as many k*xy* variables here as you do keys. The second half is the part that the firmware actually looks at, and will contain gaps depending on how you wired your matrix.
|
||||
|
||||
We'll dive into how this will work with the following example. Say we have a keyboard like this:
|
||||
|
||||
@@ -231,10 +238,10 @@ This can be described by saying the top row is 3 1u keys, and the bottom row is
|
||||
└─────┴─────┘
|
||||
```
|
||||
|
||||
The middle column is unused on the bottom row in this example. Our `KEYMAP` definition would look like this:
|
||||
The middle column is unused on the bottom row in this example. Our `LAYOUT` definition would look like this:
|
||||
|
||||
```
|
||||
#define KEYMAP( \
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, \
|
||||
k10, k11, \
|
||||
) \
|
||||
@@ -256,10 +263,10 @@ Let's say that instead, we wired our keyboard like this (a fair thing to do):
|
||||
└─────┴─────┘
|
||||
```
|
||||
|
||||
This would require our `KEYMAP` definition to look like this:
|
||||
This would require our `LAYOUT` definition to look like this:
|
||||
|
||||
```
|
||||
#define KEYMAP( \
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, \
|
||||
k10, k11, \
|
||||
) \
|
||||
@@ -269,7 +276,7 @@ This would require our `KEYMAP` definition to look like this:
|
||||
}
|
||||
```
|
||||
|
||||
Notice how the `k11` and `KC_NO` switched places to represent the wiring, and the unused final column on the bottom row. Sometimes it'll make more sense to put a keyswitch on a particular column, but in the end, it won't matter, as long as all of them are accounted for. You can use this process to write out the `KEYMAP` for your entire keyboard - be sure to remember that your keyboard is actually backwards when looking at the underside of it.
|
||||
Notice how the `k11` and `KC_NO` switched places to represent the wiring, and the unused final column on the bottom row. Sometimes it'll make more sense to put a keyswitch on a particular column, but in the end, it won't matter, as long as all of them are accounted for. You can use this process to write out the `LAYOUT` for your entire keyboard - be sure to remember that your keyboard is actually backwards when looking at the underside of it.
|
||||
|
||||
### `keymaps/<variant>/default.c`
|
||||
|
||||
@@ -291,7 +298,7 @@ This can be accomplished by using the following `keymaps` definition:
|
||||
|
||||
```
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = KEYMAP( /* Base */
|
||||
[0] = LAYOUT( /* Base */
|
||||
KC_A, KC_1, KC_H, \
|
||||
KC_TAB, KC_SPC \
|
||||
),
|
||||
@@ -300,7 +307,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
Note that the layout of the keycodes is similar to the physical layout of our keyboard - this make it much easier to see what's going on. A lot of the keycodes should be fairly obvious, but for a full list of them, check out [Keycodes](keycodes.md) - there are also a lot of aliases to condense your keymap file.
|
||||
|
||||
It's also important to use the `KEYMAP` function we defined earlier - this is what allows the firmware to associate our intended readable keymap with the actual wiring.
|
||||
It's also important to use the `LAYOUT` function we defined earlier - this is what allows the firmware to associate our intended readable keymap with the actual wiring.
|
||||
|
||||
## Compiling Your Firmware
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Keymap Overview
|
||||
|
||||
QMK keymaps are defined inside a C source file. The data structure is an array of arrays. The outer array is a list of layer arrays while the inner layer array is a list of keys. Most keyboards define a `KEYMAP()` macro to help you create this array of arrays.
|
||||
QMK keymaps are defined inside a C source file. The data structure is an array of arrays. The outer array is a list of layer arrays while the inner layer array is a list of keys. Most keyboards define a `LAYOUT()` macro to help you create this array of arrays.
|
||||
|
||||
|
||||
## Keymap and Layers
|
||||
@@ -119,7 +119,7 @@ The main part of this file is the `keymaps[]` definition. This is where you list
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
After this you'll find a list of KEYMAP() macros. A KEYMAP() is simply a list of keys to define a single layer. Typically you'll have one or more "base layers" (such as QWERTY, Dvorak, or Colemak) and then you'll layer on top of that one or more "function" layers. Due to the way layers are processed you can't overlay a "lower" layer on top of a "higher" layer.
|
||||
After this you'll find a list of LAYOUT() macros. A LAYOUT() is simply a list of keys to define a single layer. Typically you'll have one or more "base layers" (such as QWERTY, Dvorak, or Colemak) and then you'll layer on top of that one or more "function" layers. Due to the way layers are processed you can't overlay a "lower" layer on top of a "higher" layer.
|
||||
|
||||
`keymaps[][MATRIX_ROWS][MATRIX_COLS]` in QMK holds the 16 bit action code (sometimes referred as the quantum keycode) in it. For the keycode representing typical keys, its high byte is 0 and its low byte is the USB HID usage ID for keyboard.
|
||||
|
||||
@@ -131,7 +131,7 @@ Here is an example of the Clueboard's base layer:
|
||||
|
||||
/* Keymap _BL: Base Layer (Default Layer)
|
||||
*/
|
||||
[_BL] = KEYMAP(
|
||||
[_BL] = LAYOUT(
|
||||
F(0), 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_GRV, KC_BSPC, KC_PGUP, \
|
||||
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_PGDN, \
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, \
|
||||
@@ -149,7 +149,7 @@ Some interesting things to note about this:
|
||||
|
||||
Our function layer is, from a code point of view, no different from the base layer. Conceptually, however, you will build that layer as an overlay, not a replacement. For many people this distinction does not matter, but as you build more complicated layering setups it matters more and more.
|
||||
|
||||
[_FL] = KEYMAP(
|
||||
[_FL] = LAYOUT(
|
||||
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_DEL, BL_STEP, \
|
||||
_______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,KC_SLCK, KC_PAUS, _______, _______, _______, _______, \
|
||||
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||
|
||||
@@ -86,7 +86,7 @@ If you know what bootloader that you're using, then when compiling the firmware,
|
||||
|
||||
### DFU
|
||||
|
||||
For the DFU bootloader, when you're ready to compile and flash your firmware, open up your terminal window and run the built command:
|
||||
For the DFU bootloader, when you're ready to compile and flash your firmware, open up your terminal window and run the build command:
|
||||
|
||||
make <my_keyboard>:<my_keymap>:dfu
|
||||
|
||||
@@ -133,7 +133,7 @@ If you have any issues with this, you may need to this:
|
||||
|
||||
### Caterina
|
||||
|
||||
For Arduino boards and their close (such as the SparkFun ProMicro), when you're ready to compile and flash your firmware, open up your terminal window and run the built command:
|
||||
For Arduino boards and their clones (such as the SparkFun ProMicro), when you're ready to compile and flash your firmware, open up your terminal window and run the build command:
|
||||
|
||||
make <my_keyboard>:<my_keymap>:avrdude
|
||||
|
||||
@@ -201,7 +201,7 @@ If you have any issues with this, you may need to this:
|
||||
|
||||
## HalfKay
|
||||
|
||||
For the PJRC devices (Teensy's), when you're ready to compile and flash your firmware, open up your terminal window and run the built command:
|
||||
For the PJRC devices (Teensy's), when you're ready to compile and flash your firmware, open up your terminal window and run the build command:
|
||||
|
||||
make <my_keyboard>:<my_keymap>:teensy
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ This is where all of the custom logic for your keyboard goes - you may not need
|
||||
|
||||
## `/keyboards/<keyboard>/<keyboard>.h`
|
||||
|
||||
Here is where you can (optionally) define your `KEYMAP` function to remap your matrix into a more readable format. With ortholinear boards, this isn't always necessary, but it can help to accommodate the dead spots on your matrix, where there are keys that take up more than one space (2u, staggering, 6.25u, etc). The example shows the difference between the physical keys, and the matrix design:
|
||||
Here is where you can (optionally) define your `LAYOUT` function to remap your matrix into a more readable format. With ortholinear boards, this isn't always necessary, but it can help to accommodate the dead spots on your matrix, where there are keys that take up more than one space (2u, staggering, 6.25u, etc). The example shows the difference between the physical keys, and the matrix design:
|
||||
|
||||
```
|
||||
#define KEYMAP( \
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, \
|
||||
k10, k11 \
|
||||
) \
|
||||
|
||||
@@ -57,10 +57,10 @@ Matrix Scanning runs many times per second. The exact rate varies but typically
|
||||
|
||||
Once we know the state of every switch on our keyboard we have to map that to a keycode. In QMK this is done by making use of C macros to allow us to separate the definition of the physical layout from the definition of keycodes.
|
||||
|
||||
At the keyboard level we define a C macro (typically named `KEYMAP()`) which maps our keyboard's matrix to physical keys. Sometimes the matrix does not have a switch in every location, and we can use this macro to pre-populate those with KC_NO, making the keymap definition easier to work with. Here's an example `KEYMAP()` macro for a numpad:
|
||||
At the keyboard level we define a C macro (typically named `LAYOUT()`) which maps our keyboard's matrix to physical keys. Sometimes the matrix does not have a switch in every location, and we can use this macro to pre-populate those with KC_NO, making the keymap definition easier to work with. Here's an example `LAYOUT()` macro for a numpad:
|
||||
|
||||
```c
|
||||
#define KEYMAP( \
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03, \
|
||||
k10, k11, k12, k13, \
|
||||
k20, k21, k22, \
|
||||
@@ -75,17 +75,17 @@ At the keyboard level we define a C macro (typically named `KEYMAP()`) which map
|
||||
}
|
||||
```
|
||||
|
||||
Notice how the second block of our `KEYMAP()` macro matches the Matrix Scanning array above? This macro is what will map the matrix scanning array to keycodes. However, if you look at a 17 key numpad you'll notice that it has 3 places where the matrix could have a switch but doesn't, due to larger keys. We have populated those spaces with `KC_NO` so that our keymap definition doesn't have to.
|
||||
Notice how the second block of our `LAYOUT()` macro matches the Matrix Scanning array above? This macro is what will map the matrix scanning array to keycodes. However, if you look at a 17 key numpad you'll notice that it has 3 places where the matrix could have a switch but doesn't, due to larger keys. We have populated those spaces with `KC_NO` so that our keymap definition doesn't have to.
|
||||
|
||||
You can also use this macro to handle unusual matrix layouts, for example the [Clueboard rev 2](https://github.com/qmk/qmk_firmware/blob/e1203a222bb12ab9733916164a000ef3ac48da93/keyboards/clueboard/66/rev2/rev2.h). Explaining that is outside the scope of this document.
|
||||
|
||||
##### Keycode Assignment
|
||||
|
||||
At the keymap level we make use of our `KEYMAP()` macro above to map keycodes to physical locations to matrix locations. It looks like this:
|
||||
At the keymap level we make use of our `LAYOUT()` macro above to map keycodes to physical locations to matrix locations. It looks like this:
|
||||
|
||||
```
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = KEYMAP(
|
||||
[0] = LAYOUT(
|
||||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, \
|
||||
KC_P7, KC_P8, KC_P9, KC_PPLS, \
|
||||
KC_P4, KC_P5, KC_P6, \
|
||||
@@ -94,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
}
|
||||
```
|
||||
|
||||
Notice how all of these arguments match up with the first half of the `KEYMAP()` macro from the last section? This is how we take a keycode and map it to our Matrix Scan from earlier.
|
||||
Notice how all of these arguments match up with the first half of the `LAYOUT()` macro from the last section? This is how we take a keycode and map it to our Matrix Scan from earlier.
|
||||
|
||||
##### State Change Detection
|
||||
|
||||
|
||||
@@ -65,11 +65,13 @@ uint8_t i2c_start(uint8_t address)
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout)
|
||||
int8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout)
|
||||
{
|
||||
//xprintf("i2c_transmit(0x%x, 0x%x, %d, 0x%x) address:0x%x\n", address, data, length, timeout, address >> 1);
|
||||
i2c_address = address;
|
||||
i2cStart(&I2C_DRIVER, &i2cconfig);
|
||||
return i2cMasterTransmitTimeout(&I2C_DRIVER, (i2c_address >> 1), data, length, 0, 0, MS2ST(timeout));
|
||||
int8_t result = i2cMasterTransmitTimeout(&I2C_DRIVER, i2c_address, data, length, 0, 0, MS2ST(timeout));
|
||||
return result;
|
||||
}
|
||||
|
||||
uint8_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout)
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
void i2c_init(void);
|
||||
uint8_t i2c_start(uint8_t address);
|
||||
uint8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout);
|
||||
int8_t i2c_transmit(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout);
|
||||
uint8_t i2c_receive(uint8_t address, uint8_t* data, uint16_t length, uint16_t timeout);
|
||||
uint8_t i2c_transmit_receive(uint8_t address, uint8_t * tx_body, uint16_t tx_length, uint8_t * rx_body, uint16_t rx_length);
|
||||
uint8_t i2c_writeReg(uint8_t devaddr, uint8_t regaddr, uint8_t* data, uint16_t length, uint16_t timeout);
|
||||
|
||||
227
drivers/issi/is31fl3235a.c
Normal file
227
drivers/issi/is31fl3235a.c
Normal file
@@ -0,0 +1,227 @@
|
||||
/* Copyright 2017 Jason Williams
|
||||
* Copyright 2018 Jack Humbert
|
||||
* Copyright 2019 Clueboard
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#ifdef __AVR__
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
#else
|
||||
#include "wait.h"
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
#include "is31fl3235a.h"
|
||||
#include "i2c_master.h"
|
||||
#include "progmem.h"
|
||||
#include "print.h"
|
||||
|
||||
|
||||
#define ISSI_REG_CONFIG 0x00 // FIXME: Not on 3235?
|
||||
#define ISSI_REG_CONFIG_PICTUREMODE 0x00 // FIXME: Not on 3235?
|
||||
|
||||
//#define ISSI_REG_AUDIOSYNC 0x06 // FIXME: Not on 3235?
|
||||
|
||||
#define ISSI_COMMANDREGISTER 0xFD // FIXME: Not on 3235?
|
||||
#define ISSI_BANK_FUNCTIONREG 0x0B // FIXME: Not on 3235?
|
||||
|
||||
#ifndef ISSI_TIMEOUT
|
||||
#define ISSI_TIMEOUT 100
|
||||
#endif
|
||||
|
||||
#ifndef ISSI_PERSISTENCE
|
||||
#define ISSI_PERSISTENCE 0
|
||||
#endif
|
||||
|
||||
// Transfer buffer for TWITransmitData()
|
||||
uint8_t g_3235a_transfer_buffer[20];
|
||||
|
||||
// These buffers match the IS31FL3235A PWM registers 0x05-0x20.
|
||||
// Storing them like this is optimal for I2C transfers to the registers.
|
||||
// We could optimize this and take out the unused registers from these
|
||||
// buffers and the transfers in IS31FL3235A_write_pwm_buffer() but it's
|
||||
// probably not worth the extra complexity.
|
||||
uint8_t g_rgb7seg_buffer[IS31FL3235A_COUNT][IS31FL3235A_LED_MAX];
|
||||
bool g_rgb7seg_buffer_update_required = false;
|
||||
|
||||
/* There's probably a better way to init this... */
|
||||
#if IS31FL3235A_COUNT == 1
|
||||
uint8_t g_3235a_control_registers[IS31FL3235A_COUNT][18] = {{0}};
|
||||
#elif IS31FL3235A_COUNT == 2
|
||||
uint8_t g_3235a_control_registers[IS31FL3235A_COUNT][18] = {{0}, {0}};
|
||||
#elif IS31FL3235A_COUNT == 3
|
||||
uint8_t g_3235a_control_registers[IS31FL3235A_COUNT][18] = {{0}, {0}, {0}};
|
||||
#elif IS31FL3235A_COUNT == 4
|
||||
uint8_t g_3235a_control_registers[IS31FL3235A_COUNT][18] = {{0}, {0}, {0}, {0}};
|
||||
#endif
|
||||
bool g_rgb7seg_control_registers_update_required = false;
|
||||
|
||||
void IS31FL3235A_write_register(uint8_t addr, uint8_t reg, uint8_t data) {
|
||||
g_3235a_transfer_buffer[0] = reg;
|
||||
g_3235a_transfer_buffer[1] = data;
|
||||
xprintf("IS31FL3235A_write_register(0x%x, 0x%x, 0x%x); g_3235a_transfer_buffer:0x%x\n", addr, reg, data, g_3235a_transfer_buffer);
|
||||
|
||||
#if ISSI_PERSISTENCE > 0
|
||||
for (uint8_t i = 0; i < ISSI_PERSISTENCE; i++) {
|
||||
if (i2c_transmit(addr, g_3235a_transfer_buffer, 2, ISSI_TIMEOUT) == 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
#else
|
||||
if (i2c_transmit(addr, g_3235a_transfer_buffer, 2, ISSI_TIMEOUT) == -1) {
|
||||
// When we encounter a timeout ChibiOS says the bus must be reset as it's in an unknown state
|
||||
xprintf("i2c transmit timeout, resetting i2c bus!\n");
|
||||
i2c_stop(ISSI_TIMEOUT);
|
||||
wait_ms(5);
|
||||
i2c_start(ISSI_TIMEOUT);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void IS31FL3235A_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer) {
|
||||
// assumes bank is already selected
|
||||
|
||||
// transmit PWM registers in 9 transfers of 16 bytes
|
||||
// g_3235a_transfer_buffer[] is 20 bytes
|
||||
|
||||
// iterate over the pwm_buffer contents at 16 byte intervals
|
||||
for (int i = 0; i < IS31FL3235A_LED_MAX; i += 16) {
|
||||
// set the first register, e.g. 0x24, 0x34, 0x44, etc.
|
||||
g_3235a_transfer_buffer[0] = 0x24 + i;
|
||||
// copy the data from i to i+15
|
||||
// device will auto-increment register for data after the first byte
|
||||
// thus this sets registers 0x24-0x33, 0x34-0x43, etc. in one transfer
|
||||
for (int j = 0; j < 16; j++) {
|
||||
g_3235a_transfer_buffer[1 + j] = pwm_buffer[i + j];
|
||||
}
|
||||
|
||||
#if ISSI_PERSISTENCE > 0
|
||||
for (uint8_t i = 0; i < ISSI_PERSISTENCE; i++) {
|
||||
if (i2c_transmit(addr << 1, g_3235a_transfer_buffer, 17, ISSI_TIMEOUT) == 0)
|
||||
break;
|
||||
}
|
||||
#else
|
||||
if (i2c_transmit(addr << 1, g_3235a_transfer_buffer, 17, ISSI_TIMEOUT) == -1) {
|
||||
// When we encounter a timeout ChibiOS says the bus must be reset as it's in an unknown state
|
||||
xprintf("i2c transmit timeout, resetting i2c bus!\n");
|
||||
i2c_stop(ISSI_TIMEOUT);
|
||||
wait_ms(5);
|
||||
i2c_start(ISSI_TIMEOUT);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void IS31FL3235A_init(uint8_t addr) {
|
||||
wait_ms(2000); // Give QMK Toolbox time to attach
|
||||
xprintf("IS31FS3235A_init(0x%x)\n", addr);
|
||||
// In order to avoid the LEDs being driven with garbage data
|
||||
// in the LED driver's PWM registers, first enable software shutdown,
|
||||
// then set up the mode and other settings, clear the PWM registers,
|
||||
// then disable software shutdown.
|
||||
|
||||
// Reset settings to default
|
||||
//IS31FL3235A_write_register(addr, ISSI_REG_RESET_REG, 0);
|
||||
|
||||
// this delay was copied from other drivers, might not be needed
|
||||
wait_ms(10);
|
||||
|
||||
// This is how the Arduino code does init...
|
||||
uint8_t i = 0;
|
||||
|
||||
for (i=0x2A; i<=0x45; i++) {
|
||||
IS31FL3235A_write_register(addr, i, 0xFF); // Turn off all LEDs
|
||||
}
|
||||
|
||||
for (i=0x05; i<=0x20; i++) {
|
||||
IS31FL3235A_write_register(addr, i, 0x00); // Write all PWM set 0x00
|
||||
}
|
||||
|
||||
IS31FL3235A_write_register(addr, 0x25, 0x00); //update PWM&Control registers
|
||||
IS31FL3235A_write_register(addr, 0x4B, 0x01); //frequency setting 22KHz
|
||||
IS31FL3235A_write_register(addr, 0x00, 0x01); //normal operation
|
||||
|
||||
// This is how the Arduino code does LED turn on
|
||||
IS31FL3235A_write_register(addr, 0x05, 0xFF); // set PWM
|
||||
IS31FL3235A_write_register(addr, 0x25, 0x00); // update PWM&Control registers
|
||||
IS31FL3235A_write_register(addr, 0x08, 0xFF); // set PWM
|
||||
IS31FL3235A_write_register(addr, 0x25, 0x00); // update PWM&Control registers
|
||||
IS31FL3235A_write_register(addr, 0x12, 0xFF); // set PWM
|
||||
IS31FL3235A_write_register(addr, 0x25, 0x00); // update PWM&Control registers
|
||||
|
||||
// FIXME: This is for testing, turn on OUT1 at full brightness
|
||||
//IS31FL3235A_write_register(addr, 0x2A, 0xFF);
|
||||
//IS31FL3235A_write_register(addr, 0x05, 0x00);
|
||||
|
||||
// I think this finally turns it on?
|
||||
//IS31FL3235A_write_register(addr, 0x25, 0x00); //update PWM&Control registers
|
||||
//IS31FL3235A_write_register(addr, 0x4B, 0x01); //frequency setting 22KHz
|
||||
//IS31FL3235A_write_register(addr, 0x00, 0x01); //normal operation
|
||||
}
|
||||
|
||||
void IS31FL3235A_set_value(int index, uint8_t value) {
|
||||
/*
|
||||
if (index >= 0 && index < IS31FL3235A_LED_COUNT) {
|
||||
is31_led led = g_is31_leds[index];
|
||||
|
||||
// Subtract 0x24 to get the second index of g_rgb7seg_buffer
|
||||
g_rgb7seg_buffer[led.driver][led.v - 0x24] = value;
|
||||
g_rgb7seg_buffer_update_required = true;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
void IS31FL3235A_set_value_all(uint8_t value) {
|
||||
for (int i = 0; i < IS31FL3235A_LED_COUNT; i++) {
|
||||
IS31FL3235A_set_value(i, value);
|
||||
}
|
||||
}
|
||||
|
||||
void IS31FL3235A_set_led_control_register(uint8_t index, bool value) {
|
||||
/*
|
||||
is31_led led = g_is31_leds[index];
|
||||
|
||||
uint8_t control_register = (led.v - 0x24) / 8;
|
||||
uint8_t bit_value = (led.v - 0x24) % 8;
|
||||
|
||||
if (value) {
|
||||
g_3235a_control_registers[led.driver][control_register] |= (1 << bit_value);
|
||||
} else {
|
||||
g_3235a_control_registers[led.driver][control_register] &= ~(1 << bit_value);
|
||||
}
|
||||
|
||||
g_rgb7seg_control_registers_update_required = true;
|
||||
*/
|
||||
}
|
||||
|
||||
void IS31FL3235A_update_pwm_buffers(uint8_t addr, uint8_t index) {
|
||||
//xprintf("IS31FS3235A_update_pwm_buffers(0x%x, %d)\n", addr, index);
|
||||
if (g_rgb7seg_buffer_update_required) {
|
||||
IS31FL3235A_write_pwm_buffer(addr, g_rgb7seg_buffer[index]);
|
||||
g_rgb7seg_buffer_update_required = false;
|
||||
}
|
||||
}
|
||||
|
||||
void IS31FL3235A_update_led_control_registers(uint8_t addr, uint8_t index) {
|
||||
if (g_rgb7seg_control_registers_update_required) {
|
||||
for (int i=0; i<18; i++) {
|
||||
IS31FL3235A_write_register(addr, i, g_3235a_control_registers[index][i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
141
drivers/issi/is31fl3235a.h
Normal file
141
drivers/issi/is31fl3235a.h
Normal file
@@ -0,0 +1,141 @@
|
||||
/* Copyright 2017 Jason Williams
|
||||
* Copyright 2018 Jack Humbert
|
||||
* Copyright 2019 Clueboard
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef IS31FL3235A_DRIVER_H
|
||||
#define IS31FL3235A_DRIVER_H
|
||||
|
||||
|
||||
// This is a 7-bit address, that gets left-shifted and bit 0
|
||||
// set to 0 for write, 1 for read (as per I2C protocol)
|
||||
// The address will vary depending on your wiring:
|
||||
// 0b0111111 AD <-> VCC
|
||||
// 0b0111110 AD <-> SDA
|
||||
// 0b0111101 AD <-> SCL
|
||||
// 0b0111100 AD <-> GND
|
||||
#ifndef IS31FL3235A_COUNT
|
||||
#define IS31FL3235A_COUNT 1
|
||||
#endif
|
||||
#ifndef IS31FL3235A_DRIVER_ADDR_1
|
||||
#define IS31FL3235A_DRIVER_ADDR_1 0b0111111
|
||||
//#define IS31FL3235A_DRIVER_ADDR_1 0x7E
|
||||
#endif
|
||||
#ifndef IS31FL3235A_DRIVER_ADDR_2
|
||||
#define IS31FL3235A_DRIVER_ADDR_2 0b0111110
|
||||
#endif
|
||||
#ifndef IS31FL3235A_DRIVER_ADDR_3
|
||||
#define IS31FL3235A_DRIVER_ADDR_3 0b0111101
|
||||
#endif
|
||||
#ifndef IS31FL3235A_DRIVER_ADDR_4
|
||||
#define IS31FL3235A_DRIVER_ADDR_4 0b0111100
|
||||
#endif
|
||||
|
||||
// This is the max number of LEDs this driver supports per IC
|
||||
#define IS31FL3235A_LED_MAX 28
|
||||
#ifndef IS31FL3235A_LED_COUNT
|
||||
#define IS31FL3235A_LED_COUNT IS31FL3235A_LED_MAX
|
||||
#endif
|
||||
|
||||
// Registers we will need to write to
|
||||
#define ISSI_REG_SHUTDOWN 0x00 // Control the software shutdown state of the controller
|
||||
#define ISSI_REG_GLOBAL_CONTROL 0x4A // Write 0 for normal operation, 1 to shutdown all LEDs
|
||||
#define ISSI_REG_OUTPUT_FREQ 0x4B // Write 0 for 3kHz PWM, 1 for 22kHz
|
||||
#define ISSI_REG_RESET_REG 0x4F // Write 0 to reset all registers to default value
|
||||
|
||||
|
||||
void IS31FL3235A_init(uint8_t addr);
|
||||
void IS31FL3235A_write_register(uint8_t addr, uint8_t reg, uint8_t data);
|
||||
void IS31FL3235A_write_pwm_buffer(uint8_t addr, uint8_t *pwm_buffer);
|
||||
|
||||
void IS31FL3235A_set_value(int index, uint8_t value);
|
||||
void IS31FL3235A_set_value_all(uint8_t value);
|
||||
|
||||
void IS31FL3235A_set_led_control_register(uint8_t index, bool value);
|
||||
|
||||
// This should not be called from an interrupt
|
||||
// (eg. from a timer interrupt).
|
||||
// Call this while idle (in between matrix scans).
|
||||
// If the buffer is dirty, it will update the driver with the buffer.
|
||||
void IS31FL3235A_update_pwm_buffers(uint8_t addr, uint8_t index);
|
||||
void IS31FL3235A_update_led_control_registers(uint8_t addr, uint8_t index);
|
||||
|
||||
// The address for each LED in the is31fl3235a's Control Register
|
||||
enum control_register {
|
||||
CR_OUT1 = 0x2A,
|
||||
CR_OUT2,
|
||||
CR_OUT3,
|
||||
CR_OUT4,
|
||||
CR_OUT5,
|
||||
CR_OUT6,
|
||||
CR_OUT7,
|
||||
CR_OUT8,
|
||||
CR_OUT9,
|
||||
CR_OUT10,
|
||||
CR_OUT11,
|
||||
CR_OUT12,
|
||||
CR_OUT13,
|
||||
CR_OUT14,
|
||||
CR_OUT15,
|
||||
CR_OUT16,
|
||||
CR_OUT17,
|
||||
CR_OUT18,
|
||||
CR_OUT19,
|
||||
CR_OUT20,
|
||||
CR_OUT21,
|
||||
CR_OUT22,
|
||||
CR_OUT23,
|
||||
CR_OUT24,
|
||||
CR_OUT25,
|
||||
CR_OUT26,
|
||||
CR_OUT27,
|
||||
CR_OUT28
|
||||
};
|
||||
|
||||
// The address for each LED in the is31fl3235a's PWM Register
|
||||
enum pwm_register {
|
||||
OUT1 = 0x05,
|
||||
OUT2,
|
||||
OUT3,
|
||||
OUT4,
|
||||
OUT5,
|
||||
OUT6,
|
||||
OUT7,
|
||||
OUT8,
|
||||
OUT9,
|
||||
OUT10,
|
||||
OUT11,
|
||||
OUT12,
|
||||
OUT13,
|
||||
OUT14,
|
||||
OUT15,
|
||||
OUT16,
|
||||
OUT17,
|
||||
OUT18,
|
||||
OUT19,
|
||||
OUT20,
|
||||
OUT21,
|
||||
OUT22,
|
||||
OUT23,
|
||||
OUT24,
|
||||
OUT25,
|
||||
OUT26,
|
||||
OUT27,
|
||||
OUT28
|
||||
};
|
||||
|
||||
#endif // IS31FL3235A_DRIVER_H
|
||||
@@ -22,10 +22,16 @@ void qwiic_init(void) {
|
||||
#ifdef QWIIC_MICRO_OLED_ENABLE
|
||||
micro_oled_init();
|
||||
#endif
|
||||
#ifdef QWIIC_RGB7SEG_ENABLE
|
||||
rgb7seg_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
void qwiic_task(void) {
|
||||
#ifdef QWIIC_JOYSTIIC_ENABLE
|
||||
joystiic_task();
|
||||
#endif
|
||||
#ifdef QWIIC_RGB7SEG_ENABLE
|
||||
rgb7seg_task();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
#ifdef QWIIC_MICRO_OLED_ENABLE
|
||||
#include "micro_oled.h"
|
||||
#endif
|
||||
#ifdef QWIIC_RGB7SEG_ENABLE
|
||||
#include "rgb7seg.h"
|
||||
#endif
|
||||
|
||||
void qwiic_init(void);
|
||||
void qwiic_task(void);
|
||||
|
||||
@@ -16,3 +16,9 @@ ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),)
|
||||
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
|
||||
SRC += micro_oled.c
|
||||
endif
|
||||
|
||||
ifneq ($(filter RGB7SEG, $(QWIIC_ENABLE)),)
|
||||
COMMON_VPATH += $(DRIVER_PATH)/issi
|
||||
OPT_DEFS += -DQWIIC_RGB7SEG_ENABLE
|
||||
SRC += rgb7seg.c is31fl3235a.c
|
||||
endif
|
||||
|
||||
168
drivers/qwiic/rgb7seg.c
Normal file
168
drivers/qwiic/rgb7seg.c
Normal file
@@ -0,0 +1,168 @@
|
||||
/* Copyright 2017 Jason Williams
|
||||
* Copyright 2017 Jack Humbert
|
||||
* Copyright 2018 Yiancar
|
||||
* Copyright 2019 Clueboard
|
||||
*
|
||||
* 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 <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "quantum.h"
|
||||
#include "rgb7seg.h"
|
||||
#include "is31fl3235a.h"
|
||||
#include "progmem.h"
|
||||
#include "config.h"
|
||||
#include "eeprom.h"
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y))
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) ((a) < (b)? (a): (b))
|
||||
#endif
|
||||
|
||||
// State variables
|
||||
uint32_t g7_tick = 0; // Global tick at 20 Hz
|
||||
bool rgb7seg_enabled = 0; // Whether or not the display is turned on
|
||||
|
||||
/*
|
||||
const rgb7seg_led g_rgb7seg_leds[IS31FL3235A_COUNT * 8][4] = {
|
||||
/ * Refer to IS31 manual for these locations
|
||||
* driver
|
||||
* | R LED address
|
||||
* | | G LED address
|
||||
* | | | B LED address
|
||||
* | | | | * /
|
||||
{0, OUT17, OUT16, OUT15}, // A, top middle
|
||||
{0, OUT22, OUT21, OUT20}, // B, top right
|
||||
{0, OUT26, OUT27, OUT28}, // C, bottom right
|
||||
{0, OUT1, OUT2, OUT3}, // D, bottom center
|
||||
{0, OUT23, OUT24, OUT25}, // DP, dot
|
||||
{0, OUT4, OUT5, OUT6}, // E, bottom left
|
||||
{0, OUT9, OUT7, OUT8}, // F, top left
|
||||
{0, OUT14, OUT13, OUT12}, // G, center
|
||||
#if IS31FL3235A_COUNT > 1
|
||||
{1, OUT17, OUT16, OUT15}, // A, top middle
|
||||
{1, OUT22, OUT21, OUT20}, // B, top right
|
||||
{1, OUT26, OUT27, OUT28}, // C, bottom right
|
||||
{1, OUT1, OUT2, OUT3}, // D, bottom center
|
||||
{1, OUT23, OUT24, OUT25}, // DP, dot
|
||||
{1, OUT4, OUT5, OUT6}, // E, bottom left
|
||||
{1, OUT9, OUT7, OUT8}, // F, top left
|
||||
{1, OUT14, OUT13, OUT12}, // G, center
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 2
|
||||
{2, OUT17, OUT16, OUT15}, // A, top middle
|
||||
{2, OUT17, OUT16, OUT15}, // A, top middle
|
||||
{2, OUT22, OUT21, OUT20}, // B, top right
|
||||
{2, OUT26, OUT27, OUT28}, // C, bottom right
|
||||
{2, OUT1, OUT2, OUT3}, // D, bottom center
|
||||
{2, OUT23, OUT24, OUT25}, // DP, dot
|
||||
{2, OUT4, OUT5, OUT6}, // E, bottom left
|
||||
{2, OUT9, OUT7, OUT8}, // F, top left
|
||||
{2, OUT14, OUT13, OUT12}, // G, center
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 3
|
||||
{3, OUT17, OUT16, OUT15}, // A, top middle
|
||||
{3, OUT22, OUT21, OUT20}, // B, top right
|
||||
{3, OUT26, OUT27, OUT28}, // C, bottom right
|
||||
{3, OUT1, OUT2, OUT3}, // D, bottom center
|
||||
{3, OUT23, OUT24, OUT25}, // DP, dot
|
||||
{3, OUT4, OUT5, OUT6}, // E, bottom left
|
||||
{3, OUT9, OUT7, OUT8}, // F, top left
|
||||
{3, OUT14, OUT13, OUT12}, // G, center
|
||||
{3, OUT22, OUT21, OUT20}, // B, top right
|
||||
#endif
|
||||
};
|
||||
*/
|
||||
|
||||
// API
|
||||
void rgb7seg_flush(void) {
|
||||
IS31FL3235A_update_pwm_buffers(IS31FL3235A_DRIVER_ADDR_1, 0);
|
||||
#if IS31FL3235A_COUNT > 1
|
||||
IS31FL3235A_update_pwm_buffers(IS31FL3235A_DRIVER_ADDR_2, 1);
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 2
|
||||
IS31FL3235A_update_pwm_buffers(IS31FL3235A_DRIVER_ADDR_3, 2);
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 3
|
||||
IS31FL3235A_update_pwm_buffers(IS31FL3235A_DRIVER_ADDR_4, 3);
|
||||
#endif
|
||||
}
|
||||
|
||||
void rgb7seg_set_index_value(int index, uint8_t value) {
|
||||
IS31FL3235A_set_value(index, value);
|
||||
}
|
||||
|
||||
void rgb7seg_set_index_value_all(uint8_t value) {
|
||||
IS31FL3235A_set_value_all(value);
|
||||
}
|
||||
|
||||
// All LEDs off
|
||||
void rgb7seg_off(void) {
|
||||
rgb7seg_set_index_value_all(0);
|
||||
}
|
||||
|
||||
void rgb7seg_task(void) {
|
||||
g7_tick++;
|
||||
|
||||
// Do something here?
|
||||
|
||||
// Tell the LED driver to update its state
|
||||
rgb7seg_flush();
|
||||
}
|
||||
|
||||
void rgb7seg_init(void) {
|
||||
IS31FL3235A_init(IS31FL3235A_DRIVER_ADDR_1);
|
||||
#if IS31FL3235A_COUNT > 1
|
||||
IS31FL3235A_init(IS31FL3235A_DRIVER_ADDR_2);
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 2
|
||||
IS31FL3235A_init(IS31FL3235A_DRIVER_ADDR_3);
|
||||
#endif
|
||||
#if IS31FL3235A_COUNT > 3
|
||||
IS31FL3235A_init(IS31FL3235A_DRIVER_ADDR_4);
|
||||
#endif
|
||||
|
||||
// Wait half a second for the driver to finish initializing
|
||||
wait_ms(500);
|
||||
}
|
||||
|
||||
uint32_t rgb7seg_get_tick(void) {
|
||||
return g7_tick;
|
||||
}
|
||||
|
||||
void rgb7seg_toggle(void) {
|
||||
rgb7seg_enabled ^= 1;
|
||||
}
|
||||
|
||||
void rgb7seg_enable(void) {
|
||||
rgb7seg_enabled = 1;
|
||||
}
|
||||
|
||||
void rgb7seg_disable(void) {
|
||||
rgb7seg_enabled = 0;
|
||||
}
|
||||
|
||||
void rgb7seg_increase_val(void) {
|
||||
// FIXME: Implement
|
||||
}
|
||||
|
||||
void rgb7seg_decrease_val(void) {
|
||||
// FIXME: Implement
|
||||
}
|
||||
60
drivers/qwiic/rgb7seg.h
Normal file
60
drivers/qwiic/rgb7seg.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/* Copyright 2017 Jason Williams
|
||||
* Copyright 2017 Jack Humbert
|
||||
* Copyright 2018 Yiancar
|
||||
* Copyright 2019 Clueboard
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#ifndef LED_MATRIX_H
|
||||
#define LED_MATRIX_H
|
||||
|
||||
#include "is31fl3235a.h"
|
||||
|
||||
#ifndef BACKLIGHT_ENABLE
|
||||
#error You must define BACKLIGHT_ENABLE with LED_MATRIX_ENABLE
|
||||
#endif
|
||||
|
||||
|
||||
void rgb7seg_task(void);
|
||||
void rgb7seg_init(void);
|
||||
|
||||
// This should not be called from an interrupt
|
||||
// (eg. from a timer interrupt).
|
||||
// Call this while idle (in between matrix scans).
|
||||
// If the buffer is dirty, it will update the driver with the buffer.
|
||||
void rgb7seg_flush(void);
|
||||
|
||||
uint32_t rgb7seg_get_tick(void);
|
||||
|
||||
void rgb7seg_off(void);
|
||||
void rgb7seg_set_index_value(int index, uint8_t value);
|
||||
void rgb7seg_set_index_value_all(uint8_t value);
|
||||
|
||||
void rgb7seg_toggle(void);
|
||||
void rgb7seg_enable(void);
|
||||
void rgb7seg_disable(void);
|
||||
void rgb7seg_increase_val(void);
|
||||
void rgb7seg_decrease_val(void);
|
||||
|
||||
typedef struct rgb7seg_led {
|
||||
uint8_t driver;
|
||||
uint8_t r;
|
||||
uint8_t g;
|
||||
uint8_t b;
|
||||
} __attribute__((packed)) rgb7seg_led;
|
||||
|
||||
extern const rgb7seg_led g_rgb7seg_leds[IS31FL3235A_COUNT * 8];
|
||||
|
||||
#endif
|
||||
@@ -13,8 +13,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef KB_H
|
||||
#define KB_H
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
@@ -36,4 +35,3 @@
|
||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, KC_NO, K3D }, \
|
||||
{ K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, KC_NO, K4D } \
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -68,5 +68,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||
EXTRAFLAGS += -flto
|
||||
|
||||
LAYOUTS = 60_ansi
|
||||
|
||||
@@ -46,35 +46,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
writePinLow(B6);
|
||||
} else {
|
||||
writePinHigh(B6);
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_COMPOSE)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
if (usb_led & (1 << USB_LED_KANA)) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -54,5 +54,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https:/
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
EXTRAFLAGS += -flto
|
||||
|
||||
LAYOUTS = 60_hhkb
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef KB_H
|
||||
#define KB_H
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
@@ -77,5 +76,3 @@
|
||||
K300, KC_NO,K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
|
||||
KC_NO,K401, K403, K406, KC_NO,K411, K413, KC_NO \
|
||||
)
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
@@ -46,5 +45,3 @@
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# 1upkeyboards 60% RGB
|
||||
# 1up60rgb 60% RGB
|
||||
|
||||
Firmware for custom keyboard PCB with 60% key layout.
|
||||
|
||||
|
||||
@@ -44,15 +44,15 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE ?= no # Console for debug(+400)
|
||||
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 ?= yes # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE ?= no
|
||||
RGBLIGHT_ENABLE ?= yes
|
||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
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 = yes # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
|
||||
LAYOUTS = 60_ansi 60_iso 60_ansi_split_bs_rshift 60_hhkb
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# 1UP Keyboards
|
||||
|
||||
1UP Keyboards is an online mechanical keyboard retailer located in New York, USA.
|
||||
|
||||
Website: [1UP Keyboards](https://www.1upkeyboards.com/)
|
||||
Discord: [Server Invite](https://discordapp.com/invite/c6SYn8)
|
||||
YouTube: [skiwithpete](https://www.youtube.com/user/skiwithpete)
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2019 'mechmerlin'
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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
|
||||
|
||||
@@ -80,4 +80,4 @@ AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||
|
||||
LAYOUTS = ortho_4x4
|
||||
LAYOUTS = ortho_4x4
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
@@ -47,4 +46,3 @@
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
Sweet16
|
||||
===
|
||||
# Sweet 16 Macropad
|
||||
|
||||
A 4x4 numpad/macro pad sold by 1up Keyboards - designed by Bishop Keyboards
|
||||
|
||||
|
||||
@@ -53,4 +53,5 @@ 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
|
||||
RGBLIGHT_ENABLE = yes
|
||||
EXTRAFLAGS += -flto
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#ifndef KB_H
|
||||
#define KB_H
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
@@ -29,4 +28,3 @@
|
||||
{ KC_NO, K31, K32, KC_NO } \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
"keyboard_name": "foobar",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 6,
|
||||
"height": 2,
|
||||
"width": 10,
|
||||
"height": 3,
|
||||
"layouts": {
|
||||
"LAYOUT_macro": {
|
||||
"width": 5,
|
||||
"height": 3,
|
||||
"key_count": 15,
|
||||
"layout": [
|
||||
{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0},
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#define ___ KC_NO
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
@@ -26,18 +27,18 @@
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K50, K51, K52, K53, K54, K55, K56, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K60, K61, K62, K63, K64, K65, K66, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K70, K71, K72, K73, K74, K75, K76, \
|
||||
K34, K82 \
|
||||
L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
|
||||
L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
|
||||
L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
|
||||
L34, R32 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06 }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16 }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, K34, KC_NO, KC_NO }, \
|
||||
{ L00, L01, L02, L03, L04, L05, L06 }, \
|
||||
{ L10, L11, L12, L13, L14, L15, L16 }, \
|
||||
{ L20, L21, L22, L23, L24, L25, L26 }, \
|
||||
{ ___, ___, ___, ___, L34, ___, ___ }, \
|
||||
\
|
||||
{ K56, K55, K54, K53, K52, K51, K50 }, \
|
||||
{ K66, K65, K64, K63, K62, K61, K60 }, \
|
||||
{ K76, K75, K74, K73, K72, K71, K70 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, K82, KC_NO, KC_NO } \
|
||||
{ R06, R05, R04, R03, R02, R01, R00 }, \
|
||||
{ R16, R15, R14, R13, R12, R11, R10 }, \
|
||||
{ R26, R25, R24, R23, R22, R21, R20 }, \
|
||||
{ ___, ___, ___, ___, R32, ___, ___ } \
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"keyboard_name": "half_n_half",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 14,
|
||||
"height": 4,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"key_count": 44,
|
||||
"layout": [
|
||||
{"label":"L00", "x":0, "y":0},
|
||||
{"label":"L01", "x":1, "y":0},
|
||||
{"label":"L02", "x":2, "y":0},
|
||||
{"label":"L03", "x":3, "y":0},
|
||||
{"label":"L04", "x":4, "y":0},
|
||||
{"label":"L05", "x":5, "y":0},
|
||||
{"label":"L06", "x":6, "y":0},
|
||||
{"label":"R00", "x":7, "y":0},
|
||||
{"label":"R01", "x":8, "y":0},
|
||||
{"label":"R02", "x":9, "y":0},
|
||||
{"label":"R03", "x":10, "y":0},
|
||||
{"label":"R04", "x":11, "y":0},
|
||||
{"label":"R05", "x":12, "y":0},
|
||||
{"label":"R06", "x":13, "y":0},
|
||||
|
||||
{"label":"L10", "x":0, "y":1},
|
||||
{"label":"L11", "x":1, "y":1},
|
||||
{"label":"L12", "x":2, "y":1},
|
||||
{"label":"L13", "x":3, "y":1},
|
||||
{"label":"L14", "x":4, "y":1},
|
||||
{"label":"L15", "x":5, "y":1},
|
||||
{"label":"L16", "x":6, "y":1},
|
||||
{"label":"R10", "x":7, "y":1},
|
||||
{"label":"R11", "x":8, "y":1},
|
||||
{"label":"R12", "x":9, "y":1},
|
||||
{"label":"R13", "x":10, "y":1},
|
||||
{"label":"R14", "x":11, "y":1},
|
||||
{"label":"R15", "x":12, "y":1},
|
||||
{"label":"R16", "x":13, "y":1},
|
||||
|
||||
{"label":"L20", "x":0, "y":2},
|
||||
{"label":"L21", "x":1, "y":2},
|
||||
{"label":"L22", "x":2, "y":2},
|
||||
{"label":"L23", "x":3, "y":2},
|
||||
{"label":"L24", "x":4, "y":2},
|
||||
{"label":"L25", "x":5, "y":2},
|
||||
{"label":"L26", "x":6, "y":2},
|
||||
{"label":"R20", "x":7, "y":2},
|
||||
{"label":"R21", "x":8, "y":2},
|
||||
{"label":"R22", "x":9, "y":2},
|
||||
{"label":"R23", "x":10, "y":2},
|
||||
{"label":"R24", "x":11, "y":2},
|
||||
{"label":"R25", "x":12, "y":2},
|
||||
{"label":"R26", "x":13, "y":2},
|
||||
|
||||
{"label":"L34", "x":4, "y":3, "w":2},
|
||||
{"label":"R32", "x":8, "y":3, "w":2}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
|
||||
// #define RGB_DI_PIN E2
|
||||
// #ifdef RGB_DI_PIN
|
||||
// #define RGBLED_NUM 16
|
||||
// #define RGBLIGHT_HUE_STEP 8
|
||||
// #define RGBLIGHT_SAT_STEP 8
|
||||
// #define RGBLIGHT_VAL_STEP 8
|
||||
// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||
// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
// /*== all animations enable ==*/
|
||||
// #define RGBLIGHT_ANIMATIONS
|
||||
// /*== or choose animations ==*/
|
||||
// #define RGBLIGHT_EFFECT_BREATHING
|
||||
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
// #define RGBLIGHT_EFFECT_SNAKE
|
||||
// #define RGBLIGHT_EFFECT_KNIGHT
|
||||
// #define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||
// #endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
|
||||
43
keyboards/40percentclub/mf68/keymaps/mf68_ble/config.h
Normal file
43
keyboards/40percentclub/mf68/keymaps/mf68_ble/config.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
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"
|
||||
|
||||
/* Overrides for Feather 32u4 Bluefruit */
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#undef DESCRIPTION
|
||||
#define DESCRIPTION Magicforce 68 BLE
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#undef MATRIX_ROW_PINS
|
||||
#undef MATRIX_COL_PINS
|
||||
#undef UNUSED_PINS
|
||||
#define MATRIX_ROW_PINS { D1, D0, C6, D7, B5, B6, B7, D6 }
|
||||
#define MATRIX_COL_PINS { C7, F7, F6, F5, F4, F1, F0, D2, D3 }
|
||||
#define UNUSED_PINS {B5}
|
||||
@@ -1,6 +1,6 @@
|
||||
# mf68_ble
|
||||
|
||||

|
||||

|
||||
===
|
||||
|
||||
Magicforce 68 with [replacement PCB](https://github.com/di0ib/tmk_keyboard/tree/master/keyboard/mf68) designed by [di0ib](https://github.com/di0ib).
|
||||
@@ -24,6 +24,6 @@ Below is how you wire the Feather to PCB
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make 40percentclub/mf68_ble:default
|
||||
make 40percentclub/mf68:mf68_ble
|
||||
|
||||
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).
|
||||
66
keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk
Normal file
66
keyboards/40percentclub/mf68/keymaps/mf68_ble/rules.mk
Normal file
@@ -0,0 +1,66 @@
|
||||
# Overrides for Feather 32u4 Bluefruit
|
||||
# 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 = 8000000
|
||||
|
||||
|
||||
#
|
||||
# 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 = caterina
|
||||
|
||||
|
||||
# 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
|
||||
# change yes to no to disable
|
||||
#
|
||||
BLUETOOTH = AdafruitBLE
|
||||
BACKLIGHT_ENABLE = no
|
||||
@@ -63,13 +63,14 @@ BOOTLOADER = caterina
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI controls
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
"keyboard_name": "MF68 BLE",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 17.25,
|
||||
"height": 5,
|
||||
"layouts": {
|
||||
"LAYOUT_68_ansi": {
|
||||
"layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"x":15.25, "y":1}, {"x":16.25, "y":1}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"x":15.25, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"Alt", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"x":14.25, "y":4}, {"x":15.25, "y":4}, {"x":16.25, "y":4}]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
#include "mf68_ble.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
|
||||
matrix_init_user();
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_68_ansi( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K10, K11, K12, K13, K14, K15, K16, \
|
||||
K17, K18, K20, K21, K22, K23, K24, K25, K26, K27, K28, K30, K31, K32, K33, K34, \
|
||||
K35, K36, K37, K38, K40, K41, K42, K43, K44, K45, K46, K47, K48, \
|
||||
K50, K51, K52, K53, K54, K55, K56, K57, K58, K60, K61, K62, K63, \
|
||||
K64, K65, K66, K67, K68, K70, K71, K72, K73, K74 \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18 }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38 }, \
|
||||
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
|
||||
{ K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \
|
||||
{ K60, K61, K62, K63, K64, K65, K66, K67, K68 }, \
|
||||
{ K70, K71, K72, K73, K74 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_kc( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K10, K11, K12, K13, K14, K15, K16, \
|
||||
K17, K18, K20, K21, K22, K23, K24, K25, K26, K27, K28, K30, K31, K32, K33, K34, \
|
||||
K35, K36, K37, K38, K40, K41, K42, K43, K44, K45, K46, K47, K48, \
|
||||
K50, K51, K52, K53, K54, K55, K56, K57, K58, K60, K61, K62, K63, \
|
||||
K64, K65, K66, K67, K68, K70, K71, K72, K73, K74 \
|
||||
) LAYOUT_68_ansi( \
|
||||
KC_##K00, KC_##K01, KC_##K02, KC_##K03, KC_##K04, KC_##K05, KC_##K06, KC_##K07, KC_##K08, \
|
||||
KC_##K10, KC_##K11, KC_##K12, KC_##K13, KC_##K14, KC_##K15, KC_##K16, KC_##K17, KC_##K18, \
|
||||
KC_##K20, KC_##K21, KC_##K22, KC_##K23, KC_##K24, KC_##K25, KC_##K26, KC_##K27, KC_##K28, \
|
||||
KC_##K30, KC_##K31, KC_##K32, KC_##K33, KC_##K34, KC_##K35, KC_##K36, KC_##K37, KC_##K38, \
|
||||
KC_##K40, KC_##K41, KC_##K42, KC_##K43, KC_##K44, KC_##K45, KC_##K46, KC_##K47, KC_##K48, \
|
||||
KC_##K50, KC_##K51, KC_##K52, KC_##K53, KC_##K54, KC_##K55, KC_##K56, KC_##K57, KC_##K58, \
|
||||
KC_##K60, KC_##K61, KC_##K62, KC_##K63, KC_##K64, KC_##K65, KC_##K66, KC_##K67, KC_##K68, \
|
||||
KC_##K70, KC_##K71, KC_##K72, KC_##K73, KC_##K74 \
|
||||
)
|
||||
245
keyboards/alf/x11/config.h
Normal file
245
keyboards/alf/x11/config.h
Normal file
@@ -0,0 +1,245 @@
|
||||
/*
|
||||
Copyright 2019 MechMerlin
|
||||
|
||||
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"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xFEED
|
||||
#define PRODUCT_ID 0x0000
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER Alf
|
||||
#define PRODUCT x11
|
||||
#define DESCRIPTION A TKL custom keyboard
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 7
|
||||
#define MATRIX_COLS 13
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 }
|
||||
#define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7, F0, F1, F4, F5, F6 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/*
|
||||
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
|
||||
*/
|
||||
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
|
||||
|
||||
#define BACKLIGHT_PIN B7
|
||||
#define BACKLIGHT_BREATHING
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
|
||||
#define RGB_DI_PIN F7
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 28
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== all animations enable ==*/
|
||||
#define RGBLIGHT_ANIMATIONS
|
||||
/*== or choose animations ==*/
|
||||
// #define RGBLIGHT_EFFECT_BREATHING
|
||||
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
// #define RGBLIGHT_EFFECT_SNAKE
|
||||
// #define RGBLIGHT_EFFECT_KNIGHT
|
||||
// #define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
// #define RGBLIGHT_EFFECT_RGB_TEST
|
||||
// #define RGBLIGHT_EFFECT_ALTERNATING
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCING_DELAY 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* number of backlight levels */
|
||||
|
||||
/* 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
|
||||
|
||||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||
*/
|
||||
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||
|
||||
/*
|
||||
* Force NKRO
|
||||
*
|
||||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
|
||||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
|
||||
* makefile for this to work.)
|
||||
*
|
||||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
|
||||
* until the next keyboard reset.
|
||||
*
|
||||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
|
||||
* fully operational during normal computer usage.
|
||||
*
|
||||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
|
||||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
|
||||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
|
||||
* power-up.
|
||||
*
|
||||
*/
|
||||
//#define FORCE_NKRO
|
||||
|
||||
/*
|
||||
* Magic Key Options
|
||||
*
|
||||
* Magic keys are hotkey commands that allow control over firmware functions of
|
||||
* the keyboard. They are best used in combination with the HID Listen program,
|
||||
* found here: https://www.pjrc.com/teensy/hid_listen.html
|
||||
*
|
||||
* The options below allow the magic key functionality to be changed. This is
|
||||
* useful if your keyboard/keypad is missing keys and you want magic key support.
|
||||
*
|
||||
*/
|
||||
|
||||
/* key combination for magic key command */
|
||||
/* defined by default; to change, uncomment and set to the combination you want */
|
||||
// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
|
||||
|
||||
/* control how magic key switches layers */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
|
||||
|
||||
/* override magic key keymap */
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
|
||||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
|
||||
//#define MAGIC_KEY_HELP H
|
||||
//#define MAGIC_KEY_HELP_ALT SLASH
|
||||
//#define MAGIC_KEY_DEBUG D
|
||||
//#define MAGIC_KEY_DEBUG_MATRIX X
|
||||
//#define MAGIC_KEY_DEBUG_KBD K
|
||||
//#define MAGIC_KEY_DEBUG_MOUSE M
|
||||
//#define MAGIC_KEY_VERSION V
|
||||
//#define MAGIC_KEY_STATUS S
|
||||
//#define MAGIC_KEY_CONSOLE C
|
||||
//#define MAGIC_KEY_LAYER0 0
|
||||
//#define MAGIC_KEY_LAYER0_ALT GRAVE
|
||||
//#define MAGIC_KEY_LAYER1 1
|
||||
//#define MAGIC_KEY_LAYER2 2
|
||||
//#define MAGIC_KEY_LAYER3 3
|
||||
//#define MAGIC_KEY_LAYER4 4
|
||||
//#define MAGIC_KEY_LAYER5 5
|
||||
//#define MAGIC_KEY_LAYER6 6
|
||||
//#define MAGIC_KEY_LAYER7 7
|
||||
//#define MAGIC_KEY_LAYER8 8
|
||||
//#define MAGIC_KEY_LAYER9 9
|
||||
//#define MAGIC_KEY_BOOTLOADER B
|
||||
//#define MAGIC_KEY_BOOTLOADER_ALT ESC
|
||||
//#define MAGIC_KEY_LOCK CAPS
|
||||
//#define MAGIC_KEY_EEPROM E
|
||||
//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
|
||||
//#define MAGIC_KEY_NKRO N
|
||||
//#define MAGIC_KEY_SLEEP_LED Z
|
||||
|
||||
/*
|
||||
* 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 NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
/*
|
||||
* MIDI options
|
||||
*/
|
||||
|
||||
/* Prevent use of disabled MIDI features in the keymap */
|
||||
//#define MIDI_ENABLE_STRICT 1
|
||||
|
||||
/* enable basic MIDI features:
|
||||
- MIDI notes can be sent when in Music mode is on
|
||||
*/
|
||||
//#define MIDI_BASIC
|
||||
|
||||
/* enable advanced MIDI features:
|
||||
- MIDI notes can be added to the keymap
|
||||
- Octave shift and transpose
|
||||
- Virtual sustain, portamento, and modulation wheel
|
||||
- etc.
|
||||
*/
|
||||
//#define MIDI_ADVANCED
|
||||
|
||||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||
//#define MIDI_TONE_KEYCODE_OCTAVES 1
|
||||
|
||||
/*
|
||||
* HD44780 LCD Display Configuration
|
||||
*/
|
||||
/*
|
||||
#define LCD_LINES 2 //< number of visible lines of the display
|
||||
#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
|
||||
|
||||
#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
|
||||
|
||||
#if LCD_IO_MODE
|
||||
#define LCD_PORT PORTB //< port for the LCD lines
|
||||
#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
|
||||
#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
|
||||
#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
|
||||
#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
|
||||
#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
|
||||
#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
|
||||
#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
|
||||
#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
|
||||
#define LCD_RS_PORT LCD_PORT //< port for RS line
|
||||
#define LCD_RS_PIN 3 //< pin for RS line
|
||||
#define LCD_RW_PORT LCD_PORT //< port for RW line
|
||||
#define LCD_RW_PIN 2 //< pin for RW line
|
||||
#define LCD_E_PORT LCD_PORT //< port for Enable line
|
||||
#define LCD_E_PIN 1 //< pin for Enable line
|
||||
#endif
|
||||
*/
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
// #define BOOTMAGIC_LITE_ROW 0
|
||||
// #define BOOTMAGIC_LITE_COLUMN 0
|
||||
103
keyboards/alf/x11/info.json
Normal file
103
keyboards/alf/x11/info.json
Normal file
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"keyboard_name": "QMK80",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 18.25,
|
||||
"height": 6.5,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"key_count": 88,
|
||||
"layout": [
|
||||
{"label":"K00", "x":0, "y":0},
|
||||
{"label":"K01", "x":2, "y":0},
|
||||
{"label":"K02", "x":3, "y":0},
|
||||
{"label":"K03", "x":4, "y":0},
|
||||
{"label":"K04", "x":5, "y":0},
|
||||
{"label":"K05", "x":6.5, "y":0},
|
||||
{"label":"K06", "x":7.5, "y":0},
|
||||
{"label":"K07", "x":8.5, "y":0},
|
||||
{"label":"K08", "x":9.5, "y":0},
|
||||
{"label":"K09", "x":11, "y":0},
|
||||
{"label":"K0A", "x":12, "y":0},
|
||||
{"label":"K0B", "x":13, "y":0},
|
||||
{"label":"K0C", "x":14, "y":0},
|
||||
{"label":"K60", "x":15.25, "y":0},
|
||||
{"label":"K61", "x":16.25, "y":0},
|
||||
{"label":"K62", "x":17.25, "y":0},
|
||||
{"label":"K10", "x":0, "y":1.5},
|
||||
{"label":"K11", "x":1, "y":1.5},
|
||||
{"label":"K12", "x":2, "y":1.5},
|
||||
{"label":"K13", "x":3, "y":1.5},
|
||||
{"label":"K14", "x":4, "y":1.5},
|
||||
{"label":"K15", "x":5, "y":1.5},
|
||||
{"label":"K16", "x":6, "y":1.5},
|
||||
{"label":"K17", "x":7, "y":1.5},
|
||||
{"label":"K18", "x":8, "y":1.5},
|
||||
{"label":"K19", "x":9, "y":1.5},
|
||||
{"label":"K1A", "x":10, "y":1.5},
|
||||
{"label":"K1B", "x":11, "y":1.5},
|
||||
{"label":"K1C", "x":12, "y":1.5},
|
||||
{"label":"K5A", "x":13, "y":1.5, "w":2},
|
||||
{"label":"K63", "x":15.25, "y":1.5},
|
||||
{"label":"K65", "x":16.25, "y":1.5},
|
||||
{"label":"K67", "x":17.25, "y":1.5},
|
||||
{"label":"K20", "x":0, "y":2.5, "w":1.5},
|
||||
{"label":"K21", "x":1.5, "y":2.5},
|
||||
{"label":"K22", "x":2.5, "y":2.5},
|
||||
{"label":"K23", "x":3.5, "y":2.5},
|
||||
{"label":"K24", "x":4.5, "y":2.5},
|
||||
{"label":"K25", "x":5.5, "y":2.5},
|
||||
{"label":"K26", "x":6.5, "y":2.5},
|
||||
{"label":"K27", "x":7.5, "y":2.5},
|
||||
{"label":"K28", "x":8.5, "y":2.5},
|
||||
{"label":"K29", "x":9.5, "y":2.5},
|
||||
{"label":"K2A", "x":10.5, "y":2.5},
|
||||
{"label":"K2B", "x":11.5, "y":2.5},
|
||||
{"label":"K2C", "x":12.5, "y":2.5},
|
||||
{"label":"K4C", "x":13.5, "y":2.5, "w":1.5},
|
||||
{"label":"K64", "x":15.25, "y":2.5},
|
||||
{"label":"K66", "x":16.25, "y":2.5},
|
||||
{"label":"K68", "x":17.25, "y":2.5},
|
||||
{"label":"K30", "x":0, "y":3.5, "w":1.75},
|
||||
{"label":"K31", "x":1.75, "y":3.5},
|
||||
{"label":"K32", "x":2.75, "y":3.5},
|
||||
{"label":"K33", "x":3.75, "y":3.5},
|
||||
{"label":"K34", "x":4.75, "y":3.5},
|
||||
{"label":"K35", "x":5.75, "y":3.5},
|
||||
{"label":"K36", "x":6.75, "y":3.5},
|
||||
{"label":"K37", "x":7.75, "y":3.5},
|
||||
{"label":"K38", "x":8.75, "y":3.5},
|
||||
{"label":"K39", "x":9.75, "y":3.5},
|
||||
{"label":"K3A", "x":10.75, "y":3.5},
|
||||
{"label":"K3B", "x":11.75, "y":3.5},
|
||||
{"label":"K3C", "x":12.75, "y":3.5, "w":2.25},
|
||||
{"label":"K40", "x":0, "y":4.5, "w":2.25},
|
||||
{"label":"K41", "x":2.25, "y":4.5},
|
||||
{"label":"K42", "x":3.25, "y":4.5},
|
||||
{"label":"K43", "x":4.25, "y":4.5},
|
||||
{"label":"K44", "x":5.25, "y":4.5},
|
||||
{"label":"K45", "x":6.25, "y":4.5},
|
||||
{"label":"K46", "x":7.25, "y":4.5},
|
||||
{"label":"K47", "x":8.25, "y":4.5},
|
||||
{"label":"K48", "x":9.25, "y":4.5},
|
||||
{"label":"K49", "x":10.25, "y":4.5},
|
||||
{"label":"K4A", "x":11.25, "y":4.5},
|
||||
{"label":"K4B", "x":12.25, "y":4.5, "w":1.75},
|
||||
{"label":"K69", "x":14, "y":4.5},
|
||||
{"label":"K58", "x":16.25, "y":4.5},
|
||||
{"label":"K50", "x":0, "y":5.5, "w":1.25},
|
||||
{"label":"K51", "x":1.25, "y":5.5, "w":1.25},
|
||||
{"label":"K52", "x":2.5, "y":5.5, "w":1.25},
|
||||
{"label":"K53", "x":3.75, "y":5.5, "w":6.25},
|
||||
{"label":"K54", "x":10, "y":5.5, "w":1.25},
|
||||
{"label":"K55", "x":11.25, "y":5.5, "w":1.25},
|
||||
{"label":"K56", "x":12.5, "y":5.5, "w":1.25},
|
||||
{"label":"K57", "x":13.75, "y":5.5, "w":1.25},
|
||||
{"label":"K6A", "x":15.25, "y":5.5},
|
||||
{"label":"K59", "x":16.25, "y":5.5},
|
||||
{"label":"K6B", "x":17.25, "y":5.5}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
19
keyboards/alf/x11/keymaps/default/config.h
Normal file
19
keyboards/alf/x11/keymaps/default/config.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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
|
||||
|
||||
// place overrides here
|
||||
78
keyboards/alf/x11/keymaps/default/keymap.c
Normal file
78
keyboards/alf/x11/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,78 @@
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes {
|
||||
QMKBEST = SAFE_RANGE,
|
||||
QMKURL
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT( \
|
||||
KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS, 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_BSPC, KC_INS, KC_HOME, KC_PGUP, 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_DEL, KC_END, KC_PGDN, KC_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_LSFT, KC_Z, \
|
||||
KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP, KC_LCTL, \
|
||||
KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
[1] = LAYOUT( \
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
|
||||
KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_TOGG, BL_DEC, BL_INC, BL_STEP, KC_TRNS, KC_TRNS, \
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_MPLY, KC_MSTP, RGB_TOG, RGB_MOD, \
|
||||
RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_VAI, KC_TRNS, \
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_MOD, RGB_VAD, RGB_SAD \
|
||||
),
|
||||
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QMKBEST:
|
||||
if (record->event.pressed) {
|
||||
// when keycode QMKBEST is pressed
|
||||
SEND_STRING("QMK is the best thing ever!");
|
||||
} else {
|
||||
// when keycode QMKBEST is released
|
||||
}
|
||||
break;
|
||||
case QMKURL:
|
||||
if (record->event.pressed) {
|
||||
// when keycode QMKURL is pressed
|
||||
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
|
||||
} else {
|
||||
// when keycode QMKURL is released
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
||||
1
keyboards/alf/x11/keymaps/default/readme.md
Normal file
1
keyboards/alf/x11/keymaps/default/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
# The default keymap for x11
|
||||
13
keyboards/alf/x11/readme.md
Normal file
13
keyboards/alf/x11/readme.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Alf X1.1
|
||||
|
||||
TKL Keyboard made by Alf
|
||||
|
||||
Keyboard Maintainer: [MechMerlin](https://github.com/mechmerlin)
|
||||
Hardware Supported: Alf X1.1 PCB
|
||||
Hardware Availability: [Massdrop](https://www.massdrop.com/buy/alf-studio-x1-1-custom-mechanical-keyboard-kit)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make alf/x11: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).
|
||||
82
keyboards/alf/x11/rules.mk
Normal file
82
keyboards/alf/x11/rules.mk
Normal file
@@ -0,0 +1,82 @@
|
||||
# MCU name
|
||||
#MCU = at90usb1286
|
||||
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
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
|
||||
EXTRAFLAGS += -flto
|
||||
63
keyboards/alf/x11/x11.c
Normal file
63
keyboards/alf/x11/x11.c
Normal file
@@ -0,0 +1,63 @@
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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 "x11.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
// put your keyboard start-up code here
|
||||
// runs once when the firmware starts up
|
||||
setPinOutput(C6);
|
||||
setPinOutput(E6);
|
||||
setPinOutput(C7);
|
||||
matrix_init_user();
|
||||
}
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
// put your looping keyboard code here
|
||||
// runs every cycle (a lot)
|
||||
|
||||
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
|
||||
|
||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
writePinLow(C6);
|
||||
} else {
|
||||
writePinHigh(C6);
|
||||
}
|
||||
|
||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
||||
writePinLow(E6);
|
||||
} else {
|
||||
writePinHigh(E6);
|
||||
}
|
||||
|
||||
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
||||
writePinLow(C7);
|
||||
} else {
|
||||
writePinHigh(C7);
|
||||
}
|
||||
|
||||
led_set_user(usb_led);
|
||||
}
|
||||
43
keyboards/alf/x11/x11.h
Normal file
43
keyboards/alf/x11/x11.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Copyright 2019 MechMerlin
|
||||
*
|
||||
* 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 "quantum.h"
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K60, K61, K62, \
|
||||
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K5A, K63, K65, K67, \
|
||||
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K4C, K64, K66, K68, \
|
||||
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \
|
||||
K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K69, K58, \
|
||||
K50, K51, K52, K53, K54, K55, K56, K57, K6A, K59, K6B \
|
||||
) { \
|
||||
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C }, \
|
||||
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \
|
||||
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C }, \
|
||||
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C }, \
|
||||
{ K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C }, \
|
||||
{ K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, KC_NO, KC_NO }, \
|
||||
{ K60, K61, K62, K63, K64, K65, K66, K67, K68, K69, K6A, K6B, KC_NO }, \
|
||||
}
|
||||
@@ -38,7 +38,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
*/
|
||||
[_LW] = LAYOUT( /* [> LOWER <] */
|
||||
KC_INS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_UP, KC_F7, KC_F8, KC_F9, KC_F10 ,
|
||||
KC_DELT, KC_LEFT, KC_DOWN, KC_RGHT, KC_DOWN, KC_DOWN, KC_F4, KC_F5, KC_F6, KC_F11 ,
|
||||
KC_DELT, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_DOWN, KC_F4, KC_F5, KC_F6, KC_F11 ,
|
||||
KC_NO, KC_VOLU, KC_NO, KC_NO, RESET, KC_NO, KC_F1, KC_F2, KC_F3, KC_F12 ,
|
||||
KC_NO, KC_VOLD, KC_LGUI, KC_LSFT, KC_BSPC, KC_LCTL, KC_LALT, KC_SPC, TO(_QW), KC_PSCR, KC_SLCK, KC_PAUS )
|
||||
};
|
||||
|
||||
@@ -1,77 +1,103 @@
|
||||
# Overview
|
||||
|
||||
A Balance 12 layout for the Atreus keyboard.
|
||||
This layout is based on Balance Twelve (mirror variant) by Sasha Viminitz. Please see [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
|
||||
for more information. It's designed for left-handers who use their right hand for the mouse.
|
||||
|
||||
Balance 12 was created by Sasha Viminitz. Please see [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
|
||||
for some background on the design of the layout.
|
||||
## To build
|
||||
|
||||
* The variant used here is a mirror of the original for left-handers
|
||||
* The central column of punctuation keys has been moved elsewhere
|
||||
* Home positions for the left and right forefingers are *T* and *A* respectively
|
||||
```
|
||||
sudo make atreus:yttyx
|
||||
```
|
||||
|
||||
## To build/flash
|
||||
## To flash (example)
|
||||
|
||||
> make atreus:yttyx:avrdude
|
||||
```
|
||||
sudo avrdude -p atmega32u4 -c avr109 -U flash:w:atreus_yttyx.hex -P /dev/ttyACM0
|
||||
```
|
||||
|
||||
## Layers
|
||||
|
||||
### Base:
|
||||
|
||||
.----------------------------------. .------------------------------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
+------+------+------+-----+-------| |------+-----+-----+-----+-----|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
+------+------+------+-----+-------| |------+-----+-----+-----+-----|
|
||||
| Z | J | F | G | B | | , | . | ; | X | - |
|
||||
+------+------+------+-----+-------+---------+------+-----+-----+-----+-----|
|
||||
| Shft | Ctl | Alt | BS | Space | L1 | R1 | Shft | R2 | Win | Ctl | Alt |
|
||||
'---------------------------------------------------------------------------'
|
||||
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup |
|
||||
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS P1 | Spc P2 | P3 | | | Sft | |
|
||||
'-------'--------'-----' '-----'-------'-------'
|
||||
|
||||
### L1:
|
||||
### P1: Punctuation (1)
|
||||
|
||||
.---------------------------------. .--------------------------------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||
|------+------+------+----+-------| |------+----+-----+------+-------|
|
||||
| Tab | ? | = | - | _ | | ' | " | + | * | Enter |
|
||||
|------+------+------+----+-------| |------+----+-----+------+-------|
|
||||
| Esc | ! | & | | | | , | . | ; | | - |
|
||||
|------+------+------+----+-------+---------+------+----+-----+------+-------|
|
||||
| Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
|
||||
'----------------------------------------------------------------------------'
|
||||
|
||||
### R1:
|
||||
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | | | RS | | | | / | ^ | <20> | ~ |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | | | | & | \ | ` | $ | Ent |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup |
|
||||
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| P1 | | | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
|
||||
.---------------------------------. .-------------------------------.
|
||||
| < | > | { | } | @ | | $ | <20> | | | R3 |
|
||||
+------+------+-----+-----|-------| |------+----+-----+------+------|
|
||||
| [ | ] | ( | ) | # | | ' | " | ~ | ` | Caps |
|
||||
|------+------+-----+-----+-------| |------+----+-----+------+------|
|
||||
| / | \ | ^ | | | % | | , | . | ; | | PScn |
|
||||
|------+------+-----+-----+-------+---------+------+----+-----+------+------|
|
||||
| Shft | Ctrl | Alt | Del | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
|
||||
'---------------------------------------------------------------------------'
|
||||
### P2: Punctuation (2)
|
||||
|
||||
### R2:
|
||||
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------.
|
||||
| Esc | | NC | FV | | | ( | ) | " | ? | |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS | P2 | | | | Sft | |
|
||||
'-------'-------'-----' '-----'-------'-------'
|
||||
|
||||
.-----------------------------------. .--------------------.-----------------.
|
||||
| F12 | F11 | F10 | F9 | Copy | | Home | Up | End | PgUp | Insert |
|
||||
|------+------+------+------+-------| |------+------+------+------+----------|
|
||||
| F8 | F7 | F6 | F5 | Paste | | Left | Down | Right| PgDn | Enter |
|
||||
|------+------+------+------+-------| |------+------+------+------+----------|
|
||||
| F4 | F3 | F2 | F1 | Cut | | ^Tab | | Tab | | |
|
||||
|------+------+------+------+-------+---------+------+------+------+------+----------|
|
||||
| Shft | Ctrl | Alt | Del | Undo | L1 | R1 | Shft | R2 | Sup | Ctrl | WinRight |
|
||||
'------------------------------------------------------------------------------------'
|
||||
### P3: Punctuation (3)
|
||||
|
||||
### R3:
|
||||
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | Caps | | | [ | ] | * | - | Ent |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| BS | | P3 | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
|
||||
.----------------------------. .------------------------.
|
||||
| RESET | | | | | | | | | | R3 |
|
||||
|-------+----+-----+----+----| |----+----+----+----+----|
|
||||
| | | | | | | | | | | |
|
||||
|-------+----+-----+----+----| |----+----+----+----+----|
|
||||
| | | | | | | | | | | |
|
||||
|-------+----+-----+----+----+---------+----+----+----+----+----|
|
||||
| | | | | | | | | | | | |
|
||||
'---------------------------------------------------------------'
|
||||
### Numerals / Cursor control
|
||||
|
||||
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'------'-------'-----' '-----'------'-------'
|
||||
|
||||
### FV: Function keys / Cursor control (Vim)
|
||||
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
|
||||
### RS: Reset
|
||||
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| RESET | | | | | | | | | | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| | | | | | | | | | | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| | | | | | | | | | | |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| | BA | | | | | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#define ONESHOT_TIMEOUT 500 // Time (in ms) before the one shot key is released
|
||||
|
||||
// Disable some options to reduce firmware size
|
||||
#define NO_PRINT
|
||||
#define NO_ACTION_TAPPING
|
||||
#pragma once
|
||||
#define NO_ACTION_ONESHOT
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
#endif
|
||||
|
||||
@@ -2,115 +2,158 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers {
|
||||
BASE, // Balance Twelve
|
||||
L1, // (momentary)
|
||||
R1, // (momentary)
|
||||
R2, // (momentary)
|
||||
R3 // (momentary)
|
||||
BA, // Base (Balance Twelve mirror variant)
|
||||
P1, // Punctuation (1)
|
||||
P2, // Punctuation (2)
|
||||
P3, // Punctuation (2)
|
||||
NC, // Numerals / Cursor control
|
||||
FV, // Function keys / Cursor control (Vim)
|
||||
RS // Reset
|
||||
};
|
||||
|
||||
// Aliases from replicaJunction's atreus layout
|
||||
#define KCX_LST LSFT(KC_TAB)
|
||||
#define KX_COPY LCTL(KC_C)
|
||||
#define KX_CUT LCTL(KC_X)
|
||||
#define KX_PAST LCTL(KC_V)
|
||||
#define KX_UNDO LCTL(KC_Z)
|
||||
// Abbreviations - base
|
||||
#define KX_P1_BSPC LT(P1, KC_BSPC)
|
||||
#define KX_P2_SPC LT(P2, KC_SPC)
|
||||
|
||||
#define KX_AT LSFT(KC_QUOT)
|
||||
#define KX_PIPE LSFT(KC_NUBS)
|
||||
#define KX_WINR LSFT(LGUI(KC_RGHT)) // Move window to next monitor (Windows)
|
||||
#define KX_SFT_Z MT(MOD_LSFT, KC_Z)
|
||||
#define KX_CTL_J MT(MOD_LCTL, KC_J)
|
||||
#define KX_ALT_F MT(MOD_LALT, KC_F)
|
||||
|
||||
#define KX_ALT_DOT MT(MOD_LALT, KC_DOT)
|
||||
#define KX_CTL_SCLN MT(MOD_LCTL, KC_SCLN)
|
||||
#define KX_SFT_X MT(MOD_LSFT, KC_X)
|
||||
|
||||
#define KX_AT LSFT(KC_QUOT)
|
||||
#define KX_DQUOT LSFT(KC_2)
|
||||
#define KX_PIPE LSFT(KC_NUBS)
|
||||
#define KX_TILDA LSFT(KC_NUHS)
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][ MATRIX_ROWS ][ MATRIX_COLS ] = {
|
||||
|
||||
/* Balance Twelve mirror variant (left-handed)
|
||||
.--------------------------------. .------------------------------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
+------+------+-----+----+-------| |------+----+-----+------+-----|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
+------+------+-----+----+-------| |------+----+-----+------+-----|
|
||||
| Z | J | F | G | B | | , | . | ; | X | - |
|
||||
+------+------+-----+----+-------+---------+------+----+-----+------+-----|
|
||||
| Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Win | Ctrl | Alt |
|
||||
'-------------------------------------------------------------------------'
|
||||
*/
|
||||
[BASE] = LAYOUT(
|
||||
KC_P, KC_L, KC_C, KC_D, KC_W, KC_U, KC_O, KC_Y, KC_K, KC_Q,
|
||||
KC_N, KC_R, KC_S, KC_T, KC_M, KC_A, KC_E, KC_I, KC_H, KC_V,
|
||||
KC_Z, KC_J, KC_F, KC_G, KC_B, KC_COMM, KC_DOT, KC_SCLN, KC_X, KC_MINS,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_BSPC, KC_SPC, MO(L1), MO(R1), OSM(MOD_LSFT), MO(R2), KC_LWIN, KC_RCTL, KC_RALT
|
||||
/*
|
||||
.--------.-------.-------.-------.--------. .-------.-------.-------.-------.------.
|
||||
| P | L | C | D | W | | U | O | Y | K | Q |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| N | R | S | T | M | | A | E | I | H | V |
|
||||
|--------+-------+-------+-------+--------| |-------+-------+-------+-------+------|
|
||||
| Z Sft | J Ctl | F Alt | G | B | | , | . Alt | ; Ctl | X Sft | Sup |
|
||||
'--------'-------'-------+-------+--------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS P1 | Spc P2 | P3 | | | Sft | |
|
||||
'-------'--------'-----' '-----'-------'-------'
|
||||
*/
|
||||
[BA] = LAYOUT(
|
||||
KC_P, KC_L, KC_C, KC_D, KC_W, KC_U, KC_O, KC_Y, KC_K, KC_Q,
|
||||
KC_N, KC_R, KC_S, KC_T, KC_M, KC_A, KC_E, KC_I, KC_H, KC_V,
|
||||
KX_SFT_Z, KX_CTL_J, KX_ALT_F, KC_G, KC_B, KC_COMM, KX_ALT_DOT, KX_CTL_SCLN, KX_SFT_X, KC_LGUI,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KX_P1_BSPC, KX_P2_SPC, MO(P3), XXXXXXX, KC_RSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* L1
|
||||
.---------------------------------. .--------------------------------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||
|------+------+------+----+-------| |------+----+-----+------+-------|
|
||||
| Tab | ? | = | - | _ | | ' | " | + | * | Enter |
|
||||
|------+------+------+----+-------| |------+----+-----+------+-------|
|
||||
| Esc | ! | & | | | | , | . | ; | | - |
|
||||
|------+------+------+----+-------+---------+------+----+-----+------+-------|
|
||||
| Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
|
||||
'----------------------------------------------------------------------------'
|
||||
/* P1: Punctuation (1)
|
||||
.--------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | | | RS | | | | / | ^ | <EFBFBD> | ~ |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | | | | & | \ | ` | $ | Ent |
|
||||
|--------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | % | Alt | Ctl | Sft | Sup |
|
||||
'--------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| P1 | | | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[L1] = LAYOUT(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||
KC_TAB, KC_QUES, KC_EQL, KC_MINS, KC_UNDS, KC_QUOT, LSFT(KC_2), KC_PLUS, KC_ASTR, KC_ENT,
|
||||
KC_ESC, KC_EXLM, KC_AMPR, XXXXXXX, XXXXXXX, _______, _______, _______, XXXXXXX, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
[P1] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, TO(RS), KX_PIPE, KC_SLSH, KC_CIRC, KC_HASH, KX_TILDA,
|
||||
KC_TAB, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_AMPR, KC_NUBS, KC_GRV, KC_DLR, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, KC_PERC, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* R1
|
||||
.---------------------------------. .-------------------------------.
|
||||
| < | > | { | } | @ | | $ | <EFBFBD> | | | R3 |
|
||||
+------+------+-----+-----|-------| |------+----+-----+------+------|
|
||||
| [ | ] | ( | ) | # | | ' | " | ~ | ` | Caps |
|
||||
|------+------+-----+-----+-------| |------+----+-----+------+------|
|
||||
| / | \ | ^ | | | % | | , | . | ; | | PScn |
|
||||
|------+------+-----+-----+-------+---------+------+----+-----+------+------|
|
||||
| Shft | Ctrl | Alt | Del | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
|
||||
'---------------------------------------------------------------------------'
|
||||
/* P2: Punctuation (2)
|
||||
.-------.-------.-------.-------.-------. .-------.-------.-------.-------.------.
|
||||
| Esc | | NC | FV | | | ( | ) | " | ? | |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Tab | Ctl-X | Ctl-C | Ctl-V | Ctl-Z | | { | } | ' | ! | Ent |
|
||||
|-------+-------+-------+-------+-------| |-------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | Ent | | # | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+-------+-------+-------'-------'------'
|
||||
| BS | P2 | | | | Sft | |
|
||||
'-------'-------'-----' '-----'-------'-------'
|
||||
*/
|
||||
[R1] = LAYOUT(
|
||||
KC_LABK, KC_RABK, KC_LCBR, KC_RCBR, KX_AT, KC_DLR, KC_HASH, XXXXXXX, XXXXXXX, MO(R3),
|
||||
KC_LBRC, KC_RBRC, KC_LPRN, KC_RPRN, KC_NUHS, KC_QUOT, LSFT(KC_2), LSFT(KC_NUHS), KC_GRV, KC_CAPS,
|
||||
KC_SLSH, KC_NUBS, KC_CIRC, KX_PIPE, KC_PERC, _______, _______, _______, XXXXXXX, KC_PSCR,
|
||||
_______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
[P2] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, TO(NC), TO(FV), XXXXXXX, KC_LPRN, KC_RPRN, KX_DQUOT, KC_QUES, XXXXXXX,
|
||||
KC_TAB, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), LCTL(KC_Z), KC_LCBR, KC_RCBR, KC_QUOT, KC_EXLM, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_ENT, KC_NUHS, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* R2
|
||||
.-----------------------------------. .--------------------.-----------------.
|
||||
| F12 | F11 | F10 | F9 | Copy | | Home | Up | End | PgUp | Insert |
|
||||
|------+------+------+------+-------| |------+------+------+------+----------|
|
||||
| F8 | F7 | F6 | F5 | Paste | | Left | Down | Right| PgDn | Enter |
|
||||
|------+------+------+------+-------| |------+------+------+------+----------|
|
||||
| F4 | F3 | F2 | F1 | Cut | | ^Tab | | Tab | | |
|
||||
|------+------+------+------+-------+---------+------+------+------+------+----------|
|
||||
| Shft | Ctrl | Alt | Del | Undo | L1 | R1 | Shft | R2 | Sup | Ctrl | WinRight |
|
||||
'------------------------------------------------------------------------------------'
|
||||
/* P3: Punctuation (3)
|
||||
.-------.-------.-------.-------.-------. .------.-------.-------.-------.------.
|
||||
| Esc | | Break | Pscr | ScLk | | < | > | + | _ | = |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Tab | | | Caps | | | [ | ] | * | - | Ent |
|
||||
|-------+-------+-------+-------+-------| |------+-------+-------+-------+------|
|
||||
| Sft | Ctl | Alt | Del | | | @ | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+-------+-------+-----. .-----+------+-------+-------'-------'------'
|
||||
| BS | | P3 | | | Sft | |
|
||||
'-------'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[R2] = LAYOUT(
|
||||
KC_F12, KC_F11, KC_F10, KC_F9, KX_COPY, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_INS,
|
||||
KC_F8, KC_F7, KC_F6, KC_F5, KX_PAST, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_ENT,
|
||||
KC_F4, KC_F3, KC_F2, KC_F1, KX_CUT, KCX_LST, XXXXXXX, KC_TAB, XXXXXXX, XXXXXXX,
|
||||
_______, _______, _______, KC_DEL, KX_UNDO, _______, _______, _______, _______, _______, _______, KX_WINR
|
||||
[P3] = LAYOUT(
|
||||
KC_ESC, XXXXXXX, KC_BRK, KC_PSCR, KC_SLCK, KC_LABK, KC_RABK, KC_PLUS, KC_UNDS, KC_EQL,
|
||||
KC_TAB, XXXXXXX, XXXXXXX, KC_CAPS, XXXXXXX, KC_LBRC, KC_RBRC, KC_ASTR, KC_MINS, KC_ENT,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, XXXXXXX, KX_AT, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, XXXXXXX, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* R3
|
||||
.----------------------------. .------------------------.
|
||||
| RESET | | | | | | | | | | R3 |
|
||||
|-------+----+-----+----+----| |----+----+----+----+----|
|
||||
| | | | | | | | | | | |
|
||||
|-------+----+-----+----+----| |----+----+----+----+----|
|
||||
| | | | | | | | | | | |
|
||||
|-------+----+-----+----+----+---------+----+----+----+----+----|
|
||||
| | | | | | | | | | | | |
|
||||
'---------------------------------------------------------------'
|
||||
/* NC: Numerals / Cursor control
|
||||
.-------.-------.-------.------.-------. .------.-------.-------.------.------.
|
||||
| 1 | 2 | 3 | 4 | 5 | | Home | Up | End | PgUp | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| 6 | 7 | 8 | 9 | 0 | | Left | Down | Right | PgDn | |
|
||||
|-------+-------+-------+------+-------| |------+-------+-------+------+------|
|
||||
| Sft | Ctl | Alt | Del | . | | Ins | Alt | Ctl | Sft | Sup |
|
||||
'-------'-------'-------+------+-------+-----. .-----+------+-------+-------'------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'------'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[R3] = 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, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
[NC] = LAYOUT(
|
||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_HOME, KC_UP, KC_END, KC_PGUP, XXXXXXX,
|
||||
KC_6, KC_7, KC_8, KC_9, KC_0, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, XXXXXXX,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_DEL, KC_DOT, KC_INS, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* FV: Function keys / Cursor control (Vim)
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| F1 | F2 | F3 | F4 | F5 | | 0 | K | $ | Ctl-B | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| F6 | F7 | F8 | F9 | F10 | | H | J | L | Ctl-F | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| Sft | Ctl | Alt | F11 | F12 | | | Alt | Ctl | Sft | Sup |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| BS | BA | | | | Sft | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[FV] = LAYOUT(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_0, KC_K, KC_DLR, LCTL(KC_B), XXXXXXX,
|
||||
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_H, KC_J, KC_L, LCTL(KC_F), XXXXXXX,
|
||||
KC_LSFT, KC_LCTL, KC_LALT, KC_F11, KC_F12, XXXXXXX, KC_LALT, KC_LCTL, KC_LSFT, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_BSPC, TO(BA), XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
/* RS: Reset
|
||||
.-------.------.-------.-----.-------. .------.-------.-----.-------.------.
|
||||
| RESET | | | | | | | | | | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| | | | | | | | | | | |
|
||||
|-------+------+-------+-----+-------| |------+-------+-----+-------+------|
|
||||
| | | | | | | | | | | |
|
||||
'-------'------'-------+-----+-------+-----. .-----+------+-------+-----'-------'------'
|
||||
| | BA | | | | | |
|
||||
'-----'-------'-----' '-----'------'-------'
|
||||
*/
|
||||
[RS] = 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,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, TO(BA), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
78
keyboards/boardwalk/boardwalk.h
Normal file
78
keyboards/boardwalk/boardwalk.h
Normal file
@@ -0,0 +1,78 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ortho_5x14( \
|
||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, \
|
||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, \
|
||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, \
|
||||
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, \
|
||||
k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k410, k411, k412, k413 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013 }, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113 }, \
|
||||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213 }, \
|
||||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313 }, \
|
||||
{ k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k410, k411, k412, k413 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_ortho_hhkb( \
|
||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, \
|
||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, \
|
||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, \
|
||||
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, \
|
||||
k41, k42, k43, k44, k45, k47, k49, k410, k411, k412 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013 }, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113 }, \
|
||||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213 }, \
|
||||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313 }, \
|
||||
{ KC_NO, k41, k42, k43, k44, k45, KC_NO, k47, KC_NO, k49, k410, k411, k412, KC_NO } \
|
||||
}
|
||||
|
||||
#define LAYOUT_ortho_7u( \
|
||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, \
|
||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, \
|
||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, \
|
||||
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, \
|
||||
k41, k42, k46, k411, k412 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013 }, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113 }, \
|
||||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213 }, \
|
||||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313 }, \
|
||||
{ KC_NO, k41, k42, KC_NO, KC_NO, KC_NO, k46, KC_NO, KC_NO, KC_NO, KC_NO, k411, k412, KC_NO } \
|
||||
}
|
||||
|
||||
#define LAYOUT_2u_arrow( \
|
||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, \
|
||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, \
|
||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, \
|
||||
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, \
|
||||
k40, k41, k42, k43, k44, k46, k48, k49, k410, k411, k412, k413 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013 }, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113 }, \
|
||||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213 }, \
|
||||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313 }, \
|
||||
{ k40, k41, k42, k43, k44, KC_NO, k46, KC_NO, k48, k49, k410, k411, k412, k413 } \
|
||||
}
|
||||
|
||||
#define LAYOUT_625u_arrow( \
|
||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013, \
|
||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113, \
|
||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213, \
|
||||
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313, \
|
||||
k40, k41, k42, k45, k49, k410, k411, k412, k413 \
|
||||
) \
|
||||
{ \
|
||||
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, k013 }, \
|
||||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, k113 }, \
|
||||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, k213 }, \
|
||||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, k311, k312, k313 }, \
|
||||
{ k40, k41, k42, KC_NO, KC_NO, k45, KC_NO, KC_NO, KC_NO, k49, k410, k411, k412, k413 } \
|
||||
}
|
||||
84
keyboards/boardwalk/config.h
Normal file
84
keyboards/boardwalk/config.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
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"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0xCDCD
|
||||
#define PRODUCT_ID 0x5337
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER shens
|
||||
#define PRODUCT Boardwalk
|
||||
#define DESCRIPTION QMK keyboard firmware for Boardwalk
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 5
|
||||
#define MATRIX_COLS 14
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { F0, F1, F4, F5, F6 }
|
||||
#define MATRIX_COL_PINS { F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
// #define BACKLIGHT_PIN F5
|
||||
// #define BACKLIGHT_LEVELS 6
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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
|
||||
|
||||
/*
|
||||
* 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 NO_ACTION_MACRO
|
||||
//#define NO_ACTION_FUNCTION
|
||||
|
||||
// ws2812 options
|
||||
#define RGB_DI_PIN B7 // pin the DI on the ws2812 is hooked-up to
|
||||
#define RGBLIGHT_ANIMATIONS // run RGB animations
|
||||
#define RGBLED_NUM 14 // number of LEDs
|
||||
#define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
|
||||
#define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation
|
||||
#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)
|
||||
359
keyboards/boardwalk/info.json
Normal file
359
keyboards/boardwalk/info.json
Normal file
@@ -0,0 +1,359 @@
|
||||
{
|
||||
"keyboard_name": "Boardwalk",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 15,
|
||||
"height": 5,
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_5x14": {
|
||||
"layout": [
|
||||
{"label":"k00", "x":0, "y":0, "w":1.5},
|
||||
{"label":"k01", "x":1.5, "y":0},
|
||||
{"label":"k02", "x":2.5, "y":0},
|
||||
{"label":"k03", "x":3.5, "y":0},
|
||||
{"label":"k04", "x":4.5, "y":0},
|
||||
{"label":"k05", "x":5.5, "y":0},
|
||||
{"label":"k06", "x":6.5, "y":0},
|
||||
{"label":"k07", "x":7.5, "y":0},
|
||||
{"label":"k08", "x":8.5, "y":0},
|
||||
{"label":"k09", "x":9.5, "y":0},
|
||||
{"label":"k010", "x":10.5, "y":0},
|
||||
{"label":"k011", "x":11.5, "y":0},
|
||||
{"label":"k012", "x":12.5, "y":0},
|
||||
{"label":"k013", "x":13.5, "y":0, "w":1.5},
|
||||
{"label":"k10", "x":0, "y":1, "w":1.5},
|
||||
{"label":"k11", "x":1.5, "y":1},
|
||||
{"label":"k12", "x":2.5, "y":1},
|
||||
{"label":"k13", "x":3.5, "y":1},
|
||||
{"label":"k14", "x":4.5, "y":1},
|
||||
{"label":"k15", "x":5.5, "y":1},
|
||||
{"label":"k16", "x":6.5, "y":1},
|
||||
{"label":"k17", "x":7.5, "y":1},
|
||||
{"label":"k18", "x":8.5, "y":1},
|
||||
{"label":"k19", "x":9.5, "y":1},
|
||||
{"label":"k110", "x":10.5, "y":1},
|
||||
{"label":"k111", "x":11.5, "y":1},
|
||||
{"label":"k112", "x":12.5, "y":1},
|
||||
{"label":"k113", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"k20", "x":0, "y":2, "w":1.5},
|
||||
{"label":"k21", "x":1.5, "y":2},
|
||||
{"label":"k22", "x":2.5, "y":2},
|
||||
{"label":"k23", "x":3.5, "y":2},
|
||||
{"label":"k24", "x":4.5, "y":2},
|
||||
{"label":"k25", "x":5.5, "y":2},
|
||||
{"label":"k26", "x":6.5, "y":2},
|
||||
{"label":"k27", "x":7.5, "y":2},
|
||||
{"label":"k28", "x":8.5, "y":2},
|
||||
{"label":"k29", "x":9.5, "y":2},
|
||||
{"label":"k210", "x":10.5, "y":2},
|
||||
{"label":"k211", "x":11.5, "y":2},
|
||||
{"label":"k212", "x":12.5, "y":2},
|
||||
{"label":"k213", "x":13.5, "y":2, "w":1.5},
|
||||
{"label":"k30", "x":0, "y":3, "w":1.5},
|
||||
{"label":"k31", "x":1.5, "y":3},
|
||||
{"label":"k32", "x":2.5, "y":3},
|
||||
{"label":"k33", "x":3.5, "y":3},
|
||||
{"label":"k34", "x":4.5, "y":3},
|
||||
{"label":"k35", "x":5.5, "y":3},
|
||||
{"label":"k36", "x":6.5, "y":3},
|
||||
{"label":"k37", "x":7.5, "y":3},
|
||||
{"label":"k38", "x":8.5, "y":3},
|
||||
{"label":"k39", "x":9.5, "y":3},
|
||||
{"label":"k310", "x":10.5, "y":3},
|
||||
{"label":"k311", "x":11.5, "y":3},
|
||||
{"label":"k312", "x":12.5, "y":3},
|
||||
{"label":"k313", "x":13.5, "y":3, "w":1.5},
|
||||
{"label":"k40", "x":0, "y":4, "w":1.5},
|
||||
{"label":"k41", "x":1.5, "y":4},
|
||||
{"label":"k42", "x":2.5, "y":4},
|
||||
{"label":"k43", "x":3.5, "y":4},
|
||||
{"label":"k44", "x":4.5, "y":4},
|
||||
{"label":"k45", "x":5.5, "y":4},
|
||||
{"label":"k46", "x":6.5, "y":4},
|
||||
{"label":"k47", "x":7.5, "y":4},
|
||||
{"label":"k48", "x":8.5, "y":4},
|
||||
{"label":"k49", "x":9.5, "y":4},
|
||||
{"label":"k410", "x":10.5, "y":4},
|
||||
{"label":"k411", "x":11.5, "y":4},
|
||||
{"label":"k412", "x":12.5, "y":4},
|
||||
{"label":"k413", "x":13.5, "y":4, "w":1.5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_ortho_hhkb": {
|
||||
"layout": [
|
||||
{"label":"k00", "x":0, "y":0, "w":1.5},
|
||||
{"label":"k01", "x":1.5, "y":0},
|
||||
{"label":"k02", "x":2.5, "y":0},
|
||||
{"label":"k03", "x":3.5, "y":0},
|
||||
{"label":"k04", "x":4.5, "y":0},
|
||||
{"label":"k05", "x":5.5, "y":0},
|
||||
{"label":"k06", "x":6.5, "y":0},
|
||||
{"label":"k07", "x":7.5, "y":0},
|
||||
{"label":"k08", "x":8.5, "y":0},
|
||||
{"label":"k09", "x":9.5, "y":0},
|
||||
{"label":"k010", "x":10.5, "y":0},
|
||||
{"label":"k011", "x":11.5, "y":0},
|
||||
{"label":"k012", "x":12.5, "y":0},
|
||||
{"label":"k013", "x":13.5, "y":0, "w":1.5},
|
||||
{"label":"k10", "x":0, "y":1, "w":1.5},
|
||||
{"label":"k11", "x":1.5, "y":1},
|
||||
{"label":"k12", "x":2.5, "y":1},
|
||||
{"label":"k13", "x":3.5, "y":1},
|
||||
{"label":"k14", "x":4.5, "y":1},
|
||||
{"label":"k15", "x":5.5, "y":1},
|
||||
{"label":"k16", "x":6.5, "y":1},
|
||||
{"label":"k17", "x":7.5, "y":1},
|
||||
{"label":"k18", "x":8.5, "y":1},
|
||||
{"label":"k19", "x":9.5, "y":1},
|
||||
{"label":"k110", "x":10.5, "y":1},
|
||||
{"label":"k111", "x":11.5, "y":1},
|
||||
{"label":"k112", "x":12.5, "y":1},
|
||||
{"label":"k113", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"k20", "x":0, "y":2, "w":1.5},
|
||||
{"label":"k21", "x":1.5, "y":2},
|
||||
{"label":"k22", "x":2.5, "y":2},
|
||||
{"label":"k23", "x":3.5, "y":2},
|
||||
{"label":"k24", "x":4.5, "y":2},
|
||||
{"label":"k25", "x":5.5, "y":2},
|
||||
{"label":"k26", "x":6.5, "y":2},
|
||||
{"label":"k27", "x":7.5, "y":2},
|
||||
{"label":"k28", "x":8.5, "y":2},
|
||||
{"label":"k29", "x":9.5, "y":2},
|
||||
{"label":"k210", "x":10.5, "y":2},
|
||||
{"label":"k211", "x":11.5, "y":2},
|
||||
{"label":"k212", "x":12.5, "y":2},
|
||||
{"label":"k213", "x":13.5, "y":2, "w":1.5},
|
||||
{"label":"k30", "x":0, "y":3, "w":1.5},
|
||||
{"label":"k31", "x":1.5, "y":3},
|
||||
{"label":"k32", "x":2.5, "y":3},
|
||||
{"label":"k33", "x":3.5, "y":3},
|
||||
{"label":"k34", "x":4.5, "y":3},
|
||||
{"label":"k35", "x":5.5, "y":3},
|
||||
{"label":"k36", "x":6.5, "y":3},
|
||||
{"label":"k37", "x":7.5, "y":3},
|
||||
{"label":"k38", "x":8.5, "y":3},
|
||||
{"label":"k39", "x":9.5, "y":3},
|
||||
{"label":"k310", "x":10.5, "y":3},
|
||||
{"label":"k311", "x":11.5, "y":3},
|
||||
{"label":"k312", "x":12.5, "y":3},
|
||||
{"label":"k313", "x":13.5, "y":3, "w":1.5},
|
||||
{"label":"k41", "x":1.5, "y":4},
|
||||
{"label":"k42", "x":2.5, "y":4},
|
||||
{"label":"k43", "x":3.5, "y":4},
|
||||
{"label":"k44", "x":4.5, "y":4},
|
||||
{"label":"k45", "x":5.5, "y":4, "w":2},
|
||||
{"label":"k47", "x":7.5, "y":4, "w":2},
|
||||
{"label":"k49", "x":9.5, "y":4},
|
||||
{"label":"k410", "x":10.5, "y":4},
|
||||
{"label":"k411", "x":11.5, "y":4},
|
||||
{"label":"k412", "x":12.5, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_ortho_7u": {
|
||||
"layout": [
|
||||
{"label":"k00", "x":0, "y":0, "w":1.5},
|
||||
{"label":"k01", "x":1.5, "y":0},
|
||||
{"label":"k02", "x":2.5, "y":0},
|
||||
{"label":"k03", "x":3.5, "y":0},
|
||||
{"label":"k04", "x":4.5, "y":0},
|
||||
{"label":"k05", "x":5.5, "y":0},
|
||||
{"label":"k06", "x":6.5, "y":0},
|
||||
{"label":"k07", "x":7.5, "y":0},
|
||||
{"label":"k08", "x":8.5, "y":0},
|
||||
{"label":"k09", "x":9.5, "y":0},
|
||||
{"label":"k010", "x":10.5, "y":0},
|
||||
{"label":"k011", "x":11.5, "y":0},
|
||||
{"label":"k012", "x":12.5, "y":0},
|
||||
{"label":"k013", "x":13.5, "y":0, "w":1.5},
|
||||
{"label":"k10", "x":0, "y":1, "w":1.5},
|
||||
{"label":"k11", "x":1.5, "y":1},
|
||||
{"label":"k12", "x":2.5, "y":1},
|
||||
{"label":"k13", "x":3.5, "y":1},
|
||||
{"label":"k14", "x":4.5, "y":1},
|
||||
{"label":"k15", "x":5.5, "y":1},
|
||||
{"label":"k16", "x":6.5, "y":1},
|
||||
{"label":"k17", "x":7.5, "y":1},
|
||||
{"label":"k18", "x":8.5, "y":1},
|
||||
{"label":"k19", "x":9.5, "y":1},
|
||||
{"label":"k110", "x":10.5, "y":1},
|
||||
{"label":"k111", "x":11.5, "y":1},
|
||||
{"label":"k112", "x":12.5, "y":1},
|
||||
{"label":"k113", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"k20", "x":0, "y":2, "w":1.5},
|
||||
{"label":"k21", "x":1.5, "y":2},
|
||||
{"label":"k22", "x":2.5, "y":2},
|
||||
{"label":"k23", "x":3.5, "y":2},
|
||||
{"label":"k24", "x":4.5, "y":2},
|
||||
{"label":"k25", "x":5.5, "y":2},
|
||||
{"label":"k26", "x":6.5, "y":2},
|
||||
{"label":"k27", "x":7.5, "y":2},
|
||||
{"label":"k28", "x":8.5, "y":2},
|
||||
{"label":"k29", "x":9.5, "y":2},
|
||||
{"label":"k210", "x":10.5, "y":2},
|
||||
{"label":"k211", "x":11.5, "y":2},
|
||||
{"label":"k212", "x":12.5, "y":2},
|
||||
{"label":"k213", "x":13.5, "y":2, "w":1.5},
|
||||
{"label":"k30", "x":0, "y":3, "w":1.5},
|
||||
{"label":"k31", "x":1.5, "y":3},
|
||||
{"label":"k32", "x":2.5, "y":3},
|
||||
{"label":"k33", "x":3.5, "y":3},
|
||||
{"label":"k34", "x":4.5, "y":3},
|
||||
{"label":"k35", "x":5.5, "y":3},
|
||||
{"label":"k36", "x":6.5, "y":3},
|
||||
{"label":"k37", "x":7.5, "y":3},
|
||||
{"label":"k38", "x":8.5, "y":3},
|
||||
{"label":"k39", "x":9.5, "y":3},
|
||||
{"label":"k310", "x":10.5, "y":3},
|
||||
{"label":"k311", "x":11.5, "y":3},
|
||||
{"label":"k312", "x":12.5, "y":3},
|
||||
{"label":"k313", "x":13.5, "y":3, "w":1.5},
|
||||
{"label":"k41", "x":1.5, "y":4},
|
||||
{"label":"k42", "x":2.5, "y":4, "w":1.5},
|
||||
{"label":"k46", "x":4, "y":4, "w":7},
|
||||
{"label":"k411", "x":11, "y":4, "w":1.5},
|
||||
{"label":"k412", "x":12.5, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_2u_arrow": {
|
||||
"layout": [
|
||||
{"label":"k00", "x":0, "y":0, "w":1.5},
|
||||
{"label":"k01", "x":1.5, "y":0},
|
||||
{"label":"k02", "x":2.5, "y":0},
|
||||
{"label":"k03", "x":3.5, "y":0},
|
||||
{"label":"k04", "x":4.5, "y":0},
|
||||
{"label":"k05", "x":5.5, "y":0},
|
||||
{"label":"k06", "x":6.5, "y":0},
|
||||
{"label":"k07", "x":7.5, "y":0},
|
||||
{"label":"k08", "x":8.5, "y":0},
|
||||
{"label":"k09", "x":9.5, "y":0},
|
||||
{"label":"k010", "x":10.5, "y":0},
|
||||
{"label":"k011", "x":11.5, "y":0},
|
||||
{"label":"k012", "x":12.5, "y":0},
|
||||
{"label":"k013", "x":13.5, "y":0, "w":1.5},
|
||||
{"label":"k10", "x":0, "y":1, "w":1.5},
|
||||
{"label":"k11", "x":1.5, "y":1},
|
||||
{"label":"k12", "x":2.5, "y":1},
|
||||
{"label":"k13", "x":3.5, "y":1},
|
||||
{"label":"k14", "x":4.5, "y":1},
|
||||
{"label":"k15", "x":5.5, "y":1},
|
||||
{"label":"k16", "x":6.5, "y":1},
|
||||
{"label":"k17", "x":7.5, "y":1},
|
||||
{"label":"k18", "x":8.5, "y":1},
|
||||
{"label":"k19", "x":9.5, "y":1},
|
||||
{"label":"k110", "x":10.5, "y":1},
|
||||
{"label":"k111", "x":11.5, "y":1},
|
||||
{"label":"k112", "x":12.5, "y":1},
|
||||
{"label":"k113", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"k20", "x":0, "y":2, "w":1.5},
|
||||
{"label":"k21", "x":1.5, "y":2},
|
||||
{"label":"k22", "x":2.5, "y":2},
|
||||
{"label":"k23", "x":3.5, "y":2},
|
||||
{"label":"k24", "x":4.5, "y":2},
|
||||
{"label":"k25", "x":5.5, "y":2},
|
||||
{"label":"k26", "x":6.5, "y":2},
|
||||
{"label":"k27", "x":7.5, "y":2},
|
||||
{"label":"k28", "x":8.5, "y":2},
|
||||
{"label":"k29", "x":9.5, "y":2},
|
||||
{"label":"k210", "x":10.5, "y":2},
|
||||
{"label":"k211", "x":11.5, "y":2},
|
||||
{"label":"k212", "x":12.5, "y":2, "w":1.5},
|
||||
{"label":"k213", "x":14, "y":2},
|
||||
{"label":"k30", "x":0, "y":3, "w":1.5},
|
||||
{"label":"k31", "x":1.5, "y":3},
|
||||
{"label":"k32", "x":2.5, "y":3},
|
||||
{"label":"k33", "x":3.5, "y":3},
|
||||
{"label":"k34", "x":4.5, "y":3},
|
||||
{"label":"k35", "x":5.5, "y":3},
|
||||
{"label":"k36", "x":6.5, "y":3},
|
||||
{"label":"k37", "x":7.5, "y":3},
|
||||
{"label":"k38", "x":8.5, "y":3},
|
||||
{"label":"k39", "x":9.5, "y":3},
|
||||
{"label":"k310", "x":10.5, "y":3},
|
||||
{"label":"k311", "x":11.5, "y":3, "w":1.5},
|
||||
{"label":"k312", "x":13, "y":3},
|
||||
{"label":"k313", "x":14, "y":3},
|
||||
{"label":"k40", "x":0, "y":4, "w":1.25},
|
||||
{"label":"k41", "x":1.25, "y":4, "w":1.25},
|
||||
{"label":"k42", "x":2.5, "y":4},
|
||||
{"label":"k43", "x":3.5, "y":4},
|
||||
{"label":"k44", "x":4.5, "y":4, "w":2},
|
||||
{"label":"k46", "x":6.5, "y":4, "w":2},
|
||||
{"label":"k48", "x":8.5, "y":4},
|
||||
{"label":"k49", "x":9.5, "y":4, "w":1.25},
|
||||
{"label":"k410", "x":10.75, "y":4, "w":1.25},
|
||||
{"label":"k411", "x":12, "y":4},
|
||||
{"label":"k412", "x":13, "y":4},
|
||||
{"label":"k413", "x":14, "y":4}
|
||||
]
|
||||
},
|
||||
"LAYOUT_625u_arrow": {
|
||||
"layout": [
|
||||
{"label":"k00", "x":0, "y":0, "w":1.5},
|
||||
{"label":"k01", "x":1.5, "y":0},
|
||||
{"label":"k02", "x":2.5, "y":0},
|
||||
{"label":"k03", "x":3.5, "y":0},
|
||||
{"label":"k04", "x":4.5, "y":0},
|
||||
{"label":"k05", "x":5.5, "y":0},
|
||||
{"label":"k06", "x":6.5, "y":0},
|
||||
{"label":"k07", "x":7.5, "y":0},
|
||||
{"label":"k08", "x":8.5, "y":0},
|
||||
{"label":"k09", "x":9.5, "y":0},
|
||||
{"label":"k010", "x":10.5, "y":0},
|
||||
{"label":"k011", "x":11.5, "y":0},
|
||||
{"label":"k012", "x":12.5, "y":0},
|
||||
{"label":"k013", "x":13.5, "y":0, "w":1.5},
|
||||
{"label":"k10", "x":0, "y":1, "w":1.5},
|
||||
{"label":"k11", "x":1.5, "y":1},
|
||||
{"label":"k12", "x":2.5, "y":1},
|
||||
{"label":"k13", "x":3.5, "y":1},
|
||||
{"label":"k14", "x":4.5, "y":1},
|
||||
{"label":"k15", "x":5.5, "y":1},
|
||||
{"label":"k16", "x":6.5, "y":1},
|
||||
{"label":"k17", "x":7.5, "y":1},
|
||||
{"label":"k18", "x":8.5, "y":1},
|
||||
{"label":"k19", "x":9.5, "y":1},
|
||||
{"label":"k110", "x":10.5, "y":1},
|
||||
{"label":"k111", "x":11.5, "y":1},
|
||||
{"label":"k112", "x":12.5, "y":1},
|
||||
{"label":"k113", "x":13.5, "y":1, "w":1.5},
|
||||
{"label":"k20", "x":0, "y":2, "w":1.5},
|
||||
{"label":"k21", "x":1.5, "y":2},
|
||||
{"label":"k22", "x":2.5, "y":2},
|
||||
{"label":"k23", "x":3.5, "y":2},
|
||||
{"label":"k24", "x":4.5, "y":2},
|
||||
{"label":"k25", "x":5.5, "y":2},
|
||||
{"label":"k26", "x":6.5, "y":2},
|
||||
{"label":"k27", "x":7.5, "y":2},
|
||||
{"label":"k28", "x":8.5, "y":2},
|
||||
{"label":"k29", "x":9.5, "y":2},
|
||||
{"label":"k210", "x":10.5, "y":2},
|
||||
{"label":"k211", "x":11.5, "y":2},
|
||||
{"label":"k212", "x":12.5, "y":2, "w":1.5},
|
||||
{"label":"k213", "x":14, "y":2},
|
||||
{"label":"k30", "x":0, "y":3, "w":1.5},
|
||||
{"label":"k31", "x":1.5, "y":3},
|
||||
{"label":"k32", "x":2.5, "y":3},
|
||||
{"label":"k33", "x":3.5, "y":3},
|
||||
{"label":"k34", "x":4.5, "y":3},
|
||||
{"label":"k35", "x":5.5, "y":3},
|
||||
{"label":"k36", "x":6.5, "y":3},
|
||||
{"label":"k37", "x":7.5, "y":3},
|
||||
{"label":"k38", "x":8.5, "y":3},
|
||||
{"label":"k39", "x":9.5, "y":3},
|
||||
{"label":"k310", "x":10.5, "y":3},
|
||||
{"label":"k311", "x":11.5, "y":3, "w":1.5},
|
||||
{"label":"k312", "x":13, "y":3},
|
||||
{"label":"k313", "x":14, "y":3},
|
||||
{"label":"k40", "x":0, "y":4, "w":1.25},
|
||||
{"label":"k41", "x":1.25, "y":4, "w":1.25},
|
||||
{"label":"k42", "x":2.5, "y":4},
|
||||
{"label":"k45", "x":3.5, "y":4, "w":6.25},
|
||||
{"label":"k49", "x":9.75, "y":4},
|
||||
{"label":"k410", "x":10.75, "y":4, "w":1.25},
|
||||
{"label":"k411", "x":12, "y":4},
|
||||
{"label":"k412", "x":13, "y":4},
|
||||
{"label":"k413", "x":14, "y":4}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
16
keyboards/boardwalk/keymaps/default/config.h
Normal file
16
keyboards/boardwalk/keymaps/default/config.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* 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
|
||||
162
keyboards/boardwalk/keymaps/default/keymap.c
Normal file
162
keyboards/boardwalk/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* 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
|
||||
|
||||
// Layer shorthand
|
||||
enum layer {
|
||||
_1U,
|
||||
_FN,
|
||||
_HHKB,
|
||||
_7U,
|
||||
_2UARROW,
|
||||
_625UARROW,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* 1uGrid
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | - | = | 6 | 7 | 8 | 9 | 0 | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | [ | ] | Y | U | I | O | P | ' |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | CAP LK | A | S | D | F | G | HOME | PG UP | H | J | K | L | ; | ENTER |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | END | PG DN | N | M | , | . | / | RSHIFT |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | LCTRL | LGUI | FN | LALT | SPACE | SPACE | SPACE | SPACE | SPACE | SPACE | RIGHT | DOWN | UP | RIGHT |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[_1U] = LAYOUT_ortho_5x14(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT, \
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_HOME, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_END, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
||||
KC_LCTL, KC_LGUI, MO(1), KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_RCTL \
|
||||
),
|
||||
|
||||
/* HHKB
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | - | = | 6 | 7 | 8 | 9 | 0 | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | [ | ] | Y | U | I | O | P | ' |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | CAP LK | A | S | D | F | G | HOME | PG UP | H | J | K | L | ; | ENTER |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | END | PG DN | N | M | , | . | / | RSHIFT |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | | LCTRL | FN | LALT | LGUI | SPACE | SPACE | LEFT | DOWN | UP | RIGHT | |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[_HHKB] = LAYOUT_ortho_hhkb(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \
|
||||
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_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
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_LCTL, MO(1), KC_LALT, KC_LGUI, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* 7u HHKB
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | - | = | 6 | 7 | 8 | 9 | 0 | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | [ | ] | Y | U | I | O | P | ' |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | CAP LK | A | S | D | F | G | HOME | PG UP | H | J | K | L | ; | ENTER |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | END | PG DN | N | M | , | . | / | RSHIFT |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | | LCTRL | LALT | SPACE | RALT | FN | |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[_7U] = LAYOUT_ortho_7u(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \
|
||||
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_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
|
||||
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_LCTL, KC_LALT, KC_SPC, KC_RALT, MO(1) \
|
||||
),
|
||||
|
||||
/* 2x2u Space with Arrows
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | CAP LK | A | S | D | F | G | H | J | K | L | ; | " | ENTER | PG UP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | N | M | , | . | / | SHIFT | UP | PG DN |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | LCTRL | LGUI | FN | LALT | SPACE | SPACE | RALT | RGUI | RCTRL | LEFT | DOWN | RIGHT |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[_2UARROW] = LAYOUT_2u_arrow(
|
||||
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_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_QUOT, \
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_BSLS, KC_ENT, KC_PGUP, \
|
||||
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_PGDN, \
|
||||
KC_LCTL, KC_LGUI, MO(1), KC_LALT, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
|
||||
/* 6.25u Space with Arrows
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | ESC | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | BACKSP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | TAB | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | CAP LK | A | S | D | F | G | H | J | K | L | ; | " | ENTER | PG UP |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | LSHIFT | Z | X | C | V | B | N | M | , | . | / | SHIFT | UP | PG DN |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | LCTRL | LGUI | LALT | SPACE | FN | RCTRL | LEFT | DOWN | RIGHT |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
[_625UARROW] = LAYOUT_625u_arrow(
|
||||
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_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_QUOT, \
|
||||
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_BSLS, KC_ENT, KC_PGUP, \
|
||||
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_PGDN, \
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
|
||||
/* FUNCTION
|
||||
* .-----------------------------------------------------------------------------------------------------------------------------.
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------|
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------|
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------|
|
||||
* | | | | | | | | | | | | | | |
|
||||
* |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+--------|
|
||||
* | | | | | | | | | | | | | | |
|
||||
* '-----------------------------------------------------------------------------------------------------------------------------'
|
||||
*/
|
||||
|
||||
|
||||
[_FN] = LAYOUT_ortho_5x14(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
1
keyboards/boardwalk/keymaps/default/readme.md
Normal file
1
keyboards/boardwalk/keymaps/default/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
# The default keymap for Boardwalk
|
||||
54
keyboards/boardwalk/keymaps/mcallaster/keymap.c
Normal file
54
keyboards/boardwalk/keymaps/mcallaster/keymap.c
Normal file
@@ -0,0 +1,54 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Layer shorthand
|
||||
enum layer {
|
||||
_BASE,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_FN
|
||||
};
|
||||
|
||||
#define LOWER MO(1)
|
||||
#define RAISE MO(2)
|
||||
#define FN MO(3)
|
||||
|
||||
// Mac sleep
|
||||
#define __SLEEP S(LCTL(KC_POWER))
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_ortho_hhkb(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_SLCK, KC_PSCR, KC_6, KC_7, KC_8, KC_9, KC_0, KC_GRV, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_HOME, KC_PGUP, 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_END, KC_PGDN, 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_DEL, KC_INS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, \
|
||||
KC_CAPS, KC_LALT, KC_LGUI, RAISE, KC_SPC, KC_SPC, LOWER, KC_RGUI, KC_RALT, KC_RCTL
|
||||
),
|
||||
|
||||
[_LOWER] = LAYOUT_ortho_hhkb(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_PAUS, KC_NLCK, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, \
|
||||
_______, 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_LBRC, KC_RBRC, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_GRV, KC_BSLS, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_RAISE] = LAYOUT_ortho_hhkb(
|
||||
_______, KC_F11, KC_F12, _______, _______, _______, KC_PAUS, KC_NLCK, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TILD, KC_PIPE, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_FN] = LAYOUT_ortho_hhkb(
|
||||
__SLEEP, _______, _______, _______, _______, _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, \
|
||||
_______, RESET, _______, KC_MPRV, KC_MNXT, _______, RGB_SAI, RGB_HUI, _______, _______, _______, _______, _______, _______, \
|
||||
_______, KC_VOLD, KC_VOLU, KC_MUTE, KC_MPLY, _______, RGB_SAD, RGB_HUD, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, \
|
||||
_______, _______, _______, _______, _______, _______, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
uint32_t layer_state_set_user(uint32_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _FN);
|
||||
}
|
||||
16
keyboards/boardwalk/keymaps/nchristus/config.h
Normal file
16
keyboards/boardwalk/keymaps/nchristus/config.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* 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
|
||||
62
keyboards/boardwalk/keymaps/nchristus/keymap.c
Normal file
62
keyboards/boardwalk/keymaps/nchristus/keymap.c
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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
|
||||
|
||||
// Layer shorthand
|
||||
#define _QW 0
|
||||
|
||||
#define LOWER LT(1, KC_SPC)
|
||||
#define RAISE LT(2, KC_ENT)
|
||||
|
||||
#define CTRLESC CTL_T(KC_ESC)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Keymap _QWE: Base Layer (Default Layer) */
|
||||
[_QW] = LAYOUT_ortho_hhkb(
|
||||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, \
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, _______, _______, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
|
||||
CTRLESC, KC_A, KC_S, KC_D, KC_F, KC_G, _______, _______, 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, \
|
||||
MO(3), KC_LCTL, KC_LALT, KC_LGUI, RAISE, LOWER, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||
),
|
||||
|
||||
/* Keymap LOWER: Lower Layer */
|
||||
[1] = LAYOUT_ortho_hhkb(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, XXXXXXX, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Keymap RAISE: Raise Layer */
|
||||
[2] = LAYOUT_ortho_hhkb(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, XXXXXXX, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
/* Keymap _FL: Function Layer */
|
||||
[3] = LAYOUT_ortho_hhkb(
|
||||
RESET, _______, _______, _______, _______, _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
1
keyboards/boardwalk/keymaps/nchristus/readme.md
Normal file
1
keyboards/boardwalk/keymaps/nchristus/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
# The default keymap for Boardwalk
|
||||
14
keyboards/boardwalk/keymaps/nchristus/rules.mk
Normal file
14
keyboards/boardwalk/keymaps/nchristus/rules.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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/>.
|
||||
|
||||
RGBLIGHT_ENABLE = yes
|
||||
16
keyboards/boardwalk/readme.md
Normal file
16
keyboards/boardwalk/readme.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Boardwalk
|
||||
|
||||

|
||||
|
||||
The Boardwalk is a 60% ortholinear keyboard, designed around Ergodox keycap sets and to fit into many standard 60% cases. The project was inspired by OLKB’s Atomic keyboard, which used larger 2u mods, but u/shensmobile
|
||||
decided to switch to 1.5u keys so that Ergodox sets would provide excellent compatibility. The rest of the board can be covered using standard key sizes from 60% sets.
|
||||
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: Boardwalk Ortholinear PCB
|
||||
Hardware Availability: [panc.co](https://www.panc.co/boardwalk-group-buy.html)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make boardwalk: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).
|
||||
66
keyboards/boardwalk/rules.mk
Normal file
66
keyboards/boardwalk/rules.mk
Normal file
@@ -0,0 +1,66 @@
|
||||
# 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
|
||||
|
||||
# Boot Section Size in *bytes*
|
||||
# Teensy halfKay 512
|
||||
# Teensy++ halfKay 1024
|
||||
# Atmel DFU loader 4096
|
||||
# LUFA bootloader 4096
|
||||
# USBaspLoader 2048
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# QMK Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # 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
|
||||
MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
UNICODE_ENABLE = yes # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
|
||||
LAYOUTS = ortho_5x14
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
A PCB for the CM Storm switch tester utilizing a Teensy 2.0 designed by Bpiphany. Because the PCB was designed with individual pins for each LED, there are custom keycodes (`SS_LON` and `SS_LOFF`) for turning on and off the backlight LEDs.
|
||||
|
||||
Keyboard Maintainer: QMK Community\
|
||||
Hardware Supported: Six Shooter PCB, Teensy 2.0\
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: Six Shooter PCB, Teensy 2.0
|
||||
Hardware Availability: [GeekHack.org](https://geekhack.org/index.php?topic=70033.0)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make sixshooter:default
|
||||
make bpiphany/sixshooter:default
|
||||
|
||||
See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
|
||||
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).
|
||||
@@ -39,11 +39,11 @@ EXTRAFLAGS+=-flto
|
||||
BACKLIGHT_ENABLE = no
|
||||
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
|
||||
## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||
AUDIO_ENABLE = no
|
||||
RGBLIGHT_ENABLE = no
|
||||
|
||||
@@ -34,10 +34,10 @@ merge with those in the keyboard folder_
|
||||
|
||||
## Relevant Links
|
||||
|
||||
- 
|
||||
- 
|
||||
- 
|
||||
- 
|
||||
- [Online Dvorak Layout Trainer](https://learn.dvorak.nl/)
|
||||
- [Dvorak Wikipedia Page](https://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard)
|
||||
- [QMK Docs](https://docs.qmk.fm/#/)
|
||||
- [QMK KeyCode Reference](https://docs.qmk.fm/#/keycodes)
|
||||
|
||||
## Contact
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS { B0, B1, B2, A15, A10 }
|
||||
#define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C14, C15, C13, B5, B6 }
|
||||
#define MATRIX_COL_PINS { A2, A3, A6, B14, B15, A8, A9, A7, B3, B4, C15, C14, C13, B5, B6 }
|
||||
#define UNUSED_PINS { A0, A1, A9, B7, B8, B9, B10, B11, B12, B13 }
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
|
||||
@@ -37,6 +37,17 @@
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* key combination for command */
|
||||
#define IS_COMMAND() ( \
|
||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
||||
)
|
||||
|
||||
#define IS31FL3235A_COUNT 1
|
||||
//#define I2C_DRIVER I2CD1
|
||||
#define I2C1_BANK GPIOB
|
||||
#define I2C1_SCL 8
|
||||
#define I2C1_SDA 9
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
* @brief Enables the I2C subsystem.
|
||||
*/
|
||||
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
||||
#define HAL_USE_I2C FALSE
|
||||
#define HAL_USE_I2C TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
/*
|
||||
* I2C driver system settings.
|
||||
*/
|
||||
#define STM32_I2C_USE_I2C1 FALSE
|
||||
#define STM32_I2C_USE_I2C1 TRUE
|
||||
#define STM32_I2C_USE_I2C2 FALSE
|
||||
#define STM32_I2C_BUSY_TIMEOUT 50
|
||||
#define STM32_I2C_I2C1_IRQ_PRIORITY 10
|
||||
|
||||
@@ -17,6 +17,8 @@ DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
|
||||
# Build Options
|
||||
# comment out to disable the options.
|
||||
#
|
||||
QWIIC_ENABLE = RGB7SEG
|
||||
|
||||
BACKLIGHT_ENABLE = yes
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user