Merge remote-tracking branch 'origin/master' into iso_split_rshift
update from Upstreamdaktil_thumb_popravljen
|
@ -17,6 +17,7 @@ build/
|
||||||
.build/
|
.build/
|
||||||
*.bak
|
*.bak
|
||||||
.vagrant/
|
.vagrant/
|
||||||
|
quantum/version.h
|
||||||
.idea/
|
.idea/
|
||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
.DS_STORE
|
.DS_STORE
|
||||||
|
@ -26,4 +27,4 @@ CMakeLists.txt
|
||||||
.project
|
.project
|
||||||
.settings/
|
.settings/
|
||||||
.idea
|
.idea
|
||||||
.browse.VC.db*
|
.browse.VC.db*
|
||||||
|
|
|
@ -10,7 +10,7 @@ env:
|
||||||
global:
|
global:
|
||||||
- secure: vBTSL34BDPxDilKUuTXqU4CJ26Pv5hogD2nghatkxSQkI1/jbdnLj/DQdPUrMJFDIY6TK3AltsBx72MaMsLQ1JO/Ou24IeHINHXzUC1FlS9yQa48cpxnhX5kzXNyGs3oa0qaFbvnr7RgYRWtmD52n4bIZuSuW+xpBv05x2OCizdT2ZonH33nATaHGFasxROm4qYZ241VfzcUv766V6RVHgL4x9V08warugs+RENVkfzxxwhk3NmkrISabze0gSVJLHBPHxroZC6EUcf/ocobcuDrCwFqtEt90i7pNIAFUE7gZsN2uE75LmpzAWin21G7lLPcPL2k4FJVd8an1HiP2WmscJU6U89fOfMb2viObnKcCzebozBCmKGtHEuXZo9FcReOx49AnQSpmESJGs+q2dL/FApkTjQiyT4J6O5dJpoww0/r57Wx0cmmqjETKBb5rSgXM51Etk3wO09mvcPHsEwrT7qH8r9XWdyCDoEn7FCLX3/LYnf/D4SmZ633YPl5gv3v9XEwxR5+04akjgnvWDSNIaDbWBdxHNb7l4pMc+WR1bwCyMyA7KXj0RrftEGOrm9ZRLe6BkbT4cycA+j77nbPOMcyZChliV9pPQos+4TOJoTzcK2L8yWVoY409aDNVuAjdP6Yum0R2maBGl/etLmIMpJC35C5/lZ+dUNjJAM=
|
- secure: vBTSL34BDPxDilKUuTXqU4CJ26Pv5hogD2nghatkxSQkI1/jbdnLj/DQdPUrMJFDIY6TK3AltsBx72MaMsLQ1JO/Ou24IeHINHXzUC1FlS9yQa48cpxnhX5kzXNyGs3oa0qaFbvnr7RgYRWtmD52n4bIZuSuW+xpBv05x2OCizdT2ZonH33nATaHGFasxROm4qYZ241VfzcUv766V6RVHgL4x9V08warugs+RENVkfzxxwhk3NmkrISabze0gSVJLHBPHxroZC6EUcf/ocobcuDrCwFqtEt90i7pNIAFUE7gZsN2uE75LmpzAWin21G7lLPcPL2k4FJVd8an1HiP2WmscJU6U89fOfMb2viObnKcCzebozBCmKGtHEuXZo9FcReOx49AnQSpmESJGs+q2dL/FApkTjQiyT4J6O5dJpoww0/r57Wx0cmmqjETKBb5rSgXM51Etk3wO09mvcPHsEwrT7qH8r9XWdyCDoEn7FCLX3/LYnf/D4SmZ633YPl5gv3v9XEwxR5+04akjgnvWDSNIaDbWBdxHNb7l4pMc+WR1bwCyMyA7KXj0RrftEGOrm9ZRLe6BkbT4cycA+j77nbPOMcyZChliV9pPQos+4TOJoTzcK2L8yWVoY409aDNVuAjdP6Yum0R2maBGl/etLmIMpJC35C5/lZ+dUNjJAM=
|
||||||
script:
|
script:
|
||||||
- make all-keyboards-quick AUTOGEN=true
|
- make all-keyboards AUTOGEN=true
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
|
|
@ -20,7 +20,7 @@ RUN apt-get install --no-install-recommends -y build-essential \
|
||||||
RUN apt-get clean
|
RUN apt-get clean
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV keyboard=ergodox_ez
|
ENV keyboard=ergodox
|
||||||
ENV keymap=default
|
ENV keymap=default
|
||||||
|
|
||||||
VOLUME /qmk
|
VOLUME /qmk
|
||||||
|
|
30
Makefile
|
@ -5,8 +5,9 @@ endif
|
||||||
.DEFAULT_GOAL := all
|
.DEFAULT_GOAL := all
|
||||||
|
|
||||||
space := $(subst ,, )
|
space := $(subst ,, )
|
||||||
starting_makefile := $(subst $(space),_SPACE_,$(abspath $(firstword $(MAKEFILE_LIST))))
|
ESCAPED_ABS_PATH = $(subst $(space),_SPACE_,$(abspath $1))
|
||||||
mkfile_path := $(subst $(space),_SPACE_,$(abspath $(lastword $(MAKEFILE_LIST))))
|
starting_makefile := $(call ESCAPED_ABS_PATH,$(firstword $(MAKEFILE_LIST)))
|
||||||
|
mkfile_path := $(call ESCAPED_ABS_PATH,$(lastword $(MAKEFILE_LIST))))
|
||||||
abs_tmk_root := $(patsubst %/,%,$(dir $(mkfile_path)))
|
abs_tmk_root := $(patsubst %/,%,$(dir $(mkfile_path)))
|
||||||
|
|
||||||
ifneq (,$(findstring /keyboards/,$(starting_makefile)))
|
ifneq (,$(findstring /keyboards/,$(starting_makefile)))
|
||||||
|
@ -83,10 +84,8 @@ endif
|
||||||
|
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH)/$(KEYBOARD).c)","")
|
ifneq ("$(wildcard $(KEYBOARD_PATH)/$(KEYBOARD).c)","")
|
||||||
KEYBOARD_FILE = keyboards/$(KEYBOARD)/$(KEYBOARD).c
|
KEYBOARD_FILE = keyboards/$(KEYBOARD)/$(KEYBOARD).c
|
||||||
ifndef ARCH
|
ifneq ($(call ESCAPED_ABS_PATH,$(KEYBOARD_PATH)/Makefile),$(starting_makefile))
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH)/Makefile)","")
|
-include $(KEYBOARD_PATH)/Makefile
|
||||||
include $(KEYBOARD_PATH)/Makefile
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$(error "$(KEYBOARD_PATH)/$(KEYBOARD).c" does not exist)
|
$(error "$(KEYBOARD_PATH)/$(KEYBOARD).c" does not exist)
|
||||||
|
@ -101,7 +100,9 @@ ifdef SUBPROJECT
|
||||||
ifneq ("$(wildcard $(SUBPROJECT_PATH)/$(SUBPROJECT).c)","")
|
ifneq ("$(wildcard $(SUBPROJECT_PATH)/$(SUBPROJECT).c)","")
|
||||||
OPT_DEFS += -DSUBPROJECT_$(SUBPROJECT)
|
OPT_DEFS += -DSUBPROJECT_$(SUBPROJECT)
|
||||||
SUBPROJECT_FILE = keyboards/$(KEYBOARD)/$(SUBPROJECT)/$(SUBPROJECT).c
|
SUBPROJECT_FILE = keyboards/$(KEYBOARD)/$(SUBPROJECT)/$(SUBPROJECT).c
|
||||||
-include $(SUBPROJECT_PATH)/Makefile
|
ifneq ($(call ESCAPED_ABS_PATH,$(SUBPROJECT_PATH)/Makefile),$(starting_makefile))
|
||||||
|
-include $(SUBPROJECT_PATH)/Makefile
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
$(error "$(SUBPROJECT_PATH)/$(SUBPROJECT).c" does not exist)
|
$(error "$(SUBPROJECT_PATH)/$(SUBPROJECT).c" does not exist)
|
||||||
endif
|
endif
|
||||||
|
@ -119,14 +120,18 @@ endif
|
||||||
KEYMAP_PATH = $(KEYBOARD_PATH)/keymaps/$(KEYMAP)
|
KEYMAP_PATH = $(KEYBOARD_PATH)/keymaps/$(KEYMAP)
|
||||||
ifneq ("$(wildcard $(KEYMAP_PATH)/keymap.c)","")
|
ifneq ("$(wildcard $(KEYMAP_PATH)/keymap.c)","")
|
||||||
KEYMAP_FILE = keyboards/$(KEYBOARD)/keymaps/$(KEYMAP)/keymap.c
|
KEYMAP_FILE = keyboards/$(KEYBOARD)/keymaps/$(KEYMAP)/keymap.c
|
||||||
-include $(KEYMAP_PATH)/Makefile
|
ifneq ($(call ESCAPED_ABS_PATH,$(KEYMAP_PATH)/Makefile),$(starting_makefile))
|
||||||
|
-include $(KEYMAP_PATH)/Makefile
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ("$(wildcard $(SUBPROJECT_PATH)/keymaps/$(KEYMAP)/keymap.c)","")
|
ifeq ("$(wildcard $(SUBPROJECT_PATH)/keymaps/$(KEYMAP)/keymap.c)","")
|
||||||
$(error "$(KEYMAP_PATH)/keymap.c" does not exist)
|
$(error "$(KEYMAP_PATH)/keymap.c" does not exist)
|
||||||
else
|
else
|
||||||
KEYMAP_PATH = $(SUBPROJECT_PATH)/keymaps/$(KEYMAP)
|
KEYMAP_PATH = $(SUBPROJECT_PATH)/keymaps/$(KEYMAP)
|
||||||
KEYMAP_FILE = keyboards/$(KEYBOARD)/$(SUBPROJECT)/keymaps/$(KEYMAP)/keymap.c
|
KEYMAP_FILE = keyboards/$(KEYBOARD)/$(SUBPROJECT)/keymaps/$(KEYMAP)/keymap.c
|
||||||
-include $(KEYMAP_PATH)/Makefile
|
ifneq ($(call ESCAPED_ABS_PATH,$(KEYMAP_PATH)/Makefile),$(starting_makefile))
|
||||||
|
-include $(KEYMAP_PATH)/Makefile
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -135,7 +140,8 @@ ifdef SUBPROJECT
|
||||||
else
|
else
|
||||||
TARGET ?= $(KEYBOARD)_$(KEYMAP)
|
TARGET ?= $(KEYBOARD)_$(KEYMAP)
|
||||||
endif
|
endif
|
||||||
BUILD_DIR = .build
|
|
||||||
|
BUILD_DIR = $(TOP_DIR)/.build
|
||||||
|
|
||||||
# Object files directory
|
# Object files directory
|
||||||
# To put object files in current directory, use a dot (.), do NOT make
|
# To put object files in current directory, use a dot (.), do NOT make
|
||||||
|
@ -265,4 +271,6 @@ include $(TMK_PATH)/rules.mk
|
||||||
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
||||||
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
|
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
|
||||||
OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
|
OPT_DEFS += -DQMK_KEYBOARD=\"$(KEYBOARD)\" -DQMK_KEYMAP=\"$(KEYMAP)\"
|
||||||
OPT_DEFS += -DQMK_VERSION=\"$(GIT_VERSION)\" -DQMK_BUILDDATE=\"$(BUILD_DATE)\"
|
|
||||||
|
$(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(QUANTUM_PATH)/version.h)
|
||||||
|
$(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(QUANTUM_PATH)/version.h)
|
|
@ -91,7 +91,7 @@ Vagrant.configure(2) do |config|
|
||||||
|
|
||||||
Or you can copy and paste the example line below.
|
Or you can copy and paste the example line below.
|
||||||
|
|
||||||
cd /vagrant; cd keyboards; cd ergodox_ez; make clean; make
|
cd /vagrant; cd keyboards; cd ergodox; make clean; make
|
||||||
|
|
||||||
|
|
||||||
EOT
|
EOT
|
||||||
|
|
|
@ -34,7 +34,7 @@ You can find some keyboard specific projects under `converter` and `keyboard` di
|
||||||
* [atomic](keyboards/atomic/) - [Atomic] Ortholinear 60% keyboard
|
* [atomic](keyboards/atomic/) - [Atomic] Ortholinear 60% keyboard
|
||||||
|
|
||||||
### Ergodox EZ
|
### Ergodox EZ
|
||||||
* [ergodox_ez](keyboards/ergodox_ez) - [Ergodox_EZ] Assembled split keyboard
|
* [ergodox_ez](keyboards/ergodox/ez) - [Ergodox_EZ] Assembled split keyboard
|
||||||
|
|
||||||
## Other projects
|
## Other projects
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ Third party libraries like LUFA, PJRC and V-USB have their own license respectiv
|
||||||
|
|
||||||
Build Firmware and Program Controller
|
Build Firmware and Program Controller
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
See [doc/build.md](tmk_core/doc/build.md), or the readme in the particular keyboards/* folder.
|
See [build environment setup](/readme.md#build-environment-setup), or the readme in the particular keyboards/* folder.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ See [/doc/keymap.md](/doc/keymap.md).
|
||||||
|
|
||||||
## Flashing the firmware
|
## Flashing the firmware
|
||||||
|
|
||||||
The "easy" way to flash the firmware is using a tool from your host OS like the Teensy programming app. [ErgoDox EZ](/keyboards/ergodox_ez/readme.md) gives a great example.
|
The "easy" way to flash the firmware is using a tool from your host OS like the Teensy programming app. [ErgoDox EZ](/keyboards/ergodox/readme.md) gives a great example.
|
||||||
|
|
||||||
If you want to program via the command line you can uncomment the ['modifyvm'] lines in the Vagrantfile to enable the USB passthrough into Linux and then program using the command line tools like dfu-util/dfu-programmer or you can install the Teensy CLI version.
|
If you want to program via the command line you can uncomment the ['modifyvm'] lines in the Vagrantfile to enable the USB passthrough into Linux and then program using the command line tools like dfu-util/dfu-programmer or you can install the Teensy CLI version.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,96 @@
|
||||||
|
# How keys are registered, and interpreted by computers
|
||||||
|
|
||||||
|
In this file, you can will learn the concepts of how keyboards work over USB,
|
||||||
|
and you'll be able to better understand what you can expect from changing your
|
||||||
|
firmware directly.
|
||||||
|
|
||||||
|
## Schematic view
|
||||||
|
|
||||||
|
Whenever you type on 1 particular key, here is the chain of actions taking
|
||||||
|
place:
|
||||||
|
|
||||||
|
``` text
|
||||||
|
+------+ +-----+ +----------+ +----------+ +----+
|
||||||
|
| User |-------->| Key |------>| Firmware |----->| USB wire |---->| OS |
|
||||||
|
+------+ +-----+ +----------+ +----------+ |----+
|
||||||
|
```
|
||||||
|
|
||||||
|
This scheme is a very simple view of what's going on, and more details follow
|
||||||
|
in the next sections.
|
||||||
|
|
||||||
|
## 1. You Press a Key
|
||||||
|
|
||||||
|
Whenever you press a key, the firmware of your keyboard can register this event.
|
||||||
|
It can register when the key is pressed, held and released.
|
||||||
|
|
||||||
|
This usually happens with a [periodic scan of key presses with a frequency around 100 hz](https://github.com/benblazak/ergodox-firmware/blob/master/references.md#typical-keyboard-information).
|
||||||
|
This speed often is limited by the mechanical key response time, the protocol
|
||||||
|
to transfer those key presses (here USB HID), and by the software it is used in.
|
||||||
|
|
||||||
|
## 2. What the Firmware Sends
|
||||||
|
|
||||||
|
The [HID specification](http://www.usb.org/developers/hidpage/Hut1_12v2.pdf)
|
||||||
|
tells what a keyboard can actually send through USB to have a chance to be
|
||||||
|
properly recognised. This includes a pre-defined list of keycodes which are
|
||||||
|
simple numbers from `0x00` to `0xE7`. The firmware assigns a keycode to each
|
||||||
|
key of the keyboard.
|
||||||
|
|
||||||
|
The firmware does not send actually letters or characters, but only keycodes.
|
||||||
|
Thus, by modifying the firmware, you only can modify what keycode is sent over
|
||||||
|
USB for a given key.
|
||||||
|
|
||||||
|
## 3. What the Operating System Does
|
||||||
|
|
||||||
|
Once the keycode reaches the operating system, a piece of software has to have
|
||||||
|
it match an actual character thanks to a keyboard layout. For example, if your
|
||||||
|
layout is set to QWERTY, a sample of the matching table is as follow:
|
||||||
|
|
||||||
|
``` text
|
||||||
|
| keycode | character |
|
||||||
|
|---------+-----------|
|
||||||
|
| 0x04 | a/A |
|
||||||
|
| 0x05 | b/B |
|
||||||
|
| 0x06 | c/C |
|
||||||
|
| ... | ... |
|
||||||
|
| 0x1C | y/Y |
|
||||||
|
| 0x1D | z/Z |
|
||||||
|
| ... | ... |
|
||||||
|
|---------+-----------|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Back to the firmware
|
||||||
|
|
||||||
|
As the layout is generally fixed (unless you create your own), the firmware can
|
||||||
|
actually call a keycode by its layout name directly to ease things for you.
|
||||||
|
|
||||||
|
This is exactly what is done here with `KC_A` actually representing `0x04` in
|
||||||
|
QWERTY. The full list can be found in `keycode.txt`.
|
||||||
|
|
||||||
|
## List of Characters You Can Send
|
||||||
|
|
||||||
|
Putting aside shortcuts, having a limited set of keycodes mapped to a limited
|
||||||
|
layout means that **the list of characters you can assign to a given key only
|
||||||
|
is the ones present in the layout**.
|
||||||
|
|
||||||
|
For example, this means that if you have a QWERTY US layout, and you want to
|
||||||
|
assign 1 key to produce `€` (euro currency symbol), you are unable to do so,
|
||||||
|
because the QWERTY US layout does not have such mapping. You could fix that by
|
||||||
|
using a QWERTY UK layout, or a QWERTY US International.
|
||||||
|
|
||||||
|
You may wonder why a keyboard layout containing all of Unicode is not devised
|
||||||
|
then? The limited number of keycode available through USB simply disallow such
|
||||||
|
a thing.
|
||||||
|
|
||||||
|
## How to (Maybe) Enter Unicode Characters
|
||||||
|
|
||||||
|
You can have the firmware send *sequences of keys* to use the [software Unicode
|
||||||
|
Input
|
||||||
|
Method](https://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_input) of
|
||||||
|
the target operating system, thus effectively entering characters independently
|
||||||
|
of the layout defined in the OS.
|
||||||
|
|
||||||
|
Yet, it does come with multiple disadvantages:
|
||||||
|
|
||||||
|
- Tied to a specific OS a a time (need recompilation when changing OS);
|
||||||
|
- Within a given OS, does not work in all software;
|
||||||
|
- Limited to a subset of Unicode on some systems.
|
|
@ -2,7 +2,7 @@ Keycode Symbol Table
|
||||||
====================
|
====================
|
||||||
Keycodes are defined in `common/keycode.h`.
|
Keycodes are defined in `common/keycode.h`.
|
||||||
Range of 00-A4 and E0-E7 are identical with HID Usage:
|
Range of 00-A4 and E0-E7 are identical with HID Usage:
|
||||||
<http://www.usb.org/developers/devclass_docs/Hut1_11.pdf>
|
<http://www.usb.org/developers/hidpage/Hut1_12v2.pdf>
|
||||||
Virtual keycodes are defined out of above range to support special actions.
|
Virtual keycodes are defined out of above range to support special actions.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,89 @@
|
||||||
|
// This is the personal keymap of Ian Sterling (@xyverz). It is based on the keymap by
|
||||||
|
// Chris Gerber (@gerbercj), with the addition of persistent layers like the Planck and
|
||||||
|
// Preonic keyboards by Jack Humbert.
|
||||||
|
|
||||||
|
#include "atreus.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
|
||||||
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _DV 0
|
||||||
|
#define _QW 1
|
||||||
|
#define _CM 2
|
||||||
|
#define _L1 3
|
||||||
|
#define _L2 4
|
||||||
|
|
||||||
|
// Macro name shortcuts
|
||||||
|
#define DVORAK M(_DV)
|
||||||
|
#define QWERTY M(_QW)
|
||||||
|
#define COLEMAK M(_CM)
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[_DV] = { /* Dvorak */
|
||||||
|
{KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_NO, KC_F, KC_G, KC_C, KC_R, KC_L },
|
||||||
|
{KC_A, KC_O, KC_E, KC_U, KC_I, KC_NO, KC_D, KC_H, KC_T, KC_N, KC_S },
|
||||||
|
{SFT_T(KC_SCLN), KC_Q, KC_J, KC_K, KC_X, CTL_T(KC_DEL), KC_B, KC_M, KC_W, KC_V, SFT_T(KC_Z) },
|
||||||
|
{KC_ESC, KC_TAB, KC_LGUI, MO(_L2), KC_BSPC, ALT_T(KC_ENT), KC_SPC, MO(_L1), KC_MINS, KC_SLSH, KC_EQL}
|
||||||
|
},
|
||||||
|
[_QW] = { /* Qwerty */
|
||||||
|
{KC_Q, KC_W, KC_E, KC_R, KC_T, KC_NO, KC_Y, KC_U, KC_I, KC_O, KC_P },
|
||||||
|
{KC_A, KC_S, KC_D, KC_F, KC_G, KC_NO, KC_H, KC_J, KC_K, KC_L, KC_SCLN},
|
||||||
|
{SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, CTL_T(KC_DEL), KC_N, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH) },
|
||||||
|
{KC_ESC, KC_TAB, KC_LGUI, MO(_L2), KC_BSPC, ALT_T(KC_ENT), KC_SPC, MO(_L1), KC_MINS, KC_QUOT, KC_ENT}
|
||||||
|
},
|
||||||
|
[_CM] = { /* Colemak */
|
||||||
|
{KC_Q, KC_W, KC_F, KC_P, KC_G, KC_NO, KC_J, KC_L, KC_U, KC_Y, KC_SCLN},
|
||||||
|
{KC_A, KC_R, KC_S, KC_T, KC_D, KC_NO, KC_H, KC_N, KC_E, KC_I, KC_O },
|
||||||
|
{SFT_T(KC_Z), KC_X, KC_C, KC_V, KC_B, CTL_T(KC_DEL), KC_K, KC_M, KC_COMM, KC_DOT, SFT_T(KC_SLSH) },
|
||||||
|
{KC_ESC, KC_TAB, KC_LGUI, MO(_L2), KC_BSPC, ALT_T(KC_ENT), KC_SPC, MO(_L1), KC_MINS, KC_QUOT, KC_ENT}
|
||||||
|
},
|
||||||
|
[_L1] = { /* LAYER 1 */
|
||||||
|
{KC_1, KC_2, KC_3, KC_4, KC_5, KC_NO, KC_6, KC_7, KC_8, KC_9, KC_0 },
|
||||||
|
{KC_TAB, KC_INS, KC_UP, KC_DEL, KC_HOME, KC_NO, KC_PGUP, KC_MUTE, KC_VOLD, KC_VOLU, KC_EQL },
|
||||||
|
{KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, KC_LCTL, KC_PGDN, KC_MPRV, KC_MPLY, KC_MNXT, KC_BSLS},
|
||||||
|
{KC_TRNS, KC_GRV, KC_LGUI, KC_TRNS, KC_DEL, KC_LALT, KC_SPC, KC_TRNS, KC_LBRC, KC_RBRC, KC_ENT }
|
||||||
|
},
|
||||||
|
[_L2] = { /* LAYER 2 */
|
||||||
|
{KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_NO, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN},
|
||||||
|
{KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_NO, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 },
|
||||||
|
{KC_TRNS, KC_TRNS, DVORAK, QWERTY, COLEMAK, KC_LCTL, KC_TRNS, KC_TRNS, KC_TRNS, KC_F11, KC_F12 },
|
||||||
|
{KC_TRNS, KC_TRNS, KC_LGUI, KC_TRNS, KC_BSPC, KC_LALT, KC_SPC, KC_TRNS, KC_TRNS, KC_TRNS, RESET }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
void persistant_default_layer_set(uint16_t default_layer) {
|
||||||
|
eeconfig_update_default_layer(default_layer);
|
||||||
|
default_layer_set(default_layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||||
|
{
|
||||||
|
switch(id) {
|
||||||
|
case _DV:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistant_default_layer_set(1UL<<_DV);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case _QW:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistant_default_layer_set(1UL<<_QW);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case _CM:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistant_default_layer_set(1UL<<_CM);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return MACRO_NONE;
|
||||||
|
};
|
|
@ -90,7 +90,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# comment out to disable the options.
|
# change to no to disable the options.
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
||||||
MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
|
MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
|
||||||
|
|
|
@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
/* COL2ROW or ROW2COL */
|
/* COL2ROW or ROW2COL */
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
/* define if matrix has ghost */
|
|
||||||
//#define MATRIX_HAS_GHOST
|
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */
|
/* Set 0 if debouncing isn't needed */
|
||||||
#define DEBOUNCING_DELAY 5
|
#define DEBOUNCING_DELAY 5
|
||||||
|
|
||||||
|
|
|
@ -66,19 +66,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* `----------------------------------------------------------------------------------'
|
* `----------------------------------------------------------------------------------'
|
||||||
*/
|
*/
|
||||||
[_RS] = KEYMAP(
|
[_RS] = KEYMAP(
|
||||||
#ifdef RGBLIGHT_ENABLE
|
|
||||||
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_TOG, RGB_VAI, \
|
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_TOG, RGB_VAI, \
|
||||||
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, RGB_VAD, \
|
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, RGB_VAD, \
|
||||||
KC_TRNS, KC_TRNS, MO(_RS),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, MO(_RS),KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
|
||||||
MO(_FL), KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(_FL), RGB_SAI, \
|
MO(_FL), KC_TRNS, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(_FL), RGB_SAI, \
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, RGB_MOD, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_SAD, RGB_HUI),
|
KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, RGB_MOD, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_SAD, RGB_HUI),
|
||||||
#else
|
|
||||||
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, 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, MO(_RS),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,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, MO(_FL), KC_TRNS, KC_TRNS, KC_TRNS),
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
enum function_id {
|
enum function_id {
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# skullY's Clueboard Layout
|
||||||
|
|
||||||
|
This layout is what I (@skullydazed) use on my personal Clueboards. I mostly use it for programming, CAD, and general typing.
|
||||||
|
|
||||||
|
The most notable change from the default layout is putting Ctrl on the Capslock key. I also swap Alt and Cmd because I mostly use a Mac day to day.
|
|
@ -1,4 +1,97 @@
|
||||||
Clueboard keyboard firmware
|
Clueboard keyboard firmware
|
||||||
======================
|
======================
|
||||||
|
|
||||||
TODO: to be updated.
|
DIY/Assembled compact 66% keyboard by [Clueboard](http://clueboard.co).
|
||||||
|
|
||||||
|
For the full Quantum Mechanical Keyboard feature list, see [the parent readme.md](/readme.md).
|
||||||
|
|
||||||
|
## First Time Setup
|
||||||
|
|
||||||
|
Download or clone the whole firmware and navigate to the keyboards/clueboard directory. Once your dev env is setup, you'll be able to generate the default .hex:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make
|
||||||
|
```
|
||||||
|
|
||||||
|
You will see a lot of output and if everything worked correctly you will see something similar to this:
|
||||||
|
|
||||||
|
```
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 19992 0 19992 4e18 clueboard_rev2_default.hex
|
||||||
|
```
|
||||||
|
|
||||||
|
At this point you can press RESET on your Clueboard and flash your keyboard with this command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make dfu
|
||||||
|
```
|
||||||
|
|
||||||
|
If you would like to use one of the alternative keymaps, or create your own, see below.
|
||||||
|
|
||||||
|
## Clueboard 1.0
|
||||||
|
|
||||||
|
If you have a first generation Clueboard (one with a black PCB) you will need to use the revision 1 code. To do so add `SUBPROJECT=rev1` to your make command, like this:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make SUBPROJECT=rev1
|
||||||
|
```
|
||||||
|
|
||||||
|
And when flashing your keyboard:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make SUBPROJECT=rev1 dfu
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are flashing an alternative layout to your rev1, include both `SUBPROJECT=rev1` and `KEYMAP=<keymap>` in your command, for example when flashing max:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make SUBPROJECT=rev1 KEYMAP=max dfu
|
||||||
|
```
|
||||||
|
|
||||||
|
## Alternate Keymaps
|
||||||
|
|
||||||
|
There are many alternative and user-contributed layouts available in the [keymaps/](keymaps/) directory. To compile and flash an alternative you will want to add `KEYMAP=<keymap>` to your command:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make KEYMAP=skully
|
||||||
|
```
|
||||||
|
|
||||||
|
And when flashing your keyboard, put `KEYMAP=<keymap>` between "make" and "dfu":
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make KEYMAP=skully dfu
|
||||||
|
```
|
||||||
|
|
||||||
|
### Notable Layouts
|
||||||
|
|
||||||
|
These layouts are notable for one reason or another. If you are looking for ideas or inspiration you should look at these first:
|
||||||
|
|
||||||
|
* [keymaps/default](keymaps/default) - The default Clueboard layout
|
||||||
|
* [keymaps/max](keymaps/max) - A maximised layout that makes use of every key and feature of the Clueboard 2.0 PCB.
|
||||||
|
* [keymaps/skully](keymaps/skully) - The layout that @skullydazed uses on his own Clueboards.
|
||||||
|
|
||||||
|
## Create Your Own Keymap
|
||||||
|
|
||||||
|
There are a lot of possibilities when creating your own keymap, and the primary documentation for doing that is [Customizing Your Keymap](/readme.md##customizing-your-keymap) in the main readme.md. As a way to get started, here is the procedure I recommend:
|
||||||
|
|
||||||
|
* Copy `[keymaps/default](keymaps/default/)` to `keymaps/<your_layout>`.
|
||||||
|
* Compile the firmware (`$ make KEYMAP=<your_layout>`)
|
||||||
|
* Flash the firmware (`$ make KEYMAP=<your_layout> dfu`)
|
||||||
|
* Make sure everything works like the default keyboard
|
||||||
|
* Modify `keymaps/<your_layout>/readme.md` to tell others about your layout.
|
||||||
|
* Modify `keymaps/<your_layout>/keymap.c` to reflect your desired layout.
|
||||||
|
* Compile your new custom firmware (`$ make KEYMAP=<your_layout>`)
|
||||||
|
** If you have warnings you may flash without fixing them, but something may not work right.
|
||||||
|
** If you have any errors you must fix them before continuing.
|
||||||
|
* Flash the firmware (`$ make KEYMAP=<your_layout> dfu`)
|
||||||
|
|
||||||
|
## Share Your Keymap
|
||||||
|
|
||||||
|
Got your layout dialed in? Please share it with the world so we can benefit from your work! Simply submit a pull request with your layout and we'll include it in the official repository. Please use the following guidelines when putting together your pull request:
|
||||||
|
|
||||||
|
* Include a readme.md that states what your primary keyboard use is, how your layout differs from the default, and highlights anything you think makes your layout particularly great.
|
||||||
|
* If your layout requires certain features (EG, RGB underlight or backlighting) ensure you have a Makefile and config.h that reflects that
|
||||||
|
* If your layout requires special hardware to be added, please describe that in the readme.md
|
||||||
|
|
||||||
|
TODO: Write up or link quick how-to on creating and submitting a PR. (Pull requests accepted. :)
|
||||||
|
|
|
@ -36,4 +36,4 @@
|
||||||
#define RGBLIGHT_SAT_STEP 17
|
#define RGBLIGHT_SAT_STEP 17
|
||||||
#define RGBLIGHT_VAL_STEP 17
|
#define RGBLIGHT_VAL_STEP 17
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
#include "clueboard2.h"
|
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
matrix_init_user();
|
|
||||||
led_init_ports();
|
|
||||||
|
|
||||||
// JTAG disable for PORT F. write JTD bit twice within four cycles.
|
|
||||||
MCUCR |= (1<<JTD);
|
|
||||||
MCUCR |= (1<<JTD);
|
|
||||||
};
|
|
||||||
|
|
||||||
void led_init_ports() {
|
|
||||||
// * Set our LED pins as output
|
|
||||||
DDRB |= (1<<4);
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_set_kb(uint8_t usb_led) {
|
|
||||||
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
||||||
// Turn capslock on
|
|
||||||
PORTB |= (1<<4);
|
|
||||||
} else {
|
|
||||||
// Turn capslock off
|
|
||||||
PORTB &= ~(1<<4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Clueboard 2.0 LED locations:
|
|
||||||
*
|
|
||||||
* Capslock: B4, pull high to turn on
|
|
||||||
* LCtrl: Shared with Capslock, DO NOT INSTALL LED'S IN BOTH
|
|
||||||
* Page Up: B7, pull high to turn on
|
|
||||||
* Escape: D6, pull high to turn on
|
|
||||||
* Arrows: D4, pull high to turn on
|
|
||||||
*/
|
|
||||||
|
|
||||||
void backlight_init_ports(void) {
|
|
||||||
print("init_backlight_pin()\n");
|
|
||||||
// Set our LED pins as output
|
|
||||||
DDRD |= (1<<6); // Esc
|
|
||||||
DDRB |= (1<<7); // Page Up
|
|
||||||
DDRD |= (1<<4); // Arrows
|
|
||||||
|
|
||||||
// Set our LED pins low
|
|
||||||
PORTD &= ~(1<<6); // Esc
|
|
||||||
PORTB &= ~(1<<7); // Page Up
|
|
||||||
PORTD &= ~(1<<4); // Arrows
|
|
||||||
}
|
|
||||||
|
|
||||||
void backlight_set(uint8_t level) {
|
|
||||||
if ( level == 0 ) {
|
|
||||||
// Turn off light
|
|
||||||
PORTD |= (1<<6); // Esc
|
|
||||||
PORTB |= (1<<7); // Page Up
|
|
||||||
PORTD |= (1<<4); // Arrows
|
|
||||||
} else {
|
|
||||||
// Turn on light
|
|
||||||
PORTD &= ~(1<<6); // Esc
|
|
||||||
PORTB &= ~(1<<7); // Page Up
|
|
||||||
PORTD &= ~(1<<4); // Arrows
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -51,21 +51,26 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
||||||
|
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# comment out to disable the options.
|
# change yes to no to disable
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000)
|
BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000)
|
||||||
MOUSEKEY_ENABLE ?= no # Mouse keys(+4700)
|
MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700)
|
||||||
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450)
|
||||||
CONSOLE_ENABLE ?= yes # Console for debug(+400)
|
CONSOLE_ENABLE ?= yes # Console for debug(+400)
|
||||||
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
||||||
NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
RGBLIGHT_ENABLE ?= no # Enable keyboard underlight functionality (+4870)
|
SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
|
||||||
BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality (+1150)
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
MIDI_ENABLE ?= no # MIDI controls
|
NKRO_ENABLE ?= no # USB Nkey Rollover
|
||||||
AUDIO_ENABLE ?= no
|
RGBLIGHT_ENABLE ?= yes # Enable keyboard underlight functionality (+4870)
|
||||||
UNICODE_ENABLE ?= no # Unicode
|
BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality by default
|
||||||
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
|
MIDI_ENABLE ?= no # MIDI controls
|
||||||
|
UNICODE_ENABLE ?= no # Unicode
|
||||||
|
BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE ?= yes # Audio output on port C6
|
||||||
|
|
||||||
ifndef QUANTUM_DIR
|
ifndef QUANTUM_DIR
|
||||||
include ../../Makefile
|
include ../../Makefile
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
#include "cluecard.h"
|
||||||
|
#define BL_RED OCR1B
|
||||||
|
#define BL_GREEN OCR1A
|
||||||
|
#define BL_BLUE OCR1C
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_kb(void) {
|
||||||
|
// 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
|
||||||
|
|
||||||
|
led_set_user(usb_led);
|
||||||
|
}
|
||||||
|
|
||||||
|
void backlight_init_ports(void)
|
||||||
|
{
|
||||||
|
// Set B5, B6, and B7 as output
|
||||||
|
DDRB |= (1<<7)|(1<<6)|(1<<5);
|
||||||
|
|
||||||
|
// Setup PWM
|
||||||
|
ICR1 = 0xFFFF;
|
||||||
|
TCCR1A = 0b10101010;
|
||||||
|
TCCR1B = 0b00011001;
|
||||||
|
|
||||||
|
BL_RED = 0xFFFF;
|
||||||
|
BL_GREEN = 0xFFFF;
|
||||||
|
BL_BLUE = 0xFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
void backlight_set(uint8_t level)
|
||||||
|
{
|
||||||
|
// Set the RGB color
|
||||||
|
switch (level)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
// Off
|
||||||
|
BL_RED = 0xFFFF;
|
||||||
|
BL_GREEN = 0xFFFF;
|
||||||
|
BL_BLUE = 0xFFFF;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
// Red
|
||||||
|
BL_RED = 0x0000;
|
||||||
|
BL_GREEN = 0xFFFF;
|
||||||
|
BL_BLUE = 0xFFFF;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
// Green
|
||||||
|
BL_RED = 0xFFFF;
|
||||||
|
BL_GREEN = 0x0000;
|
||||||
|
BL_BLUE = 0xFFFF;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
// Blue
|
||||||
|
BL_RED = 0xFFFF;
|
||||||
|
BL_GREEN = 0xFFFF;
|
||||||
|
BL_BLUE = 0x0000;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// Magenta
|
||||||
|
BL_RED = 0x4000;
|
||||||
|
BL_GREEN = 0x4000;
|
||||||
|
BL_BLUE = 0x4000;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
// Purple
|
||||||
|
BL_RED = 0x0000;
|
||||||
|
BL_GREEN = 0xFFFF;
|
||||||
|
BL_BLUE = 0x0000;
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
// Yellow
|
||||||
|
BL_RED = 0x0000;
|
||||||
|
BL_GREEN = 0x0000;
|
||||||
|
BL_BLUE = 0xFFFF;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
xprintf("Unknown level: %d\n", level);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
#ifndef CLUECARD_H
|
||||||
|
#define CLUECARD_H
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
// This a shortcut to help you visually see your layout.
|
||||||
|
// The first section contains all of the arguements
|
||||||
|
// The second converts the arguments into a two-dimensional array
|
||||||
|
#define KEYMAP( \
|
||||||
|
k00, k01, k02, \
|
||||||
|
k10, k12, \
|
||||||
|
k20, k21, k22, \
|
||||||
|
k11, \
|
||||||
|
k30, k31, k32 \
|
||||||
|
) { \
|
||||||
|
{ k00, k01, k02, }, \
|
||||||
|
{ k10, k11, k12, }, \
|
||||||
|
{ k20, k21, k22, }, \
|
||||||
|
{ k30, k31, k32, } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,167 @@
|
||||||
|
/*
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xC1ED
|
||||||
|
#define PRODUCT_ID 0x2330
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Clueboard
|
||||||
|
#define PRODUCT ATMEGA32U4 Firmware Dev Kit
|
||||||
|
#define DESCRIPTION A small board to help you hack on QMK.
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 4
|
||||||
|
#define MATRIX_COLS 3
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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, F5, F4, B4 }
|
||||||
|
#define MATRIX_COL_PINS { F1, F7, F6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION ROW2COL
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCING_DELAY 20
|
||||||
|
|
||||||
|
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
#define BACKLIGHT_LEVELS 6
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 */
|
||||||
|
#define IS_COMMAND() ( \
|
||||||
|
keyboard_report->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_HELP1 H
|
||||||
|
//#define MAGIC_KEY_HELP2 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_ALT1 ESC
|
||||||
|
//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
|
||||||
|
//#define MAGIC_KEY_LAYER0 0
|
||||||
|
//#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 PAUSE
|
||||||
|
//#define MAGIC_KEY_LOCK CAPS
|
||||||
|
//#define MAGIC_KEY_EEPROM E
|
||||||
|
//#define MAGIC_KEY_NKRO N
|
||||||
|
//#define MAGIC_KEY_SLEEP_LED Z
|
||||||
|
|
||||||
|
/* Underlight configuration
|
||||||
|
*/
|
||||||
|
#define RGB_DI_PIN E6
|
||||||
|
//#define RGBLIGHT_TIMER
|
||||||
|
#define RGBLED_NUM 4 // Number of LEDs
|
||||||
|
#define RGBLIGHT_HUE_STEP 10
|
||||||
|
#define RGBLIGHT_SAT_STEP 17
|
||||||
|
#define RGBLIGHT_VAL_STEP 17
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,21 @@
|
||||||
|
# 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 = no # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = yes # 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 = yes # Enable keyboard backlight functionality
|
||||||
|
MIDI_ENABLE = no # MIDI controls
|
||||||
|
AUDIO_ENABLE = yes # Audio output on port C6
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../../Makefile
|
||||||
|
endif
|
|
@ -0,0 +1,8 @@
|
||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,63 @@
|
||||||
|
#include "cluecard.h"
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
#include "audio.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = KEYMAP(
|
||||||
|
RGB_TOG, RGB_SAI, RGB_VAI, \
|
||||||
|
RGB_HUD, RGB_HUI, \
|
||||||
|
RGB_MOD, RGB_SAD, RGB_VAD, \
|
||||||
|
BL_STEP, \
|
||||||
|
F(0), F(1), F(2) \
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
|
||||||
|
float tone_startup[][2] = SONG(STARTUP_SOUND);
|
||||||
|
float tone_qwerty[][2] = SONG(QWERTY_SOUND);
|
||||||
|
float tone_dvorak[][2] = SONG(DVORAK_SOUND);
|
||||||
|
float tone_colemak[][2] = SONG(COLEMAK_SOUND);
|
||||||
|
float tone_plover[][2] = SONG(PLOVER_SOUND);
|
||||||
|
float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND);
|
||||||
|
float music_scale[][2] = SONG(MUSIC_SCALE_SOUND);
|
||||||
|
|
||||||
|
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[0] = ACTION_FUNCTION(0),
|
||||||
|
[1] = ACTION_FUNCTION(1),
|
||||||
|
[2] = ACTION_FUNCTION(2)
|
||||||
|
};
|
||||||
|
|
||||||
|
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
if (record->event.pressed) {
|
||||||
|
switch (id) {
|
||||||
|
case 0:
|
||||||
|
PLAY_NOTE_ARRAY(tone_startup, false, 0);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
PLAY_NOTE_ARRAY(music_scale, false, 0);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
# The default keymap for cluecard
|
|
@ -0,0 +1,28 @@
|
||||||
|
cluecard keyboard firmware
|
||||||
|
======================
|
||||||
|
|
||||||
|
## Quantum MK Firmware
|
||||||
|
|
||||||
|
For the full Quantum feature list, see [the parent readme.md](/doc/readme.md).
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Download or clone the whole firmware and navigate to the keyboards/cluecard folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use the Teensy Loader to program your .hex file.
|
||||||
|
|
||||||
|
Depending on which keymap you would like to use, you will have to compile slightly differently.
|
||||||
|
|
||||||
|
### Default
|
||||||
|
|
||||||
|
To build with the default keymap, simply run `make`.
|
||||||
|
|
||||||
|
### Other Keymaps
|
||||||
|
|
||||||
|
Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create a folder with the name of your keymap in the keymaps folder, and see keymap documentation (you can find in top readme.md) and existant keymap files.
|
||||||
|
|
||||||
|
To build the firmware binary hex file with a keymap just do `make` with `keymap` option like:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ make keymap=[default|jack|<name>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Keymaps follow the format **__keymap.c__** and are stored in folders in the `keymaps` folder, eg `keymaps/my_keymap/`
|
|
@ -0,0 +1,34 @@
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# On command line:
|
||||||
|
#
|
||||||
|
# make = Make software.
|
||||||
|
#
|
||||||
|
# make clean = Clean out built project files.
|
||||||
|
#
|
||||||
|
# That's pretty much all you need. To compile, always go make clean,
|
||||||
|
# followed by make.
|
||||||
|
#
|
||||||
|
# For advanced users only:
|
||||||
|
# make teensy = Download the hex file to the device, using teensy_loader_cli.
|
||||||
|
# (must have teensy_loader_cli installed).
|
||||||
|
#
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
SUBPROJECT_DEFAULT = ez
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# comment out to disable the options.
|
||||||
|
#
|
||||||
|
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 ?= no # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
||||||
|
CUSTOM_MATRIX ?= yes # Custom matrix file for the ErgoDox EZ
|
||||||
|
SLEEP_LED_ENABLE ?= yes # 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
|
||||||
|
MIDI_ENABLE ?= no # MIDI controls
|
||||||
|
UNICODE_ENABLE ?= yes # Unicode
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../Makefile
|
||||||
|
endif
|
|
@ -0,0 +1,36 @@
|
||||||
|
#ifndef KEYBOARDS_ERGODOX_CONFIG_H_
|
||||||
|
#define KEYBOARDS_ERGODOX_CONFIG_H_
|
||||||
|
|
||||||
|
#define MOUSEKEY_DELAY 100
|
||||||
|
#define MOUSEKEY_INTERVAL 20
|
||||||
|
#define MOUSEKEY_MAX_SPEED 3
|
||||||
|
#define MOUSEKEY_TIME_TO_MAX 10
|
||||||
|
|
||||||
|
#define TAPPING_TOGGLE 1
|
||||||
|
|
||||||
|
/* define if matrix has ghost */
|
||||||
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
|
#define TAPPING_TERM 200
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
/* key combination for command */
|
||||||
|
#define IS_COMMAND() ( \
|
||||||
|
keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
|
||||||
|
keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
|
||||||
|
)
|
||||||
|
|
||||||
|
#ifdef SUBPROJECT_ez
|
||||||
|
#include "ez/config.h"
|
||||||
|
#endif
|
||||||
|
#ifdef SUBPROJECT_infinity
|
||||||
|
#include "infinity/config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* KEYBOARDS_ERGODOX_CONFIG_H_ */
|
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef KEYBOARDS_ERGODOX_ERGODOX_H_
|
||||||
|
#define KEYBOARDS_ERGODOX_ERGODOX_H_
|
||||||
|
#ifdef SUBPROJECT_ez
|
||||||
|
#include "ez.h"
|
||||||
|
#endif
|
||||||
|
#ifdef SUBPROJECT_infinity
|
||||||
|
#include "infinity.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* KEYBOARDS_ERGODOX_ERGODOX_H_ */
|
|
@ -70,17 +70,7 @@ OPT_DEFS += -DBOOTLOADER_SIZE=512
|
||||||
# Build Options
|
# Build Options
|
||||||
# comment out to disable the options.
|
# comment out to disable the options.
|
||||||
#
|
#
|
||||||
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 ?= no # Console for debug(+400)
|
|
||||||
COMMAND_ENABLE ?= yes # Commands for debug and configuration
|
|
||||||
CUSTOM_MATRIX ?= yes # Custom matrix file for the ErgoDox EZ
|
|
||||||
SLEEP_LED_ENABLE ?= yes # 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
|
|
||||||
MIDI_ENABLE ?= no # MIDI controls
|
|
||||||
UNICODE_ENABLE ?= yes # Unicode
|
|
||||||
|
|
||||||
ifndef QUANTUM_DIR
|
ifndef QUANTUM_DIR
|
||||||
include ../../Makefile
|
include ../../../Makefile
|
||||||
endif
|
endif
|
|
@ -16,10 +16,10 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_H
|
#ifndef ERGODOX_EZ_CONFIG_H
|
||||||
#define CONFIG_H
|
#define ERGODOX_EZ_CONFIG_H
|
||||||
|
|
||||||
#include "config_common.h"
|
#include "../config.h"
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xFEED
|
#define VENDOR_ID 0xFEED
|
||||||
|
@ -27,46 +27,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define DEVICE_VER 0x0001
|
#define DEVICE_VER 0x0001
|
||||||
#define MANUFACTURER ErgoDox EZ
|
#define MANUFACTURER ErgoDox EZ
|
||||||
#define PRODUCT ErgoDox EZ
|
#define PRODUCT ErgoDox EZ
|
||||||
#define DESCRIPTION t.m.k. keyboard firmware for Ergodox
|
#define DESCRIPTION QMK keyboard firmware for Ergodox EZ
|
||||||
|
|
||||||
/* key matrix size */
|
/* key matrix size */
|
||||||
#define MATRIX_ROWS 14
|
#define MATRIX_ROWS 14
|
||||||
#define MATRIX_COLS 6
|
#define MATRIX_COLS 6
|
||||||
|
|
||||||
#define MOUSEKEY_DELAY 100
|
|
||||||
#define MOUSEKEY_INTERVAL 20
|
|
||||||
#define MOUSEKEY_MAX_SPEED 3
|
|
||||||
#define MOUSEKEY_TIME_TO_MAX 10
|
|
||||||
|
|
||||||
#define TAPPING_TOGGLE 1
|
|
||||||
|
|
||||||
#define COLS (int []){ F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
|
|
||||||
#define ROWS (int []){ D0, D5, B5, B6 }
|
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */
|
|
||||||
#define DIODE_DIRECTION COL2ROW
|
|
||||||
|
|
||||||
/* define if matrix has ghost */
|
|
||||||
//#define MATRIX_HAS_GHOST
|
|
||||||
|
|
||||||
/* number of backlight levels */
|
/* number of backlight levels */
|
||||||
#define BACKLIGHT_LEVELS 3
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
#define LED_BRIGHTNESS_LO 15
|
||||||
|
#define LED_BRIGHTNESS_HI 255
|
||||||
|
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */
|
/* Set 0 if debouncing isn't needed */
|
||||||
#define DEBOUNCE 2
|
#define DEBOUNCE 5
|
||||||
#define TAPPING_TERM 200
|
|
||||||
#define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
|
|
||||||
|
|
||||||
/* 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
|
|
||||||
|
|
||||||
/* key combination for command */
|
|
||||||
#define IS_COMMAND() ( \
|
|
||||||
keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
|
|
||||||
keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
|
|
||||||
)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Feature disable options
|
* Feature disable options
|
||||||
|
@ -86,7 +61,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
//#define NO_ACTION_MACRO
|
//#define NO_ACTION_MACRO
|
||||||
//#define NO_ACTION_FUNCTION
|
//#define NO_ACTION_FUNCTION
|
||||||
//#define DEBUG_MATRIX_SCAN_RATE
|
//#define DEBUG_MATRIX_SCAN_RATE
|
||||||
#define ONESHOT_TAP_TOGGLE 2
|
|
||||||
#define ONESHOT_TIMEOUT 3000
|
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ez.h"
|
||||||
#include "i2cmaster.h"
|
#include "i2cmaster.h"
|
||||||
|
|
||||||
bool i2c_initialized = 0;
|
bool i2c_initialized = 0;
|
|
@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
#include "ergodox_ez.h"
|
#include "ez.h"
|
||||||
#include "i2cmaster.h"
|
#include "i2cmaster.h"
|
||||||
#ifdef DEBUG_MATRIX_SCAN_RATE
|
#ifdef DEBUG_MATRIX_SCAN_RATE
|
||||||
#include "timer.h"
|
#include "timer.h"
|
|
@ -52,34 +52,26 @@ ARMV = 7
|
||||||
# Vector table for application
|
# Vector table for application
|
||||||
# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
|
# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
|
||||||
# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
|
# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
|
||||||
OPT_DEFS = -DCORTEX_VTOR_INIT=0x00002000
|
OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
|
||||||
|
|
||||||
# Build Options
|
# Build Options
|
||||||
# comment out to disable the options.
|
# comment out to disable the options.
|
||||||
#
|
#
|
||||||
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
|
|
||||||
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
|
|
||||||
NKRO_ENABLE ?= yes # USB Nkey Rollover
|
|
||||||
CUSTOM_MATRIX ?= yes # Custom matrix file
|
CUSTOM_MATRIX ?= yes # Custom matrix file
|
||||||
SERIAL_LINK_ENABLE = yes
|
SERIAL_LINK_ENABLE = yes
|
||||||
VISUALIZER_ENABLE ?= yes
|
VISUALIZER_ENABLE ?= no #temporarily disabled to make everything compile
|
||||||
LCD_ENABLE ?= yes
|
LCD_ENABLE ?= yes
|
||||||
LED_ENABLE ?= yes
|
LED_ENABLE ?= yes
|
||||||
LCD_BACKLIGHT_ENABLE ?= yes
|
LCD_BACKLIGHT_ENABLE ?= yes
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../Makefile
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef LCD_ENABLE
|
ifdef LCD_ENABLE
|
||||||
include drivers/gdisp/st7565ergodox/driver.mk
|
include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef LED_ENABLE
|
ifdef LED_ENABLE
|
||||||
include drivers/gdisp/IS31FL3731C/driver.mk
|
include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef QUANTUM_DIR
|
|
||||||
include ../../Makefile
|
|
||||||
endif
|
|
|
@ -15,8 +15,10 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_H
|
#ifndef INFINITY_ERGODOX_CONFIG_H
|
||||||
#define CONFIG_H
|
#define INFINITY_ERGODOX_CONFIG_H
|
||||||
|
|
||||||
|
#include "../config.h"
|
||||||
|
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
|
@ -35,25 +37,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define MATRIX_COLS 5
|
#define MATRIX_COLS 5
|
||||||
#define LOCAL_MATRIX_ROWS 9
|
#define LOCAL_MATRIX_ROWS 9
|
||||||
|
|
||||||
|
/* number of backlight levels */
|
||||||
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
#define LED_BRIGHTNESS_LO 15
|
||||||
|
#define LED_BRIGHTNESS_HI 255
|
||||||
|
|
||||||
/* define if matrix has ghost */
|
/* define if matrix has ghost */
|
||||||
//#define MATRIX_HAS_GHOST
|
//#define MATRIX_HAS_GHOST
|
||||||
|
|
||||||
/* Set 0 if debouncing isn't needed */
|
/* Set 0 if debouncing isn't needed */
|
||||||
#define DEBOUNCE 5
|
#define DEBOUNCE 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
|
|
||||||
|
|
||||||
/* key combination for command */
|
|
||||||
#define IS_COMMAND() ( \
|
|
||||||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
|
|
||||||
)
|
|
||||||
|
|
||||||
/* Keymap for Infiity prototype */
|
|
||||||
#define INFINITY_PROTOTYPE
|
|
||||||
|
|
||||||
#define SERIAL_LINK_BAUD 562500
|
#define SERIAL_LINK_BAUD 562500
|
||||||
#define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
|
#define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
|
||||||
// The visualizer needs gfx thread priorities
|
// The visualizer needs gfx thread priorities
|
|
@ -1,8 +1,10 @@
|
||||||
#include "infinity_ergodox.h"
|
#include "infinity.h"
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
#include "hal.h"
|
#include "hal.h"
|
||||||
#include "serial_link/system/serial_link.h"
|
#include "serial_link/system/serial_link.h"
|
||||||
|
#ifdef VISUALIZER_ENABLE
|
||||||
#include "lcd_backlight.h"
|
#include "lcd_backlight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void init_serial_link_hal(void) {
|
void init_serial_link_hal(void) {
|
||||||
PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2);
|
PORTA->PCR[1] = PORTx_PCRn_PE | PORTx_PCRn_PS | PORTx_PCRn_PFE | PORTx_PCRn_MUX(2);
|
||||||
|
@ -36,7 +38,7 @@ void init_serial_link_hal(void) {
|
||||||
// Using a higher pre-scalar without flicker is possible but FTM0_MOD will need to be reduced
|
// Using a higher pre-scalar without flicker is possible but FTM0_MOD will need to be reduced
|
||||||
// Which will reduce the brightness range
|
// Which will reduce the brightness range
|
||||||
#define PRESCALAR_DEFINE 0
|
#define PRESCALAR_DEFINE 0
|
||||||
|
#ifdef VISUALIZER_ENABLE
|
||||||
void lcd_backlight_hal_init(void) {
|
void lcd_backlight_hal_init(void) {
|
||||||
// Setup Backlight
|
// Setup Backlight
|
||||||
SIM->SCGC6 |= SIM_SCGC6_FTM0;
|
SIM->SCGC6 |= SIM_SCGC6_FTM0;
|
||||||
|
@ -74,3 +76,57 @@ void lcd_backlight_hal_color(uint16_t r, uint16_t g, uint16_t b) {
|
||||||
CHANNEL_GREEN.CnV = g;
|
CHANNEL_GREEN.CnV = g;
|
||||||
CHANNEL_BLUE.CnV = b;
|
CHANNEL_BLUE.CnV = b;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
__attribute__ ((weak))
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
__attribute__ ((weak))
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
// put your keyboard start-up code here
|
||||||
|
// runs once when the firmware starts up
|
||||||
|
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_scan_kb(void) {
|
||||||
|
// put your looping keyboard code here
|
||||||
|
// runs every cycle (a lot)
|
||||||
|
|
||||||
|
matrix_scan_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_board_led_on(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_1_on(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_2_on(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_3_on(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_on(uint8_t led){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_board_led_off(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_1_off(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_2_off(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_3_off(void){
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_off(uint8_t led){
|
||||||
|
}
|
|
@ -0,0 +1,110 @@
|
||||||
|
#ifndef KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
|
||||||
|
#define KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
void ergodox_board_led_on(void);
|
||||||
|
void ergodox_right_led_1_on(void);
|
||||||
|
void ergodox_right_led_2_on(void);
|
||||||
|
void ergodox_right_led_3_on(void);
|
||||||
|
void ergodox_right_led_on(uint8_t led);
|
||||||
|
|
||||||
|
void ergodox_board_led_off(void);
|
||||||
|
void ergodox_right_led_1_off(void);
|
||||||
|
void ergodox_right_led_2_off(void);
|
||||||
|
void ergodox_right_led_3_off(void);
|
||||||
|
void ergodox_right_led_off(uint8_t led);
|
||||||
|
|
||||||
|
inline void ergodox_led_all_on(void)
|
||||||
|
{
|
||||||
|
ergodox_board_led_on();
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_led_all_off(void)
|
||||||
|
{
|
||||||
|
ergodox_board_led_off();
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_right_led_1_set(uint8_t n){
|
||||||
|
if (n) {
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
} else {
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_right_led_2_set(uint8_t n){
|
||||||
|
if (n) {
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
} else {
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_right_led_3_set(uint8_t n){
|
||||||
|
if (n) {
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
} else {
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_right_led_set(uint8_t led, uint8_t n){
|
||||||
|
if (n) {
|
||||||
|
ergodox_right_led_on(led);
|
||||||
|
} else {
|
||||||
|
ergodox_right_led_off(led);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void ergodox_led_all_set(uint8_t n) {
|
||||||
|
ergodox_right_led_1_set(n);
|
||||||
|
ergodox_right_led_2_set(n);
|
||||||
|
ergodox_right_led_3_set(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define KEYMAP( \
|
||||||
|
A80, A70, A60, A50, A40, A30, A20, \
|
||||||
|
A81, A71, A61, A51, A41, A31, A21, \
|
||||||
|
A82, A72, A62, A52, A42, A32, \
|
||||||
|
A83, A73, A63, A53, A43, A33, A23, \
|
||||||
|
A84, A74, A64, A54, A44, \
|
||||||
|
A13, A03, \
|
||||||
|
A04, \
|
||||||
|
A34, A24, A14, \
|
||||||
|
B20, B30, B40, B50, B60, B70, B80, \
|
||||||
|
B21, B31, B41, B51, B61, B71, B81, \
|
||||||
|
B32, B42, B52, B62, B72, B82, \
|
||||||
|
B23, B33, B43, B53, B63, B73, B83, \
|
||||||
|
B44, B54, B64, B74, B84, \
|
||||||
|
B03, B13, \
|
||||||
|
B04, \
|
||||||
|
B14, B24, B34 \
|
||||||
|
) { \
|
||||||
|
{ KC_NO, KC_NO, KC_NO, A03, A04 }, \
|
||||||
|
{ KC_NO, KC_NO, KC_NO, A13, A14 }, \
|
||||||
|
{ A20, A21, KC_NO, A23, A24 }, \
|
||||||
|
{ A30, A31, A32, A33, A34 }, \
|
||||||
|
{ A40, A41, A42, A43, A44 }, \
|
||||||
|
{ A50, A51, A52, A53, A54 }, \
|
||||||
|
{ A60, A61, A62, A63, A64 }, \
|
||||||
|
{ A70, A71, A72, A73, A74 }, \
|
||||||
|
{ A80, A81, A82, A83, A84 }, \
|
||||||
|
{ KC_NO, KC_NO, KC_NO, B03, B04 }, \
|
||||||
|
{ KC_NO, KC_NO, KC_NO, B13, B14 }, \
|
||||||
|
{ B20, B21, KC_NO, B23, B24 }, \
|
||||||
|
{ B30, B31, B32, B33, B34 }, \
|
||||||
|
{ B40, B41, B42, B43, B44 }, \
|
||||||
|
{ B50, B51, B52, B53, B54 }, \
|
||||||
|
{ B60, B61, B62, B63, B64 }, \
|
||||||
|
{ B70, B71, B72, B73, B74 }, \
|
||||||
|
{ B80, B81, B82, B83, B84 } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* KEYBOARDS_ERGODOX_INFINITY_INFINITY_H_ */
|
|
@ -63,6 +63,8 @@ void matrix_init(void)
|
||||||
|
|
||||||
memset(matrix, 0, MATRIX_ROWS);
|
memset(matrix, 0, MATRIX_ROWS);
|
||||||
memset(matrix_debouncing, 0, LOCAL_MATRIX_ROWS);
|
memset(matrix_debouncing, 0, LOCAL_MATRIX_ROWS);
|
||||||
|
|
||||||
|
matrix_init_quantum();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t matrix_scan(void)
|
uint8_t matrix_scan(void)
|
||||||
|
@ -127,6 +129,7 @@ uint8_t matrix_scan(void)
|
||||||
}
|
}
|
||||||
debouncing = false;
|
debouncing = false;
|
||||||
}
|
}
|
||||||
|
matrix_scan_quantum();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "keymap_german.h"
|
#include "keymap_german.h"
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
|
|
Before Width: | Height: | Size: 814 KiB After Width: | Height: | Size: 814 KiB |
|
@ -4,13 +4,19 @@ SLEEP_LED_ENABLE=no
|
||||||
UNICODE_ENABLE=no
|
UNICODE_ENABLE=no
|
||||||
FORCE_NKRO ?= yes
|
FORCE_NKRO ?= yes
|
||||||
DEBUG_ENABLE = no
|
DEBUG_ENABLE = no
|
||||||
CONSOLE_ENABLE = yes
|
CONSOLE_ENABLE = no
|
||||||
TAP_DANCE_ENABLE = yes
|
TAP_DANCE_ENABLE = yes
|
||||||
|
KEYLOGGER_ENABLE ?= yes
|
||||||
|
|
||||||
ifeq (${FORCE_NKRO},yes)
|
ifeq (${FORCE_NKRO},yes)
|
||||||
OPT_DEFS += -DFORCE_NKRO
|
OPT_DEFS += -DFORCE_NKRO
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq (${KEYLOGGER_ENABLE},yes)
|
||||||
|
OPT_DEFS += -DKEYLOGGER_ENABLE
|
||||||
|
CONSOLE_ENABLE = yes
|
||||||
|
endif
|
||||||
|
|
||||||
KEYMAP_VERSION = $(shell \
|
KEYMAP_VERSION = $(shell \
|
||||||
if [ -d "${KEYMAP_PATH}/.git" ]; then \
|
if [ -d "${KEYMAP_PATH}/.git" ]; then \
|
||||||
cd "${KEYMAP_PATH}" && git describe --abbrev=6 --dirty --always --tags --match 'v*' 2>/dev/null; \
|
cd "${KEYMAP_PATH}" && git describe --abbrev=6 --dirty --always --tags --match 'v*' 2>/dev/null; \
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 135 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
@ -50,6 +50,7 @@ At its core, this is a Dvorak layout, with some minor changes. The more interest
|
||||||
- `LEAD a` makes the [ADORE layer](#adore-layer) the default.
|
- `LEAD a` makes the [ADORE layer](#adore-layer) the default.
|
||||||
- `LEAD v` prints the firmware version, the keyboard and the keymap.
|
- `LEAD v` prints the firmware version, the keyboard and the keymap.
|
||||||
- `LEAD d` toggles logging keypress positions to the HID console.
|
- `LEAD d` toggles logging keypress positions to the HID console.
|
||||||
|
- `LEAD t` toggles time travel. Figuring out the current `date` is left as an exercise to the reader.
|
||||||
|
|
||||||
## ADORE layer
|
## ADORE layer
|
||||||
|
|
||||||
|
@ -148,6 +149,14 @@ The keymap default to forcing NKRO, which seems to upset Windows, and except the
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.4 - 2016-07-29
|
||||||
|
|
||||||
|
* When toggling the key logging on or off, the LEDs will do a little dance.
|
||||||
|
* The keylogger is now optional, but enabled by default. Use `KEYLOGGER_ENABLE=no` on the `make` command line to disable it.
|
||||||
|
* The `TAB`/`ARRW` key was turned into a tap-dance key, allowing one to toggle the **ARROW** layer on by double-tapping, and as such, avoid the need to hold the key.
|
||||||
|
* The `-`/`_` key was turned into a tap-dance key too.
|
||||||
|
* There is now a way to travel time with the keyboard, toggle the feature on by hitting `LEAD t`.
|
||||||
|
|
||||||
## v1.3 - 2016-07-06
|
## v1.3 - 2016-07-06
|
||||||
|
|
||||||
* Added support for logging keys, by pressing `LEAD d`. Also included is a tool to generate a [heatmap](#heatmap) out of the logs.
|
* Added support for logging keys, by pressing `LEAD d`. Also included is a tool to generate a [heatmap](#heatmap) out of the logs.
|
|
@ -0,0 +1,533 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"backcolor": "#ffffff",
|
||||||
|
"name": "ErgoDox - algernon's layout: Heatmap",
|
||||||
|
"author": "Gergely Nagy <kbd@gergo.csillger.hu>",
|
||||||
|
"notes": "See [here](https://github.com/algernon/ergodox-layout#readme) for the QMK keymap source.",
|
||||||
|
"switchMount": "cherry",
|
||||||
|
"switchBrand": "gateron",
|
||||||
|
"switchType": "KS-3-Tea",
|
||||||
|
"pcb": true,
|
||||||
|
"css": ".keyborder { -webkit-filter: blur(5px); filter: blur(5px); } .keytop { -webkit-filter: blur(10px); } .keylabels { border: 1px solid black; }"
|
||||||
|
},
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": 3.5,
|
||||||
|
"c": "#a7d0db",
|
||||||
|
"fa": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"#\n3\nF3",
|
||||||
|
{
|
||||||
|
"x": 10.5,
|
||||||
|
"c": "#a7d0db",
|
||||||
|
"t": "#000000",
|
||||||
|
"a": 4,
|
||||||
|
"fa": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"*\n8\nF8"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 2.5,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"@\n2\nF2",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"$\n4\nF4",
|
||||||
|
{
|
||||||
|
"x": 8.5
|
||||||
|
},
|
||||||
|
"&\n7\nF7",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"(\n9\nF9"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 5.5,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"%\n5\nF5",
|
||||||
|
{
|
||||||
|
"c": "#f9cd31",
|
||||||
|
"a": 7,
|
||||||
|
"f": 2
|
||||||
|
},
|
||||||
|
"STENO",
|
||||||
|
{
|
||||||
|
"x": 4.5,
|
||||||
|
"f": 6
|
||||||
|
},
|
||||||
|
"<i class='mss mss-Unicode-Option-3'></i>",
|
||||||
|
{
|
||||||
|
"c": "#7adabd",
|
||||||
|
"a": 4,
|
||||||
|
"f": 3,
|
||||||
|
"fa": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
2
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"^\n6\nF6"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"c": "#ffb2d2",
|
||||||
|
"f": 3,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"\n\n~\n`",
|
||||||
|
{
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"!\n1\nF1",
|
||||||
|
{
|
||||||
|
"x": 14.5
|
||||||
|
},
|
||||||
|
")\n0\nF10",
|
||||||
|
{
|
||||||
|
"a": 7,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"F11"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.375,
|
||||||
|
"x": 3.5,
|
||||||
|
"c": "#a7d0db",
|
||||||
|
"t": "#000000",
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"L",
|
||||||
|
{
|
||||||
|
"x": 10.5
|
||||||
|
},
|
||||||
|
"C"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 2.5,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b",
|
||||||
|
"a": 4
|
||||||
|
},
|
||||||
|
">\n.",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000",
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"W",
|
||||||
|
{
|
||||||
|
"x": 8.5
|
||||||
|
},
|
||||||
|
"H",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"P"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 5.5,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"M",
|
||||||
|
{
|
||||||
|
"c": "#93c9b7",
|
||||||
|
"a": 4,
|
||||||
|
"h": 1.5
|
||||||
|
},
|
||||||
|
"{\n[",
|
||||||
|
{
|
||||||
|
"x": 4.5,
|
||||||
|
"h": 1.5
|
||||||
|
},
|
||||||
|
"}\n]",
|
||||||
|
{
|
||||||
|
"c": "#7adabd",
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"F"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"c": "#ffb07b",
|
||||||
|
"t": "#0d0d0b",
|
||||||
|
"f": 6,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"<i class='fa fa-fast-backward'></i>\n\n<i class='fa fa-fast-forward'></i>",
|
||||||
|
{
|
||||||
|
"c": "#ffb2d2",
|
||||||
|
"a": 4,
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"<\n,",
|
||||||
|
{
|
||||||
|
"x": 14.5,
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"Y",
|
||||||
|
{
|
||||||
|
"a": 4,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"|\n\\"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.375,
|
||||||
|
"x": 3.5,
|
||||||
|
"c": "#a7d0db",
|
||||||
|
"t": "#000000",
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"E",
|
||||||
|
{
|
||||||
|
"x": 10.5
|
||||||
|
},
|
||||||
|
"T"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 2.5,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"O",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000",
|
||||||
|
"n": true
|
||||||
|
},
|
||||||
|
"I",
|
||||||
|
{
|
||||||
|
"x": 8.5,
|
||||||
|
"n": true
|
||||||
|
},
|
||||||
|
"R",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"N"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 5.5,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"U",
|
||||||
|
{
|
||||||
|
"x": 6.5
|
||||||
|
},
|
||||||
|
"D"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"c": "#ffb2d2",
|
||||||
|
"t": "#0d0d0b",
|
||||||
|
"fa": [
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"<i class='fa fa-arrows'></i>\n\nTab",
|
||||||
|
{
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"A",
|
||||||
|
{
|
||||||
|
"x": 14.5,
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"S",
|
||||||
|
{
|
||||||
|
"a": 4,
|
||||||
|
"fa": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
6
|
||||||
|
],
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"+\n="
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.625,
|
||||||
|
"x": 6.5,
|
||||||
|
"c": "#93c9b7",
|
||||||
|
"t": "#000000",
|
||||||
|
"a": 7,
|
||||||
|
"h": 1.5
|
||||||
|
},
|
||||||
|
"(",
|
||||||
|
{
|
||||||
|
"x": 4.5,
|
||||||
|
"h": 1.5
|
||||||
|
},
|
||||||
|
")"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.75,
|
||||||
|
"x": 3.5,
|
||||||
|
"c": "#a7d0db",
|
||||||
|
"a": 4,
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"\"\n'",
|
||||||
|
{
|
||||||
|
"x": 10.5
|
||||||
|
},
|
||||||
|
"V"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 2.5,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"Z",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"K",
|
||||||
|
{
|
||||||
|
"x": 8.5
|
||||||
|
},
|
||||||
|
"G",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#bfbad1",
|
||||||
|
"t": "#0d0d0b"
|
||||||
|
},
|
||||||
|
"J"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 5.5,
|
||||||
|
"c": "#7adabd",
|
||||||
|
"t": "#000000"
|
||||||
|
},
|
||||||
|
"X",
|
||||||
|
{
|
||||||
|
"x": 6.5
|
||||||
|
},
|
||||||
|
"B"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"c": "#ffb07b",
|
||||||
|
"f": 9,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"\n\n<i class='kb kb-Multimedia-Play-Pause'></i>",
|
||||||
|
{
|
||||||
|
"c": "#ffb2d2",
|
||||||
|
"t": "#0d0d0b",
|
||||||
|
"a": 4,
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"?\n/",
|
||||||
|
{
|
||||||
|
"x": 14.5,
|
||||||
|
"a": 6
|
||||||
|
},
|
||||||
|
"Q",
|
||||||
|
{
|
||||||
|
"c": "#ffb07b",
|
||||||
|
"t": "#000000",
|
||||||
|
"f": 9,
|
||||||
|
"w": 1.5
|
||||||
|
},
|
||||||
|
"<i class='kb kb-Multimedia-Stop'></i>"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.375,
|
||||||
|
"x": 3.5,
|
||||||
|
"c": "#d9dae0",
|
||||||
|
"g": true,
|
||||||
|
"a": 7,
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
{
|
||||||
|
"x": 10.5
|
||||||
|
},
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.875,
|
||||||
|
"x": 2.5
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#d4872a",
|
||||||
|
"g": false,
|
||||||
|
"a": 5
|
||||||
|
},
|
||||||
|
";\n:",
|
||||||
|
{
|
||||||
|
"x": 8.5
|
||||||
|
},
|
||||||
|
"_\n-",
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"c": "#d9dae0",
|
||||||
|
"g": true,
|
||||||
|
"a": 7
|
||||||
|
},
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": -0.75,
|
||||||
|
"x": 0.5
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
{},
|
||||||
|
"",
|
||||||
|
{
|
||||||
|
"x": 14.5
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
{},
|
||||||
|
""
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"r": 30,
|
||||||
|
"rx": 6.5,
|
||||||
|
"ry": 4.25,
|
||||||
|
"y": -1,
|
||||||
|
"x": 1,
|
||||||
|
"c": "#f9cd31",
|
||||||
|
"g": false
|
||||||
|
},
|
||||||
|
"Alt",
|
||||||
|
{
|
||||||
|
"a": 4,
|
||||||
|
"fa": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
9
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"\n\n\n<i class='kb kb-logo-linux-debian fa-large'></i>"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"c": "#d4872a",
|
||||||
|
"a": 7,
|
||||||
|
"f": 9,
|
||||||
|
"h": 2
|
||||||
|
},
|
||||||
|
"<i class='kb kb-Unicode-BackSpace-DeleteLeft-Big'></i>",
|
||||||
|
{
|
||||||
|
"h": 2
|
||||||
|
},
|
||||||
|
"<i class='fa fa-angle-double-up'></i>",
|
||||||
|
{
|
||||||
|
"c": "#f9cd31",
|
||||||
|
"f": 3
|
||||||
|
},
|
||||||
|
"Ctrl"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": 2,
|
||||||
|
"c": "#e26757"
|
||||||
|
},
|
||||||
|
"ESC"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"r": -30,
|
||||||
|
"rx": 13,
|
||||||
|
"y": -1,
|
||||||
|
"x": -3,
|
||||||
|
"c": "#f9cd31",
|
||||||
|
"f": 2
|
||||||
|
},
|
||||||
|
"MEDIA",
|
||||||
|
{},
|
||||||
|
"1HAND"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": -3
|
||||||
|
},
|
||||||
|
"LEAD",
|
||||||
|
{
|
||||||
|
"c": "#d4872a",
|
||||||
|
"f": 9,
|
||||||
|
"h": 2
|
||||||
|
},
|
||||||
|
"<i class='kb kb-Return-2'></i>",
|
||||||
|
{
|
||||||
|
"f": 3,
|
||||||
|
"h": 2
|
||||||
|
},
|
||||||
|
"SPC"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": -3,
|
||||||
|
"c": "#f9cd31",
|
||||||
|
"f": 2
|
||||||
|
},
|
||||||
|
"HUN"
|
||||||
|
]
|
||||||
|
]
|
|
@ -1,7 +1,7 @@
|
||||||
// Netable differences vs. the default firmware for the ErgoDox EZ:
|
// Netable differences vs. the default firmware for the ErgoDox EZ:
|
||||||
// 1. The Cmd key is now on the right side, making Cmd+Space easier.
|
// 1. The Cmd key is now on the right side, making Cmd+Space easier.
|
||||||
// 2. The media keys work on OSX (But not on Windows).
|
// 2. The media keys work on OSX (But not on Windows).
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
|
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "keymap_bepo.h"
|
#include "keymap_bepo.h"
|
|
@ -0,0 +1,2 @@
|
||||||
|
SLEEP_LED_ENABLE = no
|
||||||
|
UNICODE_ENABLE = yes
|
|
@ -1,7 +1,8 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "keymap_neo2.h"
|
#include "led.h"
|
||||||
|
#include "keymap_extras/keymap_neo2.h"
|
||||||
|
|
||||||
// Layer names
|
// Layer names
|
||||||
#define BASE 0 // default layer
|
#define BASE 0 // default layer
|
||||||
|
@ -33,7 +34,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
*/
|
*/
|
||||||
[BASE] = KEYMAP(
|
[BASE] = KEYMAP(
|
||||||
// left hand
|
// left hand
|
||||||
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL,
|
KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, NEO_GRV,
|
||||||
NEO_Y, NEO_X, NEO_V, NEO_L, NEO_C, NEO_W, KC_HOME,
|
NEO_Y, NEO_X, NEO_V, NEO_L, NEO_C, NEO_W, KC_HOME,
|
||||||
NEO_L1_L, NEO_U, NEO_I, NEO_A, NEO_E, NEO_O,
|
NEO_L1_L, NEO_U, NEO_I, NEO_A, NEO_E, NEO_O,
|
||||||
KC_LSFT, NEO_UE, NEO_OE, NEO_AE, NEO_P, NEO_Z, TG(PMQ),
|
KC_LSFT, NEO_UE, NEO_OE, NEO_AE, NEO_P, NEO_Z, TG(PMQ),
|
||||||
|
@ -42,7 +43,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
KC_MINS,
|
KC_MINS,
|
||||||
KC_SPC, KC_ENT, ALL_T(KC_NO),
|
KC_SPC, KC_ENT, ALL_T(KC_NO),
|
||||||
// right hand
|
// right hand
|
||||||
DE_ACUT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
NEO_ACUT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||||
KC_END, NEO_K, NEO_H, NEO_G, NEO_F, NEO_Q, NEO_SS,
|
KC_END, NEO_K, NEO_H, NEO_G, NEO_F, NEO_Q, NEO_SS,
|
||||||
NEO_S, NEO_N, NEO_R, NEO_T, NEO_D, NEO_L1_R,
|
NEO_S, NEO_N, NEO_R, NEO_T, NEO_D, NEO_L1_R,
|
||||||
TG(PMN), NEO_B, NEO_M, KC_COMM,KC_DOT, NEO_J, KC_RSFT,
|
TG(PMN), NEO_B, NEO_M, KC_COMM,KC_DOT, NEO_J, KC_RSFT,
|
||||||
|
@ -140,10 +141,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* │ │ │ │ │ ✕ │ │ │ │ │ │ F9 │ F10 │ F11 │ F12 │ │
|
* │ │ │ │ │ ✕ │ │ │ │ │ │ F9 │ F10 │ F11 │ F12 │ │
|
||||||
* ├───────┼─────┼─────┼─────╆─────╅─────┤ │ │ ├─────╆─────╅─────┼─────┼─────┼───────┤
|
* ├───────┼─────┼─────┼─────╆─────╅─────┤ │ │ ├─────╆─────╅─────┼─────┼─────┼───────┤
|
||||||
* │ │ │ │ │ ✓ │ ├─────┤ ├─────┤ │ F5 │ F6 │ F7 │ F8 │ │
|
* │ │ │ │ │ ✓ │ ├─────┤ ├─────┤ │ F5 │ F6 │ F7 │ F8 │ │
|
||||||
* ├───────┼─────┼─────┼─────╄─────╃─────┤ │ │ ├─────╄─────╃─────┼─────┼─────┼───────┤
|
* ├───────┼─────┼─────┼─────╄─────╃─────┤(TL2)│ │(TL3)├─────╄─────╃─────┼─────┼─────┼───────┤
|
||||||
* │ │ │ │ │ │ │ │ │ │ │ F1 │ F2 │ F3 │ F4 │ │
|
* │ │ │ │ │ │ │ │ │ │ │ F1 │ F2 │ F3 │ F4 │ │
|
||||||
* └─┬─────┼─────┼─────┼─────┼─────┼─────┴─────┘ └─────┴─────┼─────┼─────┼─────┼─────┼─────┬─┘
|
* └─┬─────┼─────┼─────┼─────┼─────┼─────┴─────┘ └─────┴─────┼─────┼─────┼─────┼─────┼─────┬─┘
|
||||||
* │ │ │(MO1)│ │ │ │ │ │(MO1)│ │ │
|
* │ │ │(MO1)│ │(MO4)│ │(MO4)│ │(MO1)│ │ │
|
||||||
* └─────┴─────┴─────┴─────┴─────┘ ┌─────┬─────┐ ┌─────┬─────┐ └─────┴─────┴─────┴─────┴─────┘
|
* └─────┴─────┴─────┴─────┴─────┘ ┌─────┬─────┐ ┌─────┬─────┐ └─────┴─────┴─────┴─────┴─────┘
|
||||||
* │ Ms← │ Ms↑ │ │ Ms↓ │ Ms→ │
|
* │ Ms← │ Ms↑ │ │ Ms↓ │ Ms→ │
|
||||||
* ┌─────┼─────┼─────┤ ├─────┼─────┼─────┐
|
* ┌─────┼─────┼─────┤ ├─────┼─────┼─────┐
|
||||||
|
@ -267,7 +268,13 @@ void matrix_scan_user(void)
|
||||||
ergodox_right_led_3_on();
|
ergodox_right_led_3_on();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ergodox_board_led_off();
|
if(host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK)) {
|
||||||
|
ergodox_led_all_set(LED_BRIGHTNESS_HI);
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ergodox_board_led_off();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ergodox_ez.h"
|
#include "ergodox.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
|
|