[Keyboard] Iris via support, Rev 3 updates (#4849)
* Add encoder support * Add VIA support to Iris Rev. 3 * Update pinout and disable mouse keys to free up space * Rollout VIA support to all Iris revisions * Update default keymap * Update vendor ID
This commit is contained in:
parent
2dcce4c351
commit
c768ffeb33
13 changed files with 104 additions and 205 deletions
|
@ -11,6 +11,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
#include "../../zeal60/zeal60_keycodes.h"
|
||||||
|
|
||||||
// Used to create a keymap using only KC_ prefixed keys
|
// Used to create a keymap using only KC_ prefixed keys
|
||||||
#define LAYOUT_kc( \
|
#define LAYOUT_kc( \
|
||||||
|
|
|
@ -2,21 +2,14 @@
|
||||||
|
|
||||||
extern keymap_config_t keymap_config;
|
extern keymap_config_t keymap_config;
|
||||||
|
|
||||||
#define _QWERTY 0
|
#define _MAIN 0
|
||||||
#define _LOWER 1
|
#define _FN1 1
|
||||||
#define _RAISE 2
|
#define _FN2 2
|
||||||
#define _ADJUST 16
|
#define _FN3 3
|
||||||
|
|
||||||
enum custom_keycodes {
|
|
||||||
QWERTY = SAFE_RANGE,
|
|
||||||
LOWER,
|
|
||||||
RAISE,
|
|
||||||
ADJUST,
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[_QWERTY] = LAYOUT(
|
[_MAIN] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
@ -26,11 +19,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_HOME, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_HOME, KC_END, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||||
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
|
||||||
KC_LGUI, LOWER, KC_ENT, KC_SPC, RAISE, KC_LALT
|
KC_LGUI, FN_MO13, KC_ENT, KC_SPC, FN_MO23, KC_LALT
|
||||||
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
),
|
),
|
||||||
|
|
||||||
[_LOWER] = LAYOUT(
|
[_FN1] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
@ -44,7 +37,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
),
|
),
|
||||||
|
|
||||||
[_RAISE] = LAYOUT(
|
[_FN2] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
@ -58,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
|
||||||
),
|
),
|
||||||
|
|
||||||
[_ADJUST] = LAYOUT(
|
[_FN3] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
@ -73,42 +66,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
switch (keycode) {
|
if (index == 0) {
|
||||||
case QWERTY:
|
if (clockwise) {
|
||||||
if (record->event.pressed) {
|
tap_code(KC_PGDN);
|
||||||
set_single_persistent_default_layer(_QWERTY);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case LOWER:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
layer_on(_LOWER);
|
|
||||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
||||||
} else {
|
} else {
|
||||||
layer_off(_LOWER);
|
tap_code(KC_PGUP);
|
||||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case RAISE:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
layer_on(_RAISE);
|
|
||||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
||||||
} else {
|
|
||||||
layer_off(_RAISE);
|
|
||||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
case ADJUST:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
layer_on(_ADJUST);
|
|
||||||
} else {
|
|
||||||
layer_off(_ADJUST);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include QMK_KEYBOARD_CONFIG_H
|
#include QMK_KEYBOARD_CONFIG_H
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xCEEB
|
#define VENDOR_ID 0xCB10
|
||||||
#define PRODUCT_ID 0x1256
|
#define PRODUCT_ID 0x1256
|
||||||
#define DEVICE_VER 0x0100
|
#define DEVICE_VER 0x0100
|
||||||
#define MANUFACTURER Keebio
|
#define MANUFACTURER Keebio
|
||||||
|
@ -68,20 +68,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_DI_PIN D3
|
#define RGB_DI_PIN D3
|
||||||
#define RGBLED_NUM 12 // Number of LEDs
|
#define RGBLED_NUM 12 // Number of LEDs
|
||||||
|
|
||||||
/*
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
// EEPROM usage
|
||||||
// #define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
// TODO: refactor with new user EEPROM code (coming soon)
|
||||||
// #define NO_PRINT
|
#define EEPROM_MAGIC 0x451F
|
||||||
|
#define EEPROM_MAGIC_ADDR 32
|
||||||
|
// Bump this every time we change what we store
|
||||||
|
// This will automatically reset the EEPROM with defaults
|
||||||
|
// and avoid loading invalid data from the EEPROM
|
||||||
|
#define EEPROM_VERSION 0x08
|
||||||
|
#define EEPROM_VERSION_ADDR 34
|
||||||
|
|
||||||
/* disable action features */
|
// Dynamic keymap starts after EEPROM version
|
||||||
//#define NO_ACTION_LAYER
|
#define DYNAMIC_KEYMAP_EEPROM_ADDR 35
|
||||||
//#define NO_ACTION_TAPPING
|
// Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
|
||||||
//#define NO_ACTION_ONESHOT
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 515
|
||||||
//#define NO_ACTION_MACRO
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 509 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
|
||||||
//#define NO_ACTION_FUNCTION
|
#define DYNAMIC_KEYMAP_MACRO_COUNT 16
|
||||||
|
|
|
@ -7,20 +7,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include QMK_KEYBOARD_CONFIG_H
|
#include QMK_KEYBOARD_CONFIG_H
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xCEEB
|
#define VENDOR_ID 0xCB10
|
||||||
#define PRODUCT_ID 0x1256
|
#define PRODUCT_ID 0x1256
|
||||||
#define DEVICE_VER 0x0100
|
#define DEVICE_VER 0x0100
|
||||||
#define MANUFACTURER Keebio
|
#define MANUFACTURER Keebio
|
||||||
|
@ -68,20 +68,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_DI_PIN D3
|
#define RGB_DI_PIN D3
|
||||||
#define RGBLED_NUM 12 // Number of LEDs
|
#define RGBLED_NUM 12 // Number of LEDs
|
||||||
|
|
||||||
/*
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
// EEPROM usage
|
||||||
// #define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
// TODO: refactor with new user EEPROM code (coming soon)
|
||||||
// #define NO_PRINT
|
#define EEPROM_MAGIC 0x451F
|
||||||
|
#define EEPROM_MAGIC_ADDR 32
|
||||||
|
// Bump this every time we change what we store
|
||||||
|
// This will automatically reset the EEPROM with defaults
|
||||||
|
// and avoid loading invalid data from the EEPROM
|
||||||
|
#define EEPROM_VERSION 0x08
|
||||||
|
#define EEPROM_VERSION_ADDR 34
|
||||||
|
|
||||||
/* disable action features */
|
// Dynamic keymap starts after EEPROM version
|
||||||
//#define NO_ACTION_LAYER
|
#define DYNAMIC_KEYMAP_EEPROM_ADDR 35
|
||||||
//#define NO_ACTION_TAPPING
|
// Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
|
||||||
//#define NO_ACTION_ONESHOT
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 515
|
||||||
//#define NO_ACTION_MACRO
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 509 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
|
||||||
//#define NO_ACTION_FUNCTION
|
#define DYNAMIC_KEYMAP_MACRO_COUNT 16
|
||||||
|
|
|
@ -7,20 +7,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include QMK_KEYBOARD_CONFIG_H
|
#include QMK_KEYBOARD_CONFIG_H
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xCEEB
|
#define VENDOR_ID 0xCB10
|
||||||
#define PRODUCT_ID 0x1256
|
#define PRODUCT_ID 0x1256
|
||||||
#define DEVICE_VER 0x0200
|
#define DEVICE_VER 0x0200
|
||||||
#define MANUFACTURER Keebio
|
#define MANUFACTURER Keebio
|
||||||
|
@ -68,20 +68,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_DI_PIN D3
|
#define RGB_DI_PIN D3
|
||||||
#define RGBLED_NUM 12 // Number of LEDs
|
#define RGBLED_NUM 12 // Number of LEDs
|
||||||
|
|
||||||
/*
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
// EEPROM usage
|
||||||
// #define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
// TODO: refactor with new user EEPROM code (coming soon)
|
||||||
// #define NO_PRINT
|
#define EEPROM_MAGIC 0x451F
|
||||||
|
#define EEPROM_MAGIC_ADDR 32
|
||||||
|
// Bump this every time we change what we store
|
||||||
|
// This will automatically reset the EEPROM with defaults
|
||||||
|
// and avoid loading invalid data from the EEPROM
|
||||||
|
#define EEPROM_VERSION 0x08
|
||||||
|
#define EEPROM_VERSION_ADDR 34
|
||||||
|
|
||||||
/* disable action features */
|
// Dynamic keymap starts after EEPROM version
|
||||||
//#define NO_ACTION_LAYER
|
#define DYNAMIC_KEYMAP_EEPROM_ADDR 35
|
||||||
//#define NO_ACTION_TAPPING
|
// Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
|
||||||
//#define NO_ACTION_ONESHOT
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 515
|
||||||
//#define NO_ACTION_MACRO
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 509 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
|
||||||
//#define NO_ACTION_FUNCTION
|
#define DYNAMIC_KEYMAP_MACRO_COUNT 16
|
||||||
|
|
|
@ -7,20 +7,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include QMK_KEYBOARD_CONFIG_H
|
#include QMK_KEYBOARD_CONFIG_H
|
||||||
|
|
||||||
/* USB Device descriptor parameter */
|
/* USB Device descriptor parameter */
|
||||||
#define VENDOR_ID 0xCEEB
|
#define VENDOR_ID 0xCB10
|
||||||
#define PRODUCT_ID 0x1256
|
#define PRODUCT_ID 0x1256
|
||||||
#define DEVICE_VER 0x0300
|
#define DEVICE_VER 0x0300
|
||||||
#define MANUFACTURER Keebio
|
#define MANUFACTURER Keebio
|
||||||
|
@ -35,6 +35,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
// wiring of each half
|
// wiring of each half
|
||||||
#define MATRIX_ROW_PINS { D2, D3, D5, D7, D6 }
|
#define MATRIX_ROW_PINS { D2, D3, D5, D7, D6 }
|
||||||
#define MATRIX_COL_PINS { F1, F4, F5, F6, D4, B4 }
|
#define MATRIX_COL_PINS { F1, F4, F5, F6, D4, B4 }
|
||||||
|
#define SPLIT_HAND_PIN F0
|
||||||
|
#define QMK_ESC_OUTPUT D2
|
||||||
|
#define QMK_ESC_INPUT F1
|
||||||
|
#define QMK_LED B0
|
||||||
|
#define QMK_SPEAKER C6
|
||||||
|
|
||||||
|
#define NUMBER_OF_ENCODERS 1
|
||||||
|
#define ENCODERS_PAD_A { B5 }
|
||||||
|
#define ENCODERS_PAD_B { B7 }
|
||||||
|
|
||||||
/* COL2ROW or ROW2COL */
|
/* COL2ROW or ROW2COL */
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
@ -68,20 +77,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_DI_PIN F7
|
#define RGB_DI_PIN F7
|
||||||
#define RGBLED_NUM 12 // Number of LEDs
|
#define RGBLED_NUM 12 // Number of LEDs
|
||||||
|
|
||||||
/*
|
#define DYNAMIC_KEYMAP_LAYER_COUNT 4
|
||||||
* Feature disable options
|
|
||||||
* These options are also useful to firmware size reduction.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* disable debug print */
|
// EEPROM usage
|
||||||
// #define NO_DEBUG
|
|
||||||
|
|
||||||
/* disable print */
|
// TODO: refactor with new user EEPROM code (coming soon)
|
||||||
// #define NO_PRINT
|
#define EEPROM_MAGIC 0x451F
|
||||||
|
#define EEPROM_MAGIC_ADDR 32
|
||||||
|
// Bump this every time we change what we store
|
||||||
|
// This will automatically reset the EEPROM with defaults
|
||||||
|
// and avoid loading invalid data from the EEPROM
|
||||||
|
#define EEPROM_VERSION 0x08
|
||||||
|
#define EEPROM_VERSION_ADDR 34
|
||||||
|
|
||||||
/* disable action features */
|
// Dynamic keymap starts after EEPROM version
|
||||||
//#define NO_ACTION_LAYER
|
#define DYNAMIC_KEYMAP_EEPROM_ADDR 35
|
||||||
//#define NO_ACTION_TAPPING
|
// Dynamic macro starts after dynamic keymaps (35+(4*10*6*2)) = (35+480)
|
||||||
//#define NO_ACTION_ONESHOT
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 515
|
||||||
//#define NO_ACTION_MACRO
|
#define DYNAMIC_KEYMAP_MACRO_EEPROM_SIZE 509 // 1024-DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR
|
||||||
//#define NO_ACTION_FUNCTION
|
#define DYNAMIC_KEYMAP_MACRO_COUNT 16
|
||||||
|
|
|
@ -7,20 +7,6 @@ void led_set_kb(uint8_t usb_led) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
|
|
||||||
// // green led on
|
|
||||||
// DDRD |= (1<<5);
|
|
||||||
// PORTD &= ~(1<<5);
|
|
||||||
|
|
||||||
// // orange led on
|
|
||||||
// DDRB |= (1<<0);
|
|
||||||
// PORTB &= ~(1<<0);
|
|
||||||
|
|
||||||
matrix_init_user();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef SWAP_HANDS_ENABLE
|
#ifdef SWAP_HANDS_ENABLE
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
// swap-hands action needs a matrix to define the swap
|
// swap-hands action needs a matrix to define the swap
|
||||||
|
@ -39,4 +25,3 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
{{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}},
|
{{0,4}, {1,4}, {2,4}, {3,4}, {4,4}, {5,4}},
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//void promicro_bootloader_jmp(bool program);
|
|
||||||
|
|
||||||
#define LAYOUT( \
|
#define LAYOUT( \
|
||||||
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
|
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
|
||||||
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
|
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
RGBLIGHT_ENABLE = yes
|
RGBLIGHT_ENABLE = yes
|
||||||
BACKLIGHT_ENABLE = yes
|
BACKLIGHT_ENABLE = yes
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
|
|
@ -1,36 +1,6 @@
|
||||||
# MCU name
|
|
||||||
MCU = atmega32u4
|
MCU = atmega32u4
|
||||||
|
|
||||||
# Processor frequency.
|
|
||||||
# This will define a symbol, F_CPU, in all source code files equal to the
|
|
||||||
# processor frequency in Hz. You can then use this symbol in your source code to
|
|
||||||
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
|
|
||||||
# automatically to create a 32-bit value in your source code.
|
|
||||||
#
|
|
||||||
# This will be an integer division of F_USB below, as it is sourced by
|
|
||||||
# F_USB after it has run through any CPU prescalers. Note that this value
|
|
||||||
# does not *change* the processor frequency - it should merely be updated to
|
|
||||||
# reflect the processor speed set externally so that the code can use accurate
|
|
||||||
# software delays.
|
|
||||||
F_CPU = 16000000
|
F_CPU = 16000000
|
||||||
|
|
||||||
#
|
|
||||||
# LUFA specific
|
|
||||||
#
|
|
||||||
# Target architecture (see library "Board Types" documentation).
|
|
||||||
ARCH = AVR8
|
ARCH = AVR8
|
||||||
|
|
||||||
# Input clock frequency.
|
|
||||||
# This will define a symbol, F_USB, in all source code files equal to the
|
|
||||||
# input clock frequency (before any prescaling is performed) in Hz. This value may
|
|
||||||
# differ from F_CPU if prescaling is used on the latter, and is required as the
|
|
||||||
# raw input clock is fed directly to the PLL sections of the AVR for high speed
|
|
||||||
# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
|
|
||||||
# at the end, this will be done automatically to create a 32-bit value in your
|
|
||||||
# source code.
|
|
||||||
#
|
|
||||||
# If no clock division is performed on the input clock inside the AVR (via the
|
|
||||||
# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
|
|
||||||
F_USB = $(F_CPU)
|
F_USB = $(F_CPU)
|
||||||
|
|
||||||
# Bootloader
|
# Bootloader
|
||||||
|
@ -50,8 +20,9 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
# change to "no" to disable the options, or define them in the Makefile in
|
# change to "no" to disable the options, or define them in the Makefile in
|
||||||
# the appropriate keymap folder that will get included automatically
|
# the appropriate keymap folder that will get included automatically
|
||||||
#
|
#
|
||||||
|
|
||||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
@ -68,3 +39,8 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
SPLIT_KEYBOARD = yes
|
SPLIT_KEYBOARD = yes
|
||||||
|
|
||||||
DEFAULT_FOLDER = iris/rev2
|
DEFAULT_FOLDER = iris/rev2
|
||||||
|
|
||||||
|
# VIA Support - Comment these 3 lines out to disable
|
||||||
|
RAW_ENABLE = yes
|
||||||
|
DYNAMIC_KEYMAP_ENABLE = yes
|
||||||
|
SRC += keyboards/wilba_tech/wt_main.c
|
||||||
|
|
Loading…
Reference in a new issue