Compare commits
No commits in common. "5b697beacb559a94e8dd7a8f14ea7dc66f4f37cc" and "bf3e3b4d3ee322183b0403cfd2134c375e05faef" have entirely different histories.
5b697beacb
...
bf3e3b4d3e
16
Makefile
16
Makefile
@ -1,16 +0,0 @@
|
|||||||
all: clean build flash
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm qmk_firmware/ktec_ergodone_dejvino.hex
|
|
||||||
|
|
||||||
build: qmk_firmware/ktec_ergodone_dejvino.hex
|
|
||||||
|
|
||||||
flash: build | hid_bootloader_cli
|
|
||||||
sudo ./hid_bootloader_cli -mmcu=atmega32u4 qmk_firmware/ktec_ergodone_dejvino.hex
|
|
||||||
|
|
||||||
qmk_firmware/ktec_ergodone_dejvino.hex:
|
|
||||||
cd qmk_firmware && make ktec/ergodone:dejvino
|
|
||||||
|
|
||||||
hid_bootloader_cli:
|
|
||||||
wget https://raw.githubusercontent.com/kairyu/tkg-toolkit/master/linux/bin/hid_bootloader_cli -O hid_bootloader_cli
|
|
||||||
chmod +x hid_bootloader_cli
|
|
28
README.md
28
README.md
@ -1,26 +1,30 @@
|
|||||||
# Dejvino's ErgoDone Keyboard Firmware
|
# Dejvino's ErgoDone Keyboard Firmware
|
||||||
|
|
||||||
## Setup
|
## Compile
|
||||||
1. Clone this repo in recursive mode (with submodules): `git clone --recurse-submodules <url>`
|
1. Clone this repo in recursive mode (with submodules): `git clone --recurse-submodules <url>`
|
||||||
2. Setup QMK (see [docs](https://docs.qmk.fm/#/newbs_getting_started))
|
2. Setup QMK (see [docs](https://docs.qmk.fm/#/newbs_getting_started))
|
||||||
1. Install qmk helper: `python3 -m pip install --user qmk`
|
1. Install qmk helper: `python3 -m pip install --user qmk`
|
||||||
2. Run the setup: `qmk setup`
|
2. Run the setup: `qmk setup`
|
||||||
3. Install Dejvino's keyboard layout: `ln -s $(pwd)../keymap keyboards/ktec/ergodone/keymaps/dejvino`
|
3. Compile (inside `qmk_firmware`)
|
||||||
|
1. default ErgoDone keyboard (optional): `make ktec/ergodone:default`
|
||||||
## Compile
|
2. link Dejvino's keyboard layout: `ln -s $(pwd)../keymap keyboards/ktec/ergodone/keymaps/dejvino`
|
||||||
Run `make build`.
|
3. Dejvino's ErgoDone keyboard layout: `make ktec/ergodone:dejvino`
|
||||||
|
|
||||||
## Flash
|
## Flash
|
||||||
If you're not on Linux, download the [TKG Toolkit](https://github.com/kairyu/tkg-toolkit) flashing utility for your system manually, otherwise let `make` do it.
|
(see [ErgoDone Readme](./qmk_firmware/keyboards/ktec/ergodone/readme.md))
|
||||||
|
|
||||||
1. Enter flashing mode
|
Get the [TKG Toolkit](https://github.com/kairyu/tkg-toolkit) flashing utility: `wget https://raw.githubusercontent.com/kairyu/tkg-toolkit/master/linux/bin/hid_bootloader_cli -O hid_bootloader_cli && chmod +x hid_bootloader_cli`
|
||||||
1. Disconnect KBD
|
|
||||||
2. Press and hold two top-right-most keys on the left-half KBD
|
|
||||||
3. Connect KBD (LEDs will be blinking)
|
|
||||||
2. Run `make flash`. (Tip: just run `make` to compile & flash)
|
|
||||||
|
|
||||||
(see [ErgoDone Readme](https://github.com/qmk/qmk_firmware/blob/master/keyboards/ktec/ergodone/readme.md) for details)
|
### Enter flashing mode
|
||||||
|
1. Disconnect KBD
|
||||||
|
2. Press and hold two top-right-most keys on the left-half KBD
|
||||||
|
3. Connect KBD (LEDs will be blinking)
|
||||||
|
|
||||||
|
### Flashing
|
||||||
|
1. `sudo ./hid_bootloader_cli -mmcu=atmega32u4 qmk_firmware/ktec_ergodone_dejvino.hex`
|
||||||
|
2. Disconnect & connect KBD
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
- [QMK Firmware](https://github.com/qmk/qmk_firmware)
|
- [QMK Firmware](https://github.com/qmk/qmk_firmware)
|
||||||
- [TKG Toolkit](https://github.com/kairyu/tkg-toolkit)
|
- [TKG Toolkit](https://github.com/kairyu/tkg-toolkit)
|
||||||
|
- [ErgoDone Readme](./qmk_firmware/keyboards/ktec/ergodone/readme.md)
|
||||||
|
@ -11,11 +11,14 @@
|
|||||||
|
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
PLACEHOLDER = SAFE_RANGE, // can always be here
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
||||||
|
VRSN,
|
||||||
|
DYNAMIC_MACRO_RANGE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#include "dynamic_macro.h"
|
||||||
|
|
||||||
// [Info]
|
// [Info]
|
||||||
// Meh = LCtrl + LAlt + LShift
|
// Meh = LCtrl + LAlt + LShift
|
||||||
// L_X = Layer X
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Keymap 0: WORKMAN-D Basic layer
|
/* Keymap 0: WORKMAN-D Basic layer
|
||||||
@ -34,7 +37,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
* ,-------------. ,-------------.
|
* ,-------------. ,-------------.
|
||||||
* |L_NUMB| ` | | Home | End |
|
* |L_NUMB| ` | | Home | End |
|
||||||
* ,------|------|------| |------+------+------.
|
* ,------|------|------| |------+------+------.
|
||||||
* | | | Alt | | PgUp | | |
|
* | | | App | | PgUp | | |
|
||||||
* | Space|Backsp|------| |------| Del |Enter |
|
* | Space|Backsp|------| |------| Del |Enter |
|
||||||
* | |ace | LCmd | | PgDn | | |
|
* | |ace | LCmd | | PgDn | | |
|
||||||
* `--------------------' `--------------------'
|
* `--------------------' `--------------------'
|
||||||
@ -76,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
* | | | | 0 | . | | | | | | |
|
* | | | | 0 | . | | | | | | |
|
||||||
* `-----------------------------------' `----------------------------------'
|
* `-----------------------------------' `----------------------------------'
|
||||||
* ,-------------. ,-------------
|
* ,-------------. ,-------------
|
||||||
* | |NLock | | | |
|
* | | | | | |
|
||||||
* ,------|------|------| |------+------+------.
|
* ,------|------|------| |------+------+------.
|
||||||
* | | | | | | | |
|
* | | | | | | | |
|
||||||
* | | |------| |------| | |
|
* | | |------| |------| | |
|
||||||
@ -91,7 +94,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
_______,_______,_______,KC_KP_4,KC_KP_5,KC_KP_6,
|
_______,_______,_______,KC_KP_4,KC_KP_5,KC_KP_6,
|
||||||
_______,_______,_______,KC_KP_1,KC_KP_2,KC_KP_3,KC_KP_ENTER,
|
_______,_______,_______,KC_KP_1,KC_KP_2,KC_KP_3,KC_KP_ENTER,
|
||||||
_______,_______,_______,KC_KP_0,KC_KP_DOT,
|
_______,_______,_______,KC_KP_0,KC_KP_DOT,
|
||||||
_______,KC_NUM_LOCK,
|
_______,_______,
|
||||||
_______,
|
_______,
|
||||||
_______,_______,_______,
|
_______,_______,_______,
|
||||||
// right hand
|
// right hand
|
||||||
@ -149,21 +152,30 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int capslock = 0;
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
int numlock = 0;
|
[1] = ACTION_LAYER_TAP_TOGGLE(NUMB), // FN1 - Momentary Layer 1 (Numbers)
|
||||||
|
};
|
||||||
|
|
||||||
bool led_update_user(led_t led_state) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
// Following disables the default LED indicators:
|
if (!process_record_dynamic_macro(keycode, record)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
switch (keycode) {
|
||||||
|
case VRSN:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
SEND_STRING (" <[ Dejvino's Keyboard ]> ");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
// Runs just one time when the keyboard initializes.
|
||||||
numlock = led_state.num_lock;
|
void matrix_init_user(void) {
|
||||||
capslock = led_state.caps_lock;
|
//set_unicode_input_mode(UC_LINX);
|
||||||
// Following disables the default LED indicators:
|
};
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**/
|
|
||||||
|
|
||||||
// Runs constantly in the background, in a loop.
|
// Runs constantly in the background, in a loop.
|
||||||
void matrix_scan_user(void) {
|
void matrix_scan_user(void) {
|
||||||
@ -174,22 +186,18 @@ void matrix_scan_user(void) {
|
|||||||
ergodox_right_led_1_off();
|
ergodox_right_led_1_off();
|
||||||
ergodox_right_led_2_off();
|
ergodox_right_led_2_off();
|
||||||
ergodox_right_led_3_off();
|
ergodox_right_led_3_off();
|
||||||
|
|
||||||
|
|
||||||
switch (layer) {
|
switch (layer) {
|
||||||
case FNCK:
|
case FNCK:
|
||||||
ergodox_board_led_on();
|
ergodox_right_led_1_on();
|
||||||
break;
|
break;
|
||||||
case NUMB:
|
case NUMB:
|
||||||
ergodox_board_led_on();
|
ergodox_right_led_2_on();
|
||||||
if (numlock) {
|
|
||||||
ergodox_right_led_1_on();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (capslock) {
|
// none
|
||||||
ergodox_right_led_2_on();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user