Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
361ac2f32a | ||
|
|
d15a60d2d3 | ||
|
|
73992c68d5 |
No files matched your search
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Chuck Lauer Vose <[email protected]>
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
#undef RGBLED_NUM
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLED_NUM 3
|
||||||
|
#define RGBLIGHT_HUE_STEP 8
|
||||||
|
#define RGBLIGHT_SAT_STEP 8
|
||||||
|
|
||||||
|
#define RGBLIGHT_SLEEP // Put the keyboard to sleep when USB goes dark
|
||||||
|
|
||||||
|
#define LAYOUT_ortho_half_5x7( \
|
||||||
|
L00, L01, L02, L03, L04, L05, L06, \
|
||||||
|
L10, L11, L12, L13, L14, L15, L16, \
|
||||||
|
L20, L21, L22, L23, L24, L25, L26, \
|
||||||
|
L30, L31, L32, L33, L34, L35, L36, \
|
||||||
|
L40, L41, L42, L43, L44, L45, L46 \
|
||||||
|
) \
|
||||||
|
LAYOUT_ortho_5x14( \
|
||||||
|
L00, L01, L02, L03, L04, L05, L06, KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO, \
|
||||||
|
L10, L11, L12, L13, L14, L15, L16, KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO, \
|
||||||
|
L20, L21, L22, L23, L24, L25, L26, KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO, \
|
||||||
|
L30, L31, L32, L33, L34, L35, L36, KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO, \
|
||||||
|
L40, L41, L42, L43, L44, L45, L46, KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO \
|
||||||
|
)
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "vosechu.h"
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[BASE] = LAYOUT_ortho_half_5x7( // Base layer
|
||||||
|
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_9 ,
|
||||||
|
ALT_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , TT(TT1) ,
|
||||||
|
CTL_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , TT(TT2) ,
|
||||||
|
KC_F13 , KC_Z , KC_X , KC_C , KC_V , KC_B , TT(TT3) ,
|
||||||
|
KC_MEH , CTL_GRV , ALT_TAB , KC_LALT , MO(LWR) , LFT_BK , SFT_SPC
|
||||||
|
),
|
||||||
|
[LWR] = LAYOUT_ortho_half_5x7( // EVE layer
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
A(KC_LEFT), KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F9 ,
|
||||||
|
SFT_SPC , A(KC_F1), A(KC_F2), A(KC_F3), A(KC_F4), _______ , _______ ,
|
||||||
|
A(KC_RGHT), C(KC_F1), C(KC_F2), C(KC_F3), C(KC_F4), _______ , _______ ,
|
||||||
|
_______ , RESET , _______ , _______ , _LAYER_ , KC_DEL , KC_ENT
|
||||||
|
),
|
||||||
|
[LFT] = LAYOUT_ortho_half_5x7( // Media
|
||||||
|
_______ , KC_F10 , KC_F11 , KC_F12 , KC_PSCR , KC_SLCK , KC_PAUS ,
|
||||||
|
_______ , KC_F7 , KC_F8 , KC_F9 , KC_INS , KC_HOME , KC_PGUP ,
|
||||||
|
RGB_TOG , KC_F4 , KC_F5 , KC_F6 , KC_DEL , KC_END , KC_PGDN ,
|
||||||
|
_______ , KC_F1 , KC_F2 , KC_F3 , KC_VOLU , KC_VOLD , KC_MUTE ,
|
||||||
|
_______ , _______ , _______ , _______ , PSWD , _LAYER_ , PSWD_ALT
|
||||||
|
),
|
||||||
|
[TT1] = LAYOUT_ortho_half_5x7( // Override WASD with arrows
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , KC_UP , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , KC_LEFT , KC_DOWN , KC_RGHT , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______
|
||||||
|
),
|
||||||
|
[TT2] = LAYOUT_ortho_half_5x7( // Browser layer
|
||||||
|
C(KC_W) , C(KC_1) , C(KC_T) , C(KC_9) , _______ , _______ , _______ ,
|
||||||
|
WBWSRBK , WTABLFT , KC_UP , WTABRGT , WBWSRFW , _______ , _______ ,
|
||||||
|
KC_ESC , KC_LEFT , KC_DOWN , KC_RGHT , C(KC_R) , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , TT(T23X),
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______
|
||||||
|
),
|
||||||
|
[TT3] = LAYOUT_ortho_half_5x7( // OS X override layer
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , TT(T23X),
|
||||||
|
_______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , KC_LGUI , _______ , _______ , _______
|
||||||
|
),
|
||||||
|
[T23X] = LAYOUT_ortho_half_5x7( // Browser layer
|
||||||
|
G(KC_W) , G(KC_1) , G(KC_T) , G(KC_9) , _______ , SLACKTB , _______ ,
|
||||||
|
BWSR_BK , TAB_LFT , KC_UP , TAB_RGT , BWSR_FW , SLACKUP , _______ ,
|
||||||
|
KC_ESC , KC_LEFT , KC_DOWN , KC_RGHT , G(KC_R) , SLACKDN , _______ ,
|
||||||
|
_______ , _______ , KC_Q , KC_J , KC_K , _______ , _______ ,
|
||||||
|
_______ , _______ , _______ , KC_LGUI , _______ , _______ , _______
|
||||||
|
),
|
||||||
|
// [_EMPTY] = LAYOUT(
|
||||||
|
// _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
// _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
// _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
// _______ , _______ , _______ , _______ , _______ , _______ , _______ ,
|
||||||
|
// _______ , _______ , _______ , _______ , _______ , _______ , _______
|
||||||
|
// ),
|
||||||
|
};
|
||||||
|
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Call the post init code.
|
||||||
|
rgblight_enable_noeeprom(); // enables Rgb, without saving settings
|
||||||
|
rgblight_mode_noeeprom(0);
|
||||||
|
rgblight_sethsv_noeeprom(0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
|
switch (get_highest_layer(state)) {
|
||||||
|
case TT1:
|
||||||
|
rgblight_sethsv_noeeprom(HSV_BLUE);
|
||||||
|
break;
|
||||||
|
case TT2:
|
||||||
|
rgblight_sethsv_noeeprom(HSV_PURPLE);
|
||||||
|
break;
|
||||||
|
case T23X:
|
||||||
|
rgblight_sethsv_noeeprom(HSV_GOLD);
|
||||||
|
break;
|
||||||
|
case TT3:
|
||||||
|
rgblight_sethsv_noeeprom(HSV_GREEN);
|
||||||
|
break;
|
||||||
|
default: // for any other layers, or the default layer
|
||||||
|
rgblight_sethsv_noeeprom(0, 0, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return state;
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
RGBLIGHT_ENABLE = yes
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x6666
|
||||||
|
#define PRODUCT_ID 0x6668
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Pabile
|
||||||
|
#define PRODUCT P18 Macro Pad
|
||||||
|
#define DESCRIPTION An 18-key DIY macropad kit
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 4
|
||||||
|
#define MATRIX_COLS 5
|
||||||
|
|
||||||
|
/* pin-out for PROMICRO */
|
||||||
|
#define MATRIX_ROW_PINS { D1, D0, D4, C6 }
|
||||||
|
#define MATRIX_COL_PINS { D2, D7, E6, B4, B5 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* Encoder position for PROMICRO */
|
||||||
|
#define ENCODERS_PAD_A { B6, F6 }
|
||||||
|
#define ENCODERS_PAD_B { F4, F5 }
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Pabile 18",
|
||||||
|
"url": "https://pabileonline.blogspot.com/",
|
||||||
|
"maintainer": "Pabile",
|
||||||
|
"width": 5.25,
|
||||||
|
"height": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":1.25, "y":0},
|
||||||
|
{"x":2.25, "y":0},
|
||||||
|
{"x":3.25, "y":0},
|
||||||
|
{"x":4.25, "y":0},
|
||||||
|
{"x":1.25, "y":1},
|
||||||
|
{"x":2.25, "y":1},
|
||||||
|
{"x":3.25, "y":1},
|
||||||
|
{"x":4.25, "y":1},
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1.25, "y":2},
|
||||||
|
{"x":2.25, "y":2},
|
||||||
|
{"x":3.25, "y":2},
|
||||||
|
{"x":4.25, "y":2},
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1.25, "y":3},
|
||||||
|
{"x":2.25, "y":3},
|
||||||
|
{"x":3.25, "y":3},
|
||||||
|
{"x":4.25, "y":3}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_MUTE, KC_P1, KC_P2, KC_P3, KC_TAB,
|
||||||
|
KC_ESC, KC_DEL, KC_P0, KC_PDOT, KC_PENT
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) { /* First encoder below the controller */
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLD); /*volume down*/
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLU); /*volume up*/
|
||||||
|
}
|
||||||
|
} else if (index == 1) { /* Second encoder */
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_WH_U); /*mouse wheel up*/
|
||||||
|
} else {
|
||||||
|
tap_code(KC_WH_D); /*mouse wheel down*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "p18.h"
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
k01, k02, k03, k04, \
|
||||||
|
k11, k12, k13, k14, \
|
||||||
|
k20, k21, k22, k23, k24, \
|
||||||
|
k30, k31, k32, k33, k34 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{KC_NO, k04, k03, k02, k01}, \
|
||||||
|
{KC_NO, k14, k13, k12, k11}, \
|
||||||
|
{k20, k24, k23, k22, k21}, \
|
||||||
|
{k30, k34, k33, k32, k31} \
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# P18
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A 18-key DIY Hotswap Macropad that accepts both Pro Micro and Adafruit Feather 32u4 Bluefruit LE.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [pabile](https://github.com/pabile)
|
||||||
|
* Hardware Supported: Pabile P18 PCB with Pro Micro or Adafruit Feather 32u4 Bluefruit LE
|
||||||
|
* Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile18)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make pabile/p18:default
|
||||||
|
|
||||||
|
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).
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
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
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
|
UNICODE_ENABLE = yes # Unicode
|
||||||
|
IOS_DEVICE_ENABLE = no # connect to IOS Device
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x6666
|
||||||
|
#define PRODUCT_ID 0x6667
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Pabile
|
||||||
|
#define PRODUCT P20
|
||||||
|
#define DESCRIPTION 5x4 Macropad
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 4
|
||||||
|
|
||||||
|
/* pin-out */
|
||||||
|
#define MATRIX_ROW_PINS { B3, B4, B5, D7, E6 }
|
||||||
|
#define MATRIX_COL_PINS { D0, B2, D4, B6 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define ENCODERS_PAD_A { F5, F7 }
|
||||||
|
#define ENCODERS_PAD_B { F6, B1 }
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ortho_5x4(
|
||||||
|
KC_PSLS, KC_PMNS, KC_PAST, KC_MPLY,
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PMNS,
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_TAB,
|
||||||
|
LT(2,KC_P0), KC_PCMM, KC_PDOT, LT(1,KC_PENT)),
|
||||||
|
[1] = LAYOUT_ortho_5x4(
|
||||||
|
KC_NLCK, KC_UNDS, KC_NO, KC_NO,
|
||||||
|
KC_AMPR, KC_ASTR, KC_LPRN, KC_EQL,
|
||||||
|
KC_DLR, KC_PERC, KC_CIRC, KC_NO,
|
||||||
|
KC_EXLM, KC_AT, KC_HASH, KC_NO,
|
||||||
|
KC_RPRN, KC_NO, KC_PSLS, KC_NO),
|
||||||
|
[2] = LAYOUT_ortho_5x4(
|
||||||
|
KC_NLCK, KC_NO, KC_NO, KC_NO,
|
||||||
|
KC_BTN1, KC_MS_U, KC_BTN2, KC_NO,
|
||||||
|
KC_MS_L, KC_MS_D, KC_MS_R, KC_TAB,
|
||||||
|
KC_WH_U, KC_NO, KC_WH_D, KC_NO,
|
||||||
|
KC_NO, KC_NO, KC_DEL, KC_ESC)
|
||||||
|
};
|
||||||
|
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) { /* First encoder */
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_WH_U); /*mouse wheel up*/
|
||||||
|
} else {
|
||||||
|
tap_code(KC_WH_D); /*mouse wheel down */
|
||||||
|
}
|
||||||
|
} else if (index == 1) { /* Second encoder */
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLD); /*volume down*/
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLU); /*volume up*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "p20.h"
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT_ortho_5x4( \
|
||||||
|
k00, k01, k02, k03, \
|
||||||
|
k10, k11, k12, k13, \
|
||||||
|
k20, k21, k22, k23, \
|
||||||
|
k30, k31, k32, k33, \
|
||||||
|
k40, k41, k42, k43 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{k00, k01, k02, k03}, \
|
||||||
|
{k10, k11, k12, k13}, \
|
||||||
|
{k20, k21, k22, k23}, \
|
||||||
|
{k30, k31, k32, k33}, \
|
||||||
|
{k40, k41, k42, k43} \
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
# P20
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
A 5x4 grid keyboard with 2 rotary encoders.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [pabile](https://github.com/pabile)
|
||||||
|
* Hardware Supported: Pabile P20 PCB, Pro Micro
|
||||||
|
* Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile20)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make pabile/p20:default
|
||||||
|
|
||||||
|
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).
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
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
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI support
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
|
UNICODE_ENABLE = yes # Unicode
|
||||||
|
IOS_DEVICE_ENABLE = no # connect to IOS Device
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
|
||||||
|
LAYOUTS = ortho_5x4
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x6666
|
||||||
|
#define PRODUCT_ID 0x6666
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Pabile
|
||||||
|
#define PRODUCT P40 Keyboard
|
||||||
|
#define DESCRIPTION 4x10 staggered keyboard
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 4
|
||||||
|
#define MATRIX_COLS 10
|
||||||
|
|
||||||
|
/* pin-out
|
||||||
|
for PCB ver0.01 452019 */
|
||||||
|
#define MATRIX_ROW_PINS { F6, B3, B2, B6 }
|
||||||
|
#define MATRIX_COL_PINS { F4, F5, B5, B4, E6, D7, C6, D4, D0, D1 }
|
||||||
|
/*
|
||||||
|
for pro micro facing back of pcb
|
||||||
|
#define MATRIX_ROW_PINS { D4, E6, B4, B5 }
|
||||||
|
#define MATRIX_COL_PINS { D1, D0, B6, B2, B3, B1, F7, F6, F5, F4 }
|
||||||
|
*/
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Pabile 40",
|
||||||
|
"url": "https://pabileonline.blogspot.com/",
|
||||||
|
"maintainer": "Pabile",
|
||||||
|
"width": 10.75,
|
||||||
|
"height": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_4x10": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":0.25, "y":1},
|
||||||
|
{"x":1.25, "y":1},
|
||||||
|
{"x":2.25, "y":1},
|
||||||
|
{"x":3.25, "y":1},
|
||||||
|
{"x":4.25, "y":1},
|
||||||
|
{"x":5.25, "y":1},
|
||||||
|
{"x":6.25, "y":1},
|
||||||
|
{"x":7.25, "y":1},
|
||||||
|
{"x":8.25, "y":1},
|
||||||
|
{"x":9.25, "y":1},
|
||||||
|
{"x":0.5, "y":2},
|
||||||
|
{"x":1.5, "y":2},
|
||||||
|
{"x":2.5, "y":2},
|
||||||
|
{"x":3.5, "y":2},
|
||||||
|
{"x":4.5, "y":2},
|
||||||
|
{"x":5.5, "y":2},
|
||||||
|
{"x":6.5, "y":2},
|
||||||
|
{"x":7.5, "y":2},
|
||||||
|
{"x":8.5, "y":2},
|
||||||
|
{"x":9.5, "y":2},
|
||||||
|
{"x":0.75, "y":3},
|
||||||
|
{"x":1.75, "y":3},
|
||||||
|
{"x":2.75, "y":3},
|
||||||
|
{"x":3.75, "y":3},
|
||||||
|
{"x":4.75, "y":3},
|
||||||
|
{"x":5.75, "y":3},
|
||||||
|
{"x":6.75, "y":3},
|
||||||
|
{"x":7.75, "y":3},
|
||||||
|
{"x":8.75, "y":3},
|
||||||
|
{"x":9.75, "y":3}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ortho_4x10(
|
||||||
|
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
|
||||||
|
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(3,KC_MINS),
|
||||||
|
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, LT(4,KC_SLSH),
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_LSFT, LT(2,KC_BSPC), LT(1,KC_SPC), KC_ENT, KC_APP, KC_DEL, KC_ESC),
|
||||||
|
[1] = LAYOUT_ortho_4x10(
|
||||||
|
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||||
|
KC_TAB, KC_NO, KC_NO, KC_GRV, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_MINS,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_EQL, KC_MINS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
[2] = LAYOUT_ortho_4x10(
|
||||||
|
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
|
||||||
|
KC_TAB, KC_F11, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
KC_CAPS, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO, KC_NLCK, KC_NO, KC_VOLD, KC_VOLU, KC_MUTE,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO),
|
||||||
|
[3] = LAYOUT_ortho_4x10(
|
||||||
|
KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_INS, KC_PGUP, KC_UP, KC_PGDN, KC_DEL,
|
||||||
|
KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_END, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO),
|
||||||
|
[4] = LAYOUT_ortho_4x10(
|
||||||
|
KC_ESC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, KC_DEL,
|
||||||
|
KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_U, KC_MS_L, KC_MS_D, KC_MS_R, KC_NO,
|
||||||
|
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_WH_D, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO)
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
#include "p40.h"
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT_ortho_4x10( \
|
||||||
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \
|
||||||
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \
|
||||||
|
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, \
|
||||||
|
k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 \
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{k00, k01, k02, k03, k04, k05, k06, k07, k08, k09}, \
|
||||||
|
{k10, k11, k12, k13, k14, k15, k16, k17, k18, k19}, \
|
||||||
|
{k20, k21, k22, k23, k24, k25, k26, k27, k28, k29}, \
|
||||||
|
{k30, k31, k32, k33, k34, k35, k36, k37, k38, k39} \
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# P40
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
A compact 4x10 (40%) staggered DIY keyboard kit.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [pabile](https://github.com/pabile)
|
||||||
|
* Hardware Supported: Pabile P40 PCB, Pro Micro
|
||||||
|
* Hardware Availability: [Info at pabileonline.blogspot.com](https://pabileonline.blogspot.com/search/label/pabile40)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make pabile/p40:default
|
||||||
|
|
||||||
|
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).
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
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
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
MIDI_ENABLE = no # MIDI controls
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||||
|
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||||
|
UNICODE_ENABLE = yes # Unicode
|
||||||
|
IOS_DEVICE_ENABLE = no # connect to IOS Device
|
||||||
|
|
||||||
|
LAYOUTS = ortho_4x10
|
||||||
@@ -257,7 +257,7 @@ uint8_t layer_switch_get_layer(keypos_t key) {
|
|||||||
|
|
||||||
layer_state_t layers = layer_state | default_layer_state;
|
layer_state_t layers = layer_state | default_layer_state;
|
||||||
/* check top layer first */
|
/* check top layer first */
|
||||||
for (int8_t i = sizeof(layer_state_t) * 8 - 1; i >= 0; i--) {
|
for (int8_t i = MAX_LAYER - 1; i >= 0; i--) {
|
||||||
if (layers & (1UL << i)) {
|
if (layers & (1UL << i)) {
|
||||||
action = action_for_key(i, key);
|
action = action_for_key(i, key);
|
||||||
if (action.code != ACTION_TRANSPARENT) {
|
if (action.code != ACTION_TRANSPARENT) {
|
||||||
|
|||||||
@@ -23,12 +23,24 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#if defined(LAYER_STATE_8BIT)
|
#if defined(LAYER_STATE_8BIT)
|
||||||
typedef uint8_t layer_state_t;
|
typedef uint8_t layer_state_t;
|
||||||
|
# define MAX_LAYER_BITS 3
|
||||||
|
# ifndef MAX_LAYER
|
||||||
|
# define MAX_LAYER 8
|
||||||
|
# endif
|
||||||
# define get_highest_layer(state) biton(state)
|
# define get_highest_layer(state) biton(state)
|
||||||
#elif defined(LAYER_STATE_16BIT)
|
#elif defined(LAYER_STATE_16BIT)
|
||||||
typedef uint16_t layer_state_t;
|
typedef uint16_t layer_state_t;
|
||||||
|
# define MAX_LAYER_BITS 4
|
||||||
|
# ifndef MAX_LAYER
|
||||||
|
# define MAX_LAYER 16
|
||||||
|
# endif
|
||||||
# define get_highest_layer(state) biton16(state)
|
# define get_highest_layer(state) biton16(state)
|
||||||
#else
|
#else
|
||||||
typedef uint32_t layer_state_t;
|
typedef uint32_t layer_state_t;
|
||||||
|
# define MAX_LAYER_BITS 5
|
||||||
|
# ifndef MAX_LAYER
|
||||||
|
# define MAX_LAYER 32
|
||||||
|
# endif
|
||||||
# define get_highest_layer(state) biton32(state)
|
# define get_highest_layer(state) biton32(state)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -96,8 +108,7 @@ layer_state_t layer_state_set_kb(layer_state_t state);
|
|||||||
|
|
||||||
/* pressed actions cache */
|
/* pressed actions cache */
|
||||||
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)
|
#if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE)
|
||||||
/* The number of bits needed to represent the layer number: log2(32). */
|
|
||||||
# define MAX_LAYER_BITS 5
|
|
||||||
void update_source_layers_cache(keypos_t key, uint8_t layer);
|
void update_source_layers_cache(keypos_t key, uint8_t layer);
|
||||||
uint8_t read_source_layers_cache(keypos_t key);
|
uint8_t read_source_layers_cache(keypos_t key);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+19
-1
@@ -10,8 +10,13 @@ enum userspace_custom_layers {
|
|||||||
RSE,
|
RSE,
|
||||||
LWR,
|
LWR,
|
||||||
LFT,
|
LFT,
|
||||||
MOUSE
|
MOUSE,
|
||||||
|
TT1,
|
||||||
|
TT2,
|
||||||
|
TT3,
|
||||||
|
T23X
|
||||||
};
|
};
|
||||||
|
#define BASE DV
|
||||||
|
|
||||||
enum userspace_custom_keycodes {
|
enum userspace_custom_keycodes {
|
||||||
PAWFIVE = SAFE_RANGE,
|
PAWFIVE = SAFE_RANGE,
|
||||||
@@ -34,9 +39,14 @@ enum userspace_custom_keycodes {
|
|||||||
// == Macro keys for commonly used apps
|
// == Macro keys for commonly used apps
|
||||||
// -- Slack
|
// -- Slack
|
||||||
// Move one conversation up/down
|
// Move one conversation up/down
|
||||||
|
#define SLACKTB LGUI(LSFT(KC_T))
|
||||||
#define SLACKUP LALT(LSFT(KC_UP))
|
#define SLACKUP LALT(LSFT(KC_UP))
|
||||||
#define SLACKDN LALT(LSFT(KC_DOWN))
|
#define SLACKDN LALT(LSFT(KC_DOWN))
|
||||||
|
|
||||||
|
// -- 1password
|
||||||
|
#define PSWD LCTL(KC_BSLS)
|
||||||
|
#define PSWD_ALT LCTL(LALT(KC_BSLS))
|
||||||
|
|
||||||
// -- Browser and OS X
|
// -- Browser and OS X
|
||||||
// Activate one tab left/right
|
// Activate one tab left/right
|
||||||
#define TAB_LFT LGUI(LSFT(KC_LBRC))
|
#define TAB_LFT LGUI(LSFT(KC_LBRC))
|
||||||
@@ -52,6 +62,14 @@ enum userspace_custom_keycodes {
|
|||||||
// Make window fill the whole monitor
|
// Make window fill the whole monitor
|
||||||
#define SCR_FUL HYPR(KC_F)
|
#define SCR_FUL HYPR(KC_F)
|
||||||
|
|
||||||
|
// -- Windows variants of browser commanads
|
||||||
|
// Activate one tab left/right
|
||||||
|
#define WTABLFT LCTL(LSFT(KC_TAB))
|
||||||
|
#define WTABRGT LCTL(KC_TAB)
|
||||||
|
// Go back/forward in history
|
||||||
|
#define WBWSRBK LALT(KC_LEFT)
|
||||||
|
#define WBWSRFW LALT(KC_RGHT)
|
||||||
|
|
||||||
// == Extended alpha layer toggles
|
// == Extended alpha layer toggles
|
||||||
// -- Dvorak
|
// -- Dvorak
|
||||||
// Pressing U opens up the LWR layer (numpad)
|
// Pressing U opens up the LWR layer (numpad)
|
||||||
|
|||||||
Reference in new issue
Block a user