Merge remote-tracking branch 'origin/master' into develop
commit
461f279883
|
@ -0,0 +1,17 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "10.h"
|
|
@ -0,0 +1,26 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#include "navpad_prefs.h"
|
||||
|
||||
#if defined(KEYBOARD_yushakobo_navpad_10_rev0)
|
||||
# include "rev0.h"
|
||||
#elif defined(KEYBOARD_yushakobo_navpad_10_rev1)
|
||||
# include "rev1.h"
|
||||
#endif
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
#define ENCODERS_PAD_A { B5 }
|
||||
#define ENCODERS_PAD_B { B6 }
|
||||
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/*
|
||||
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
|
||||
*/
|
||||
#define SOFT_SERIAL_PIN D2 // or D0, D1, D3, E6
|
||||
|
||||
#define RGB_DI_PIN D3
|
||||
#ifdef RGB_DI_PIN
|
||||
# define RGBLED_NUM 9
|
||||
# define RGBLIGHT_HUE_STEP 8
|
||||
# define RGBLIGHT_SAT_STEP 8
|
||||
# define RGBLIGHT_VAL_STEP 8
|
||||
# define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
|
||||
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== all animations enable ==*/
|
||||
//# define RGBLIGHT_ANIMATIONS
|
||||
/*== or choose animations ==*/
|
||||
//# define RGBLIGHT_EFFECT_BREATHING
|
||||
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
//# define RGBLIGHT_EFFECT_SNAKE
|
||||
//# define RGBLIGHT_EFFECT_KNIGHT
|
||||
//# define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
# define RGBLIGHT_EFFECT_RGB_TEST
|
||||
//# define RGBLIGHT_EFFECT_ALTERNATING
|
||||
/*== customize breathing effect ==*/
|
||||
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
/*==== use exp() and sin() ====*/
|
||||
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
||||
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* disable these deprecated features by default */
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
//#define BOOTMAGIC_LITE_ROW 0
|
||||
//#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
|
||||
#define TAPPING_FORCE_HOLD
|
||||
#define TAPPING_TERM 132
|
||||
#define TAPPING_LAYER_TERM 90
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"keyboard_name": "navpad 1.0",
|
||||
"url": "https://shop.yushakobo.jp/products/navpad-10",
|
||||
"maintainer": "yushakobo",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"x": 0, "y": 0},{"x": 1, "y": 0},{"x": 2, "y": 0},{"x": 3, "y": 0},
|
||||
{"x": 0, "y": 1},{"x": 1, "y": 1},{"x": 2, "y": 1},{"x": 3, "y": 1},{"x": 4, "y": 1},{"x": 5, "y": 1},{"x": 6, "y": 1},
|
||||
{"x": 0, "y": 2},{"x": 1, "y": 2},{"x": 2, "y": 2},{"x": 3, "y": 2},{"x": 4, "y": 2},{"x": 5, "y": 2},{"x": 6, "y": 2},
|
||||
{"x": 3, "y": 3},{"x": 4, "y": 3},{"x": 5, "y": 3},{"x": 6, "y": 3},
|
||||
{"x": 0, "y": 4},{"x": 1, "y": 4},{"x": 2, "y": 4},{"x": 3, "y": 4},{"x": 4, "y": 4},{"x": 5, "y": 4},{"x": 6, "y": 4},
|
||||
{"x": 0, "y": 5},{"x": 1, "y": 5},{"x": 2, "y": 5},{"x": 3, "y": 5},{"x": 4, "y": 5},{"x": 5, "y": 5},{"x": 6, "y": 5}
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
|
||||
#define RGBLIGHT_LAYERS
|
||||
#define RGBLIGHT_MAX_LAYERS 6
|
||||
|
||||
#endif
|
|
@ -0,0 +1,92 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] =LAYOUT (
|
||||
KC_PSCR, KC_SLCK, KC_PAUS, KC_MUTE,
|
||||
KC_INS, KC_HOME, KC_PGUP, KC_ESC, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
S(KC_TAB), KC_UP, KC_TAB, KC_P1, KC_P2, KC_P3, LT(1,KC_PENT),
|
||||
KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, TAP_00, KC_PDOT, LT(1,KC_PENT)
|
||||
),
|
||||
|
||||
[_FN1] =LAYOUT (
|
||||
RESET, EEP_RST, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NLCK, KC_QUOT, KC_PEQL, KC_NO,
|
||||
KC_CAPS, KC_NLCK, KC_SLCK, S(KC_9), KC_UP, S(KC_0), S(KC_SPC),
|
||||
KC_LEFT, KC_BTN3, KC_RGHT, S(KC_SPC),
|
||||
KC_TRNS, S(KC_ENT), KC_TRNS, KC_BSPC, KC_DOWN, KC_DEL, KC_TRNS,
|
||||
KC_BTN1, KC_ENT, S(KC_SPC),LT(2,KC_SPC),KC_SPC, KC_COMM, KC_TRNS
|
||||
),
|
||||
|
||||
[_FN2] =LAYOUT (
|
||||
RGB_TOG, RGB_MOD, RGB_RMOD, KC_NO,
|
||||
RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
[_FN3] =LAYOUT (
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
# define LOCK_COLOR_1 HSV_TEAL
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_capslock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{4, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_numlock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, LOCK_COLOR_1},
|
||||
{5, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_scrolllock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{2, 1, LOCK_COLOR_1},
|
||||
{6, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
rgblight_set_layer_state(0, host_keyboard_led_state().caps_lock);
|
||||
rgblight_set_layer_state(1, (host_keyboard_led_state().num_lock && IS_LAYER_ON(_BASE)));
|
||||
rgblight_set_layer_state(2, host_keyboard_led_state().scroll_lock);
|
||||
return true;
|
||||
}
|
||||
|
||||
const rgblight_segment_t* const PROGMEM navpad_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
navpad_capslock,
|
||||
navpad_numlock,
|
||||
navpad_scrolllock
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
rgblight_sethsv_noeeprom(HSV_WHITE);
|
||||
// Enable the LED layers
|
||||
rgblight_layers = navpad_rgb_layers;
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,80 @@
|
|||
# The default keymap for navpad 1.0
|
||||
|
||||
### Base layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_PSCR | KC_SLCK | KC_PAUS | |KC_MUTE|
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_INS | KC_HOME | KC_PGUP | KC_ESC | KC_PSLS | KC_PAST | KC_PMNS |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_DEL | KC_END | KC_PGDN | KC_P7 | KC_P8 | KC_P9 | KC_PPLS |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_P4 | KC_P5 | KC_P6 | KC_PPLS |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| S(KC_TAB)| KC_UP | KC_TAB | KC_P1 | KC_P2 | KC_P3 | LT(1,KC_PENT) |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_LEFT | KC_DOWN | KC_RGHT | KC_P0 | TAP_00 | KC_PDOT | LT(1,KC_PENT) |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN1 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RESET | EEP_RST | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NLCK | KC_QUOT | KC_PEQL | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_CAPS | KC_NLCK | KC_SLCK | S(KC_9) | KC_UP | S(KC_0) | S(KC_SPC) |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_LEFT | KC_BTN3 | KC_RGHT | S(KC_SPC) |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_TRNS | S(KC_ENT)| KC_TRNS | KC_BSPC | KC_DOWN | KC_DEL | KC_TRNS |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_BTN1 | KC_ENT |S(KC_SPC)|LT(2,KC_SPC)|KC_SPC | KC_COMM | KC_TRNS |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN2 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RGB_TOG | RGB_MOD | RGB_RMOD| | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| RGB_HUI | RGB_SAI | RGB_VAI | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| RGB_HUD | RGB_SAD | RGB_VAD | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN3 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_NO | KC_NO | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
|
||||
## custom keycodes behaviour
|
||||
|
||||
|keycodes|actual input|behaviour|
|
||||
|---|---|---|
|
||||
|TAP_00|"00"|tap_code(KC_P0) twice|
|
||||
|
||||
## rotary encoder behaviour
|
||||
|
||||
|Encoder No.1|CW|CCW|
|
||||
|---|---|---|
|
||||
|BASE|KC_VOLU|KC_VOLD|
|
||||
|FN1|rgblight_increse_hue()|rgblight_decrese_hue()|
|
||||
|FN2|rgblight_increse_sat()|rgblight_decrese_sat()|
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
|
||||
#define RGBLIGHT_LAYERS
|
||||
#define RGBLIGHT_MAX_LAYERS 6
|
||||
|
||||
#endif
|
|
@ -0,0 +1,105 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] =LAYOUT (
|
||||
KC_PSCR, KC_SLCK, KC_PAUS, KC_MUTE,
|
||||
KC_INS, KC_HOME, KC_PGUP, KC_ESC, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
S(KC_TAB), KC_UP, KC_TAB, KC_P1, KC_P2, KC_P3, LT(1,KC_PENT),
|
||||
KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_P0, KC_PDOT, LT(1,KC_PENT)
|
||||
),
|
||||
|
||||
[_FN1] =LAYOUT (
|
||||
RESET, EEP_RST, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NLCK, KC_QUOT, KC_PEQL, KC_NO,
|
||||
KC_CAPS, KC_NLCK, KC_SLCK, S(KC_9), KC_UP, S(KC_0), S(KC_SPC),
|
||||
KC_LEFT, KC_BTN3, KC_RGHT, S(KC_SPC),
|
||||
KC_TRNS, S(KC_ENT), KC_TRNS, KC_BSPC, KC_DOWN, KC_DEL, KC_TRNS,
|
||||
KC_BTN1, KC_ENT, S(KC_SPC),LT(2,KC_SPC),KC_SPC, KC_COMM, KC_TRNS
|
||||
),
|
||||
|
||||
[_FN2] =LAYOUT (
|
||||
RGB_TOG, RGB_MOD, RGB_RMOD, KC_NO,
|
||||
RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
[_FN3] =LAYOUT (
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* First encoder */
|
||||
if (clockwise) {
|
||||
tap_code16(KC_WH_U);
|
||||
} else {
|
||||
tap_code16(KC_WH_D);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
# define LOCK_COLOR_1 HSV_TEAL
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_capslock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{4, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_numlock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, LOCK_COLOR_1},
|
||||
{5, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_scrolllock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{2, 1, LOCK_COLOR_1},
|
||||
{6, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
rgblight_set_layer_state(0, host_keyboard_led_state().caps_lock);
|
||||
rgblight_set_layer_state(1, (host_keyboard_led_state().num_lock && IS_LAYER_ON(_BASE)));
|
||||
rgblight_set_layer_state(2, host_keyboard_led_state().scroll_lock);
|
||||
return true;
|
||||
}
|
||||
|
||||
const rgblight_segment_t* const PROGMEM navpad_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
navpad_capslock,
|
||||
navpad_numlock,
|
||||
navpad_scrolllock
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
rgblight_sethsv_noeeprom(HSV_WHITE);
|
||||
// Enable the LED layers
|
||||
rgblight_layers = navpad_rgb_layers;
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,72 @@
|
|||
# The via keymap for navpad 1.0
|
||||
|
||||
### Base layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_PSCR | KC_SLCK | KC_PAUS | |KC_MUTE|
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_INS | KC_HOME | KC_PGUP | KC_ESC | KC_PSLS | KC_PAST | KC_PMNS |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_DEL | KC_END | KC_PGDN | KC_P7 | KC_P8 | KC_P9 | KC_PPLS |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_P4 | KC_P5 | KC_P6 | KC_PPLS |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| S(KC_TAB)| KC_UP | KC_TAB | KC_P1 | KC_P2 | KC_P3 | LT(1,KC_PENT) |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_LEFT | KC_DOWN | KC_RGHT | KC_P0 | KC_P0 | KC_PDOT | LT(1,KC_PENT) |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN1 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RESET | EEP_RST | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NLCK | KC_QUOT | KC_PEQL | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_CAPS | KC_NLCK | KC_SLCK | S(KC_9) | KC_UP | S(KC_0) | S(KC_SPC) |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_LEFT | KC_BTN3 | KC_RGHT | S(KC_SPC) |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_TRNS | S(KC_ENT)| KC_TRNS | KC_BSPC | KC_DOWN | KC_DEL | KC_TRNS |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_BTN1 | KC_ENT |S(KC_SPC)|LT(2,KC_SPC)|KC_SPC | KC_COMM | KC_TRNS |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN2 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RGB_TOG | RGB_MOD | RGB_RMOD| | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| RGB_HUI | RGB_SAI | RGB_VAI | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| RGB_HUD | RGB_SAD | RGB_VAD | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN3 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_NO | KC_NO | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------`
|
||||
```
|
||||
|
||||
## rotary encoder behaviour
|
||||
|
||||
|Encoder No.1|CW|CCW|
|
||||
|---|---|---|
|
||||
|BASE|tap_code16(KC_WH_U)|tap_code16(KC_WH_D)|
|
|
@ -0,0 +1 @@
|
|||
VIA_ENABLE = yes
|
|
@ -0,0 +1,27 @@
|
|||
# navpad 1.0
|
||||
|
||||
![navpad_10](https://imgur.com/zxElDdWh.jpg)
|
||||
|
||||
Useful and easy to build numpad with nav-cluster
|
||||
|
||||
* Keyboard Maintainer: [yushakobo](https://github.com/yushakobo)
|
||||
* Hardware Supported: NavPad 1.0 PCB, Pro Micro
|
||||
* Hardware Availability: https://shop.yushakobo.jp/products/navpad-10
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make yushakobo/navpad/10:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make yushakobo/navpad/10:default:flash
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x3265
|
||||
#define PRODUCT_ID 0x0008
|
||||
#define DEVICE_VER 0x0000
|
||||
#define MANUFACTURER yushakobo
|
||||
#define PRODUCT navpad 1.0
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 7
|
||||
|
||||
/*
|
||||
* 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 { D4, C6, D7, E6, B4, D0 }
|
||||
#define MATRIX_COL_PINS { F4, F5, F6, B2, B3, B1, F7 }
|
||||
#define UNUSED_PIN { D1 }
|
|
@ -0,0 +1,17 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "rev0.h"
|
|
@ -0,0 +1,44 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
/* This is a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03, \
|
||||
k10, k11, k12, k13, k14, k15, k16, \
|
||||
k20, k21, k22, k23, k24, k25, k26, \
|
||||
k33, k34, k35, k36, \
|
||||
k40, k41, k42, k43, k44, k45, k46, \
|
||||
k50, k51, k52, k53, k54, k55, k56 \
|
||||
) \
|
||||
{\
|
||||
{ k00, k01, k02, k13, k14, k15, k16 }, \
|
||||
{ k10, k11, k12, k23, k24, k25, k26 }, \
|
||||
{ k20, k21, k22, k33, k34, k35, k36 }, \
|
||||
{ k40, k41, k42, k43, k44, k45, k46 }, \
|
||||
{ k50, k51, k52, k53, k54, k55, k56 }, \
|
||||
{ KC_NO, KC_NO, k03, KC_NO, KC_NO, KC_NO, KC_NO } \
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x3265
|
||||
#define PRODUCT_ID 0x0008
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER yushakobo
|
||||
#define PRODUCT "navpad 1.0"
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 6
|
||||
|
||||
/*
|
||||
* 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 { D4, C6, D7, E6, B4, F4 }
|
||||
#define MATRIX_COL_PINS { F5, F6, B2, B3, B1, F7 }
|
||||
#define UNUSED_PIN { D1, D0 }
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7 }
|
||||
#endif
|
|
@ -0,0 +1,17 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "rev1.h"
|
|
@ -0,0 +1,44 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
/* This is a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03, \
|
||||
k10, k11, k12, k13, k14, k15, k16, \
|
||||
k20, k21, k22, k23, k24, k25, k26, \
|
||||
k33, k34, k35, k36, \
|
||||
k40, k41, k42, k43, k44, k45, k46, \
|
||||
k50, k51, k52, k53, k54, k55, k56 \
|
||||
) \
|
||||
{\
|
||||
{ k01, k02, k13, k14, k15, k16 }, \
|
||||
{ k11, k12, k23, k24, k25, k26 }, \
|
||||
{ k21, k22, k33, k34, k35, k36 }, \
|
||||
{ k41, k42, k43, k44, k45, k46 }, \
|
||||
{ k51, k52, k53, k54, k55, k56 }, \
|
||||
{ k00, k03, k10, k20, k40, k50 } \
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
ENCODER_ENABLE = yes
|
||||
|
||||
SRC += navpad_prefs.c
|
||||
DEFAULT_FOLDER = yushakobo/navpad/10/rev1
|
|
@ -0,0 +1,17 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "10_helix_r.h"
|
|
@ -0,0 +1,50 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
#include "navpad_prefs.h"
|
||||
|
||||
/* This is a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03, \
|
||||
k10, k11, k12, k13, k14, k15, k16, R10, R11, R12, R13, R14, R15,\
|
||||
k20, k21, k22, k23, k24, k25, k26, R20, R21, R22, R23, R24, R25,\
|
||||
k33, k34, k35, k36, R30, R31, R32, R33, R34, R35,\
|
||||
k40, k41, k42, k43, k44, k45, k46, R46, R40, R41, R42, R43, R44, R45,\
|
||||
k50, k51, k52, k53, k54, k55, k56, R56, R50, R51, R52, R53, R54, R55\
|
||||
) \
|
||||
{\
|
||||
{ k01, k02, k13, k14, k15, k16 }, \
|
||||
{ k11, k12, k23, k24, k25, k26 }, \
|
||||
{ k21, k22, k33, k34, k35, k36 }, \
|
||||
{ k41, k42, k43, k44, k45, k46 }, \
|
||||
{ k51, k52, k53, k54, k55, k56 }, \
|
||||
{ k00, k03, k10, k20, k40, k50 }, \
|
||||
{ R15, R14, R13, R12, R11, R10, KC_NO }, \
|
||||
{ R25, R24, R23, R22, R21, R20, KC_NO }, \
|
||||
{ R35, R34, R33, R32, R31, R30, KC_NO }, \
|
||||
{ R45, R44, R43, R42, R41, R40, R46 }, \
|
||||
{ R55, R54, R53, R52, R51, R50, R56 } \
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x3265
|
||||
#define PRODUCT_ID 0x0008
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER yushakobo
|
||||
#define PRODUCT "navpad 1.0 with helix keyboard"
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 12
|
||||
#define MATRIX_COLS 7
|
||||
|
||||
/*
|
||||
* 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 { D4, C6, D7, E6, B4, F4 }
|
||||
#define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4 }
|
||||
#define MATRIX_COL_PINS { F5, F6, B2, B3, B1, F7, NO_PIN }
|
||||
#define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2 }
|
||||
#define UNUSED_PIN { D0, D1 }
|
||||
|
||||
#define EE_HANDS
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7, \//navpad side
|
||||
9, 10, 11, 12, 13, 14, \//helix side
|
||||
20, 19, 18, 17, 16, 15, \
|
||||
21, 22, 23, 24, 25, 26, \
|
||||
33, 32, 31, 30, 29, 28, 27, \
|
||||
34, 35, 36, 37, 38, 39, 40 }
|
||||
#endif
|
||||
|
||||
#define ENCODERS_PAD_A { B5 }
|
||||
#define ENCODERS_PAD_B { B6 }
|
||||
|
||||
#define ENCODERS_PAD_A_RIGHT { B6 }
|
||||
#define ENCODERS_PAD_B_RIGHT { B5 }
|
||||
|
||||
/* COL2ROW, ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/*
|
||||
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
|
||||
*/
|
||||
#define SOFT_SERIAL_PIN D2 // or D0, D1, D3, E6
|
||||
|
||||
#define RGB_DI_PIN D3
|
||||
#ifdef RGB_DI_PIN
|
||||
# define RGBLED_NUM 9+32
|
||||
# define RGBLED_SPLIT { 9, 32 }
|
||||
# define RGBLIGHT_HUE_STEP 8
|
||||
# define RGBLIGHT_SAT_STEP 8
|
||||
# define RGBLIGHT_VAL_STEP 8
|
||||
# define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
|
||||
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||
/*== all animations enable ==*/
|
||||
//# define RGBLIGHT_ANIMATIONS
|
||||
/*== or choose animations ==*/
|
||||
//# define RGBLIGHT_EFFECT_BREATHING
|
||||
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
||||
//# define RGBLIGHT_EFFECT_SNAKE
|
||||
//# define RGBLIGHT_EFFECT_KNIGHT
|
||||
//# define RGBLIGHT_EFFECT_CHRISTMAS
|
||||
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
||||
# define RGBLIGHT_EFFECT_RGB_TEST
|
||||
//# define RGBLIGHT_EFFECT_ALTERNATING
|
||||
/*== customize breathing effect ==*/
|
||||
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
||||
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
||||
/*==== use exp() and sin() ====*/
|
||||
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
||||
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
||||
|
||||
#endif
|
||||
|
||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* define if matrix has ghost (lacks anti-ghosting diodes) */
|
||||
//#define MATRIX_HAS_GHOST
|
||||
|
||||
/* disable action features */
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* disable these deprecated features by default */
|
||||
#define NO_ACTION_MACRO
|
||||
#define NO_ACTION_FUNCTION
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
//#define BOOTMAGIC_LITE_ROW 0
|
||||
//#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
|
||||
#define TAPPING_FORCE_HOLD
|
||||
#define TAPPING_TERM 132
|
||||
#define TAPPING_LAYER_TERM 90
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"keyboard_name": "navpad 1.0 w/ helix right hand side",
|
||||
"url": "",
|
||||
"maintainer": "yushakobo",
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"x": 0, "y": 0},{"x": 1, "y": 0},{"x": 2, "y": 0},{"x": 3, "y": 0},
|
||||
{"x": 0, "y": 1},{"x": 1, "y": 1},{"x": 2, "y": 1},{"x": 3, "y": 1},{"x": 4, "y": 1},{"x": 5, "y": 1},{"x": 6, "y": 1}, {"x": 8, "y": 1},{"x": 9, "y": 1},{"x": 10, "y": 1},{"x": 11, "y": 1},{"x": 12, "y": 1},{"x": 13, "y": 1},
|
||||
{"x": 0, "y": 2},{"x": 1, "y": 2},{"x": 2, "y": 2},{"x": 3, "y": 2},{"x": 4, "y": 2},{"x": 5, "y": 2},{"x": 6, "y": 2}, {"x": 8, "y": 2},{"x": 9, "y": 2},{"x": 10, "y": 2},{"x": 11, "y": 2},{"x": 12, "y": 2},{"x": 13, "y": 2},
|
||||
{"x": 3, "y": 3},{"x": 4, "y": 3},{"x": 5, "y": 3},{"x": 6, "y": 3}, {"x": 8, "y": 3},{"x": 9, "y": 3},{"x": 10, "y": 3},{"x": 11, "y": 3},{"x": 12, "y": 3},{"x": 13, "y": 3},
|
||||
{"x": 0, "y": 4},{"x": 1, "y": 4},{"x": 2, "y": 4},{"x": 3, "y": 4},{"x": 4, "y": 4},{"x": 5, "y": 4},{"x": 6, "y": 4},{"x": 7, "y": 4},{"x": 8, "y": 4},{"x": 9, "y": 4},{"x": 10, "y": 4},{"x": 11, "y": 4},{"x": 12, "y": 4},{"x": 13, "y": 4},
|
||||
{"x": 0, "y": 5},{"x": 1, "y": 5},{"x": 2, "y": 5},{"x": 3, "y": 5},{"x": 4, "y": 5},{"x": 5, "y": 5},{"x": 6, "y": 5},{"x": 7, "y": 5},{"x": 8, "y": 5},{"x": 9, "y": 5},{"x": 10, "y": 5},{"x": 11, "y": 5},{"x": 12, "y": 5},{"x": 13, "y": 5}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
Copyright 2021 yushakobo
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef RGB_DI_PIN
|
||||
|
||||
#define RGBLIGHT_LAYERS
|
||||
#define RGBLIGHT_MAX_LAYERS 6
|
||||
|
||||
#endif
|
|
@ -0,0 +1,94 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] =LAYOUT (
|
||||
KC_PSCR, KC_SLCK, KC_PAUS, KC_MUTE,
|
||||
KC_INS, KC_HOME, KC_PGUP, KC_ESC, KC_PSLS, KC_PAST, KC_PMNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
|
||||
KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
S(KC_TAB), KC_UP, KC_TAB, KC_P1, KC_P2, KC_P3, LT(1,KC_PENT), KC_RBRC, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
|
||||
KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_P0, KC_PDOT, LT(1,KC_PENT), LT(1,KC_SPC),LT(2,KC_ENT),KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
),
|
||||
|
||||
[_FN1] =LAYOUT (
|
||||
RESET, EEP_RST, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NLCK, KC_QUOT, KC_PEQL, KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_DEL,
|
||||
KC_CAPS, KC_NLCK, KC_SLCK, S(KC_9), KC_UP, S(KC_0), S(KC_SPC), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC,
|
||||
KC_LEFT, KC_BTN3, KC_RGHT, S(KC_SPC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_QUOT,
|
||||
KC_TRNS, S(KC_ENT), KC_TRNS, KC_BSPC, KC_DOWN, KC_DEL, KC_TRNS, KC_RBRC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ENT,
|
||||
KC_BTN1, KC_ENT, S(KC_SPC),LT(2,KC_SPC),KC_SPC, KC_COMM, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
),
|
||||
|
||||
[_FN2] =LAYOUT (
|
||||
RGB_TOG, RGB_MOD, RGB_RMOD, KC_NO,
|
||||
RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC, KC_DEL, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_RBRC, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
[_FN3] =LAYOUT (
|
||||
KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_RBRC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
# define LOCK_COLOR_1 HSV_TEAL
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_capslock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{4, 1, LOCK_COLOR_1},
|
||||
{15, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_numlock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{0, 1, LOCK_COLOR_1},
|
||||
{5, 1, LOCK_COLOR_1},
|
||||
{14, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
const rgblight_segment_t PROGMEM navpad_scrolllock[] = RGBLIGHT_LAYER_SEGMENTS(
|
||||
{2, 1, LOCK_COLOR_1},
|
||||
{6, 1, LOCK_COLOR_1},
|
||||
{26, 1, LOCK_COLOR_1}
|
||||
);
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
rgblight_set_layer_state(0, host_keyboard_led_state().caps_lock);
|
||||
rgblight_set_layer_state(1, (host_keyboard_led_state().num_lock && IS_LAYER_ON(_BASE)));
|
||||
rgblight_set_layer_state(2, host_keyboard_led_state().scroll_lock);
|
||||
return true;
|
||||
}
|
||||
|
||||
const rgblight_segment_t* const PROGMEM navpad_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
||||
navpad_capslock,
|
||||
navpad_numlock,
|
||||
navpad_scrolllock
|
||||
);
|
||||
|
||||
void keyboard_post_init_user(void) {
|
||||
rgblight_sethsv_noeeprom(HSV_WHITE);
|
||||
// Enable the LED layers
|
||||
rgblight_layers = navpad_rgb_layers;
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,86 @@
|
|||
# The default keymap for navpad 1.0 with helix (right hand side)
|
||||
|
||||
### Base layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_PSCR | KC_SLCK | KC_PAUS | |KC_MUTE|
|
||||
|----------+----------+----------+-------------------------------------------------. ,-----------------------------------------------------------------------.
|
||||
| KC_INS | KC_HOME | KC_PGUP | KC_ESC | KC_PSLS | KC_PAST | KC_PMNS | | KC_6 | KC_7 | KC_8 | KC_9 | KC_0 | KC_DEL |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_DEL | KC_END | KC_PGDN | KC_P7 | KC_P8 | KC_P9 | KC_PPLS | | KC_Y | KC_U | KC_I | KC_O | KC_P | KC_BSPC |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_P4 | KC_P5 | KC_P6 | KC_PPLS | | KC_H | KC_J | KC_K | KC_L | KC_SCLN | KC_QUOT |
|
||||
,--------------------------------+----------+-----------+----------+---------------| ,-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| S(KC_TAB)| KC_UP | KC_TAB | KC_P1 | KC_P2 | KC_P3 | LT(1,KC_PENT) | | KC_RBRC | KC_N | KC_M | KC_COMM | KC_DOT | KC_SLSH | KC_ENT |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------| |-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_LEFT | KC_DOWN | KC_RGHT | KC_P0 | TAP_00 | KC_PDOT | LT(1,KC_PENT) | | LT(1,KC_SPC)|LT(2,KC_ENT)| KC_NO | KC_LEFT | KC_DOWN | KC_UP | KC_RGHT |
|
||||
'----------------------------------------------------------------------------------` '-------------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN1 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RESET | EEP_RST | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------. ,-----------------------------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NLCK | KC_QUOT | KC_PEQL | KC_NO | | KC_1 | KC_2 | KC_3 | KC_4 | KC_5 | KC_DEL |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_CAPS | KC_NLCK | KC_SLCK | S(KC_9) | KC_UP | S(KC_0) | S(KC_SPC) | | KC_Q | KC_W | KC_E | KC_R | KC_T | KC_BSPC |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_LEFT | KC_BTN3 | KC_RGHT | S(KC_SPC) | | KC_A | KC_S | KC_D | KC_F | KC_G | KC_QUOT |
|
||||
,--------------------------------+----------+-----------+----------+---------------| ,-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_TRNS | S(KC_ENT)| KC_TRNS | KC_BSPC | KC_DOWN | KC_DEL | KC_TRNS | | KC_RBRC | KC_Z | KC_X | KC_C | KC_V | KC_B | KC_ENT |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------| |-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_BTN1 | KC_ENT |S(KC_SPC)|LT(2,KC_SPC)|KC_SPC | KC_COMM | KC_TRNS | | KC_TRNS | KC_TRNS | KC_NO | KC_LEFT | KC_DOWN | KC_UP | KC_RGHT |
|
||||
'----------------------------------------------------------------------------------` '-------------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN2 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| RGB_TOG | RGB_MOD | RGB_RMOD| | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------. ,-----------------------------------------------------------------------.
|
||||
| RGB_HUI | RGB_SAI | RGB_VAI | KC_NO | KC_NO | KC_NO | KC_NO | | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| RGB_HUD | RGB_SAD | RGB_VAD | KC_NO | KC_NO | KC_NO | KC_NO | | KC_BSPC | KC_DEL | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | | KC_LEFT | KC_DOWN | KC_UP | KC_RGHT | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------| ,-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_RBRC | KC_HOME | KC_PGDN | KC_PGUP | KC_END | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------| |-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_TRNS | KC_TRNS | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------` '-------------------------------------------------------------------------------------`
|
||||
```
|
||||
### FN3 layer
|
||||
```
|
||||
,-------------------------------. ,-------.
|
||||
| KC_NO | KC_NO | KC_NO | | KC_NO |
|
||||
|----------+----------+----------+-------------------------------------------------. ,-----------------------------------------------------------------------.
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
`--------------------------------+----------+-----------+----------+---------------| |------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
,--------------------------------+----------+-----------+----------+---------------| ,-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_RBRC | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
|----------+----------+----------+----------+-----------+----------+---------------| |-------------+------------+----------+-----------+-----------+-----------+-----------|
|
||||
| KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO | | KC_TRNS | KC_TRNS | KC_NO | KC_NO | KC_NO | KC_NO | KC_NO |
|
||||
'----------------------------------------------------------------------------------` '-------------------------------------------------------------------------------------`
|
||||
```
|
||||
|
||||
## custom keycodes behaviour
|
||||
|
||||
|keycodes|actual input|behaviour|
|
||||
|---|---|---|
|
||||
|TAP_00|"00"|tap_code(KC_P0) twice|
|
||||
|
||||
## rotary encoder behaviour
|
||||
|
||||
|Encoder No.1|CW|CCW|
|
||||
|---|---|---|
|
||||
|BASE|KC_VOLU|KC_VOLD|
|
||||
|FN1|rgblight_increse_hue()|rgblight_decrese_hue()|
|
||||
|FN2|rgblight_increse_sat()|rgblight_decrese_sat()|
|
||||
|
||||
|Encoder No.2|CW|CCW|
|
||||
|---|---|---|
|
||||
|BASE|]|[|
|
||||
|FN1|)|(|
|
||||
|FN2|}|{|
|
|
@ -0,0 +1,33 @@
|
|||
# navpad 1.0 with Helix (Right hand side)
|
||||
|
||||
![10_helix_r](https://imgur.com/ehTI37h.jpg)
|
||||
|
||||
Navpad connected with helix keyboard (Right Side)
|
||||
|
||||
* Keyboard Maintainer: [yushakobo](https://github.com/yushakobo)
|
||||
* Hardware Supported: Navpad 1.0 PCB and Helix PCB, Pro Micro
|
||||
* Hardware Availability: https://shop.yushakobo.jp/products/navpad-10
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make yushakobo/navpad/10_helix_r:default
|
||||
|
||||
Flashing examples for this keyboard...
|
||||
|
||||
Helix side:
|
||||
|
||||
make yushakobo/navpad/10_helix_r:default:avrdude-split-right
|
||||
|
||||
Navpad side:
|
||||
|
||||
make yushakobo/navpad/10_helix_r:default:avrdude-split-left
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
|
@ -0,0 +1,23 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
|
||||
SPLIT_KEYBOARD = yes
|
||||
ENCODER_ENABLE = yes
|
||||
|
||||
SRC += navpad_prefs.c
|
|
@ -0,0 +1,104 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
if (!process_record_user(keycode, record)) { return false; }
|
||||
switch (keycode) {
|
||||
case TAP_00:
|
||||
if (record->event.pressed){
|
||||
tap_code(KC_P0);
|
||||
tap_code(KC_P0);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool led_update_kb(led_t led_state) {
|
||||
return led_update_user(led_state);
|
||||
}
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (index == 0) { /* Navpad side encoder */
|
||||
switch (get_highest_layer(layer_state|default_layer_state)) {
|
||||
case _BASE:
|
||||
if (clockwise) {
|
||||
tap_code16(KC_VOLU);
|
||||
} else {
|
||||
tap_code16(KC_VOLD);
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN1:
|
||||
if (clockwise) {
|
||||
rgblight_increase_hue();
|
||||
} else {
|
||||
rgblight_decrease_hue();
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN2:
|
||||
if (clockwise) {
|
||||
rgblight_increase_sat();
|
||||
} else {
|
||||
rgblight_decrease_sat();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (index == 1) { /* Helix side encoder */
|
||||
switch (get_highest_layer(layer_state|default_layer_state)) {
|
||||
case _BASE:
|
||||
if (clockwise) {
|
||||
tap_code(KC_RBRC);
|
||||
} else {
|
||||
tap_code(KC_LBRC);
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN1:
|
||||
if (clockwise) {
|
||||
tap_code16(KC_RPRN);
|
||||
} else {
|
||||
tap_code16(KC_LPRN);
|
||||
}
|
||||
break;
|
||||
|
||||
case _FN2:
|
||||
if (clockwise) {
|
||||
tap_code16(KC_RCBR);
|
||||
} else {
|
||||
tap_code16(KC_LCBR);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
|
@ -0,0 +1,30 @@
|
|||
/* Copyright 2021 yushakobo
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
enum custom_keycodes {
|
||||
TAP_00 = SAFE_RANGE
|
||||
};
|
||||
|
||||
enum layer_name {
|
||||
_BASE,
|
||||
_FN1,
|
||||
_FN2,
|
||||
_FN3
|
||||
};
|
|
@ -0,0 +1,14 @@
|
|||
# Navpad
|
||||
|
||||
![navpad_10](https://imgur.com/zxElDdWh.jpg)
|
||||
|
||||
Useful numpad with navigation cluster
|
||||
|
||||
* keyboard Maintainer: [yushakobo](https://github.com/yushakobo)
|
||||
* Hardware Supported: Navpad PCBs, Pro Micro
|
||||
|
||||
For each build, please check these links down below.
|
||||
|
||||
* [navpad 1.0](10/): Entry, easy to build
|
||||
* [navpad 1.0 w/ Helix Righthand](10_helix_r/): Sample for extensions
|
||||
|
Loading…
Reference in New Issue