Merge pull request #503 from fredizzimo/ergodox_subproject
Add both Ergodox EZ and Infinity Ergodox as sub-projects of Ergodoxexample_keyboards
@ -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_ */
|
@ -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;
|
@ -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_ */
|
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 |
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 |
@ -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"
|
@ -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 "led.h"
|
#include "led.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: 101 KiB After Width: | Height: | Size: 101 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_norwegian.h"
|
#include "keymap_norwegian.h"
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 379 KiB After Width: | Height: | Size: 379 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"
|
||||||
|
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 189 KiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
@ -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: 754 KiB After Width: | Height: | Size: 754 KiB |
@ -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"
|
||||||
|
|
@ -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: 85 KiB After Width: | Height: | Size: 85 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"
|
||||||
|
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 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"
|
||||||
|
|