forked from mirror/qmk_firmware
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9234f9c964 | ||
|
|
2869d51ba8 |
12
keyboards/lfkeyboards/lfkpad/info.json
Normal file
12
keyboards/lfkeyboards/lfkpad/info.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"keyboard_name": "LFKPad",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 4,
|
||||
"height": 6,
|
||||
"layouts": {
|
||||
"LAYOUT_numpad_6x4": {
|
||||
"layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Tab", "x":1, "y":0}, {"label":"=", "x":2, "y":0}, {"label":"Fn", "x":3, "y":0}, {"label":"Num Lock", "x":0, "y":1}, {"label":"/", "x":1, "y":1}, {"label":"*", "x":2, "y":1}, {"label":"-", "x":3, "y":1}, {"label":"7", "x":0, "y":2}, {"label":"8", "x":1, "y":2}, {"label":"9", "x":2, "y":2}, {"label":"4", "x":0, "y":3}, {"label":"5", "x":1, "y":3}, {"label":"6", "x":2, "y":3}, {"label":"+", "x":3, "y":2, "h":2}, {"label":"1", "x":0, "y":4}, {"label":"2", "x":1, "y":4}, {"label":"3", "x":2, "y":4}, {"label":"0", "x":0, "y":5, "w":2}, {"label":".", "x":2, "y":5}, {"label":"Enter", "x":3, "y":4, "h":2}]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,27 @@
|
||||
#include "lfkpad.h"
|
||||
#include "issi.h"
|
||||
#include "lighting.h"
|
||||
#include "action_layer.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// readability
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT( /* Base */
|
||||
KC_ESC, KC_TAB, KC_PEQL, MO(1), \
|
||||
KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS, \
|
||||
KC_P7, KC_P8, KC_P9, KC_PPLS, \
|
||||
KC_P4, KC_P5, KC_P6, \
|
||||
KC_P1, KC_P2, KC_P3, KC_PENT, \
|
||||
KC_P0, KC_PDOT),
|
||||
[0] = LAYOUT_numpad_6x4( /* Base */
|
||||
KC_ESC, KC_TAB, KC_PEQL, MO(1), \
|
||||
KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS, \
|
||||
KC_P7, KC_P8, KC_P9, \
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS, \
|
||||
KC_P1, KC_P2, KC_P3, \
|
||||
KC_P0, KC_PDOT, KC_PENT \
|
||||
),
|
||||
|
||||
[1] = LAYOUT( /* RGB */
|
||||
RGB_SAI, RGB_VAI, RGB_HUI, KC_TRNS, \
|
||||
RGB_SAD, RGB_VAD, RGB_HUD, KC_TRNS, \
|
||||
RGB_M_X, RGB_M_G, RGB_MOD, RGB_RMOD, \
|
||||
RGB_M_SW, RGB_M_SN, RGB_M_K, \
|
||||
RGB_M_P, RGB_M_B, RGB_M_R, RGB_TOG, \
|
||||
KC_NO, KC_NO),
|
||||
[1] = LAYOUT_numpad_6x4( /* RGB */
|
||||
RGB_SAI, RGB_VAI, RGB_HUI, _______, \
|
||||
RGB_SAD, RGB_VAD, RGB_HUD, _______, \
|
||||
RGB_M_X, RGB_M_G, RGB_MOD, \
|
||||
RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_RMOD, \
|
||||
RGB_M_P, RGB_M_B, RGB_M_R, \
|
||||
XXXXXXX, XXXXXXX, RGB_TOG \
|
||||
),
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -163,10 +163,10 @@ const uint8_t rgb_matrices[] = {0, 1};
|
||||
const uint8_t rgb_sequence[] = {
|
||||
32, 1, 2, 3,
|
||||
31, 30, 5, 6,
|
||||
28, 27, 7, 8,
|
||||
17, 18, 9,
|
||||
19, 21, 11, 12,
|
||||
22, 14,
|
||||
28, 27, 7,
|
||||
17, 18, 9, 8,
|
||||
19, 21, 11,
|
||||
22, 14, 12,
|
||||
|
||||
16, 26,
|
||||
4, 25,
|
||||
|
||||
@@ -54,20 +54,24 @@ enum action_functions {
|
||||
void reset_keyboard_kb(void);
|
||||
void click(uint16_t freq, uint16_t duration);
|
||||
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, k03,\
|
||||
k10, k11, k12, k13,\
|
||||
k20, k21, k22, k23,\
|
||||
k30, k31, k32,\
|
||||
k40, k41, k42, k43,\
|
||||
k50, k52\
|
||||
// readability
|
||||
#define ___ KC_NO
|
||||
|
||||
|
||||
#define LAYOUT_numpad_6x4( \
|
||||
k00, k01, k02, k03, \
|
||||
k10, k11, k12, k13, \
|
||||
k20, k21, k22, \
|
||||
k30, k31, k32, k23, \
|
||||
k40, k41, k42, \
|
||||
k50, k52, k43 \
|
||||
) { \
|
||||
{ k00, k01, k02, k03 }, \
|
||||
{ k10, k11, k12, k13 }, \
|
||||
{ k20, k21, k22, k23 }, \
|
||||
{ k30, k31, k32, KC_NO }, \
|
||||
{ k40, k41, k42, k43 }, \
|
||||
{ k50, KC_NO, k52, KC_NO } \
|
||||
{ k00, k01, k02, k03 }, \
|
||||
{ k10, k11, k12, k13 }, \
|
||||
{ k20, k21, k22, k23 }, \
|
||||
{ k30, k31, k32, ___ }, \
|
||||
{ k40, k41, k42, k43 }, \
|
||||
{ k50, ___, k52, ___ } \
|
||||
}
|
||||
|
||||
#endif //LFKPAD_H
|
||||
|
||||
@@ -9,6 +9,5 @@ ARCH = AVR8
|
||||
|
||||
# Interrupt driven control endpoint task(+60)
|
||||
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||
ifndef QUANTUM_DIR
|
||||
include ../../Makefile
|
||||
endif
|
||||
|
||||
LAYOUTS = numpad_6x4
|
||||
|
||||
140
quantum/keymap_extras/keymap_hungarian.h
Normal file
140
quantum/keymap_extras/keymap_hungarian.h
Normal file
@@ -0,0 +1,140 @@
|
||||
/* Copyright 2018 fuge
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
|
||||
#ifndef KEYMAP_HUNGARIAN
|
||||
#define KEYMAP_HUNGARIAN
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
// Alt gr
|
||||
#define ALGR(kc) RALT(kc)
|
||||
#define HU_ALGR KC_RALT
|
||||
|
||||
// basic letters
|
||||
#define HU_Z KC_Y
|
||||
#define HU_Y KC_Z
|
||||
|
||||
#define HU_A KC_A
|
||||
#define HU_B KC_B
|
||||
#define HU_C KC_C
|
||||
#define HU_D KC_D
|
||||
#define HU_E KC_E
|
||||
#define HU_F KC_F
|
||||
#define HU_G KC_G
|
||||
#define HU_H KC_H
|
||||
#define HU_I KC_I
|
||||
#define HU_J KC_J
|
||||
#define HU_K KC_K
|
||||
#define HU_L KC_L
|
||||
#define HU_M KC_M
|
||||
#define HU_N KC_N
|
||||
#define HU_O KC_O
|
||||
#define HU_P KC_P
|
||||
#define HU_Q KC_Q
|
||||
#define HU_R KC_R
|
||||
#define HU_S KC_S
|
||||
#define HU_T KC_T
|
||||
#define HU_U KC_U
|
||||
#define HU_V KC_V
|
||||
#define HU_W KC_W
|
||||
#define HU_X KC_X
|
||||
|
||||
// num row
|
||||
#define HU_0 KC_GRV
|
||||
#define HU_1 KC_1
|
||||
#define HU_2 KC_2
|
||||
#define HU_3 KC_3
|
||||
#define HU_4 KC_4
|
||||
#define HU_5 KC_5
|
||||
#define HU_6 KC_6
|
||||
#define HU_7 KC_7
|
||||
#define HU_8 KC_8
|
||||
#define HU_9 KC_9
|
||||
#define HU_OE KC_0
|
||||
|
||||
#define HU_UE KC_MINS
|
||||
#define HU_OO KC_EQL
|
||||
|
||||
// q row
|
||||
#define HU_OEE KC_LBRC
|
||||
#define HU_UU KC_RBRC
|
||||
|
||||
// a row
|
||||
#define HU_EE KC_SCLN
|
||||
#define HU_AA KC_QUOT
|
||||
#define HU_UEE KC_NUHS
|
||||
|
||||
#define HU_MINS KC_SLSH // -
|
||||
|
||||
#define HU_DOT KC_DOT
|
||||
#define HU_COMM KC_COMM
|
||||
|
||||
// shifted characters
|
||||
// num row
|
||||
#define HU_PARA LSFT(HU_0) // §
|
||||
#define HU_QUOT LSFT(HU_1) // '
|
||||
#define HU_DQOT LSFT(HU_2) // "
|
||||
#define HU_PLUS LSFT(HU_3) // +
|
||||
#define HU_EXLM LSFT(HU_4) // !
|
||||
#define HU_PERC LSFT(HU_5) // %
|
||||
#define HU_SLSH LSFT(HU_6) // /
|
||||
#define HU_EQL LSFT(HU_7) // =
|
||||
#define HU_LPRN LSFT(HU_8) // (
|
||||
#define HU_RPRN LSFT(HU_9) // )
|
||||
|
||||
// í,y row
|
||||
#define HU_II KC_NUBS
|
||||
#define HU_QST LSFT(HU_COMM) // ?
|
||||
#define HU_COLN LSFT(HU_DOT) // :
|
||||
#define HU_UNDS LSFT(HU_MINS) // _
|
||||
|
||||
// Alt Gr'd characters
|
||||
// num row
|
||||
#define HU_TILD ALGR(HU_1) // ~
|
||||
//#define HU_?? ALGR(HU_2) // ˇ (proper name?)
|
||||
#define HU_CIRC ALGR(HU_3) // ^
|
||||
#define HU_BRV ALGR(HU_4) // ˘
|
||||
#define HU_RING ALGR(HU_5) // °
|
||||
//#define HU_?? ALGR(HU_6) // ˛ (proper name?)
|
||||
#define HU_GRV ALGR(HU_7) // `
|
||||
//#define HU_?? ALGR(HU_8) // ˙ (proper name?)
|
||||
#define HU_ACUT ALGR(HU_9) // ´
|
||||
|
||||
// q row
|
||||
#define HU_BSLS ALGR(HU_Q) // \ backslash
|
||||
#define HU_PIPE ALGR(HU_W) // |
|
||||
#define HU_DIV ALGR(HU_OEE) // ÷
|
||||
#define HU_CRSS ALGR(HU_UU) // ×
|
||||
#define HU_EURO ALGR(HU_U) // €
|
||||
|
||||
// a row
|
||||
#define HU_LBRC ALGR(HU_F) // [
|
||||
#define HU_RBRC ALGR(HU_G) // ]
|
||||
#define HU_DLR ALGR(HU_EE) // $
|
||||
#define HU_SS ALGR(HU_AA) // ß
|
||||
|
||||
// í,y row
|
||||
#define HU_LESS ALGR(KC_NUBS) // <
|
||||
#define HU_MORE ALGR(HU_Y) // >
|
||||
#define HU_HASH ALGR(HU_X) // #
|
||||
#define HU_AMPR ALGR(HU_C) // &
|
||||
#define HU_AT ALGR(HU_V) // @
|
||||
#define HU_LCBR ALGR(HU_B)// {
|
||||
#define HU_RCBR ALGR(HU_N) // }
|
||||
#define HU_SCLN ALGR(HU_COMM) // ;
|
||||
#define HU_ASTR ALGR(HU_MINS) // *
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user