mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-07-09 21:06:32 -04:00
[Keyboard] move latincompass's boards to /latincompass (#16039)
This commit is contained in:
parent
3d16bcdda5
commit
2cab549482
14 changed files with 0 additions and 0 deletions
48
keyboards/latincompass/latin17rgb/keymaps/via/keymap.c
Normal file
48
keyboards/latincompass/latin17rgb/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,48 @@
|
|||
/* Copyright 2021 18438880
|
||||
*
|
||||
* 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] = {
|
||||
[0] = LAYOUT_numpad_5x4(
|
||||
KC_NLCK, KC_PSLS, KC_PAST, MO(1),
|
||||
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_numpad_5x4(
|
||||
RGB_TOG, RGB_MOD, KC_PMNS, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______, KC_PGDN,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT_numpad_5x4(
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT_numpad_5x4(
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______, _______
|
||||
),
|
||||
};
|
2
keyboards/latincompass/latin17rgb/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latin17rgb/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
54
keyboards/latincompass/latin47ble/keymaps/via/keymap.c
Normal file
54
keyboards/latincompass/latin47ble/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,54 @@
|
|||
/* Copyright 2020 haierwangwei2005
|
||||
*
|
||||
* 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
|
||||
|
||||
enum layers {
|
||||
_QWERTY,
|
||||
_FN1,
|
||||
_FN2,
|
||||
};
|
||||
|
||||
#define KC_X0 LT(_FN2, KC_CAPS)
|
||||
#define KC_X1 MO(_FN1)
|
||||
#define KC_X2 MO(_FN2)
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = LAYOUT_planck_mit(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_X0, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_X2, KC_DEL,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_PGUP, KC_PGDN, KC_SPC, KC_X1, KC_1, KC_2, KC_3, KC_4
|
||||
),
|
||||
[_FN1] = LAYOUT_planck_mit(
|
||||
OUT_AUTO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL,
|
||||
KC_X0, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RGB_TOG, KC_DEL,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_PGUP, KC_PGDN, KC_SPC, KC_X1, RGB_TOG, RGB_MOD, KC_MYCM, KC_CALC
|
||||
),
|
||||
[_FN2] = LAYOUT_planck_mit(
|
||||
KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_BSPC,
|
||||
KC_X0, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RGB_TOG, KC_DEL,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_PGUP, KC_PGDN, KC_SPC, KC_X1, RGB_TOG, RGB_MOD, KC_MYCM, KC_CALC
|
||||
),
|
||||
[3] = LAYOUT_planck_mit(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
2
keyboards/latincompass/latin47ble/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latin47ble/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
40
keyboards/latincompass/latin60rgb/keymaps/via/keymap.c
Normal file
40
keyboards/latincompass/latin60rgb/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
/* Copyright 2021 latincompass
|
||||
*
|
||||
* 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] = {
|
||||
[0] = LAYOUT_60_latin_hhkb(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), MO(2),
|
||||
KC_LCTRL, KC_LGUI, KC_SPC, KC_PGUP, KC_PGDOWN
|
||||
),
|
||||
[1] = LAYOUT_60_latin_hhkb(
|
||||
RGB_TOG, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
|
||||
_______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SLCK, KC_PAUS, RESET,
|
||||
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_UP, _______,
|
||||
KC_MPRV, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, NK_TOGG, _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______,_______,
|
||||
KC_LALT, _______, _______, _______, _______
|
||||
),
|
||||
[2] = LAYOUT_60_latin_hhkb(
|
||||
RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, RGB_SPI, RGB_SPD, KC_F11, KC_F12, KC_DEL,
|
||||
_______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, RESET,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI, RGB_SPD, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,_______,
|
||||
_______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
2
keyboards/latincompass/latin60rgb/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latin60rgb/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
32
keyboards/latincompass/latin64ble/keymaps/via/keymap.c
Normal file
32
keyboards/latincompass/latin64ble/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
#define T1 MO(1)
|
||||
#define T2 MO(2)
|
||||
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RGB_TOG, RGB_MOD, KC_MY_COMPUTER, MO(1),
|
||||
KC_LCTL, KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_PGDOWN, KC_PGUP, KC_CALCULATOR,KC_DEL),
|
||||
[1] = LAYOUT(
|
||||
RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_X, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_BSPC,
|
||||
RGB_SAI, RGB_SAD, RGB_HUI, RGB_HUD, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL,
|
||||
RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
RGB_SPI, RGB_SPD, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RGB_TOG, RGB_MOD, KC_MY_COMPUTER, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL),
|
||||
[2] = LAYOUT(
|
||||
KC_NUMLOCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_DEL,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RGB_TOG, RGB_MOD, KC_MY_COMPUTER, MO(1),
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL),
|
||||
[3] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______,_______),
|
||||
};
|
2
keyboards/latincompass/latin64ble/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latin64ble/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
28
keyboards/latincompass/latin6rgb/keymaps/via/keymap.c
Normal file
28
keyboards/latincompass/latin6rgb/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* Copyright 2021 18438880
|
||||
*
|
||||
* 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] = {
|
||||
[0] = LAYOUT_numpad_2x3(
|
||||
KC_P4, KC_P5, MO(1),
|
||||
KC_P1, KC_P2, KC_P3),
|
||||
[1] = LAYOUT_numpad_2x3(
|
||||
RGB_TOG, RGB_MOD, MO(1),
|
||||
AU_ON, AU_OFF, MI_ON),
|
||||
[2] = LAYOUT_numpad_2x3(
|
||||
KC_P4, KC_P5, MO(1),
|
||||
KC_P1, KC_P2, KC_P3),
|
||||
};
|
2
keyboards/latincompass/latin6rgb/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latin6rgb/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
72
keyboards/latincompass/latinpad/keymaps/via/keymap.c
Normal file
72
keyboards/latincompass/latinpad/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,72 @@
|
|||
/* Keymap _0: (Base Layer) Default Layer
|
||||
* .-----------.
|
||||
* |PGUP | PGDN|
|
||||
* |-----------------------.
|
||||
* | 7 | 8 | 9 | MO1 |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 4 | 5 | 6 | + |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 1 | 2 | 3 | — |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 0 | . | DEL |Enter|
|
||||
* .-----------------------.
|
||||
*/
|
||||
/* Keymap _1: (Second Layer) second Layer
|
||||
* .---------------.
|
||||
* |NUMLOCK|Calc. |
|
||||
* |--------------------------------.
|
||||
* |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_SAI|RGB_SAD|RGB_HUI|RGB_HUD |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_VAI|RGB_VAD|RGB_SPI|RGB_SPD |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_SPI|RGB_SPD|RGB_TOG|KC_TRNS |
|
||||
* .--------------------------------.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_PGUP, KC_PGDOWN,
|
||||
KC_KP_7, KC_KP_8, KC_KP_9, MO(1),
|
||||
KC_P4, KC_P5, KC_P6, KC_KP_PLUS,
|
||||
KC_P1, KC_P2, KC_P3, KC_KP_MINUS,
|
||||
KC_P0, KC_PDOT,KC_DELETE, KC_KP_ENTER),
|
||||
[1] = LAYOUT(
|
||||
KC_NUMLOCK, KC_CALCULATOR,
|
||||
RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_X,
|
||||
RGB_SAI, RGB_SAD, RGB_HUI, RGB_HUD,
|
||||
RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
|
||||
RGB_SPI, RGB_SPD, RGB_TOG, KC_TRNS),
|
||||
};
|
||||
|
||||
static void render_logo(void) {
|
||||
static const char PROGMEM qmk_logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0};
|
||||
oled_write_P(qmk_logo, false);
|
||||
}
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
bool oled_task_user(void) {
|
||||
render_logo();
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_AUDIO_VOL_UP);
|
||||
} else {
|
||||
tap_code(KC_AUDIO_VOL_DOWN);
|
||||
}
|
||||
} else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_BRIGHTNESS_UP);
|
||||
} else {
|
||||
tap_code(KC_BRIGHTNESS_DOWN);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
void matrix_init_user(void) { render_logo(); }
|
2
keyboards/latincompass/latinpad/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latinpad/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
85
keyboards/latincompass/latinpadble/keymaps/via/keymap.c
Normal file
85
keyboards/latincompass/latinpadble/keymaps/via/keymap.c
Normal file
|
@ -0,0 +1,85 @@
|
|||
/* Copyright 2021 haierwangwei2005
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
/* Keymap _0: (Base Layer) Default Layer
|
||||
|
||||
* .----.
|
||||
* |PGUP|
|
||||
* |-----------------------.
|
||||
* | 7 | 8 | 9 | MO1 |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 4 | 5 | 6 | + |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 1 | 2 | 3 | — |
|
||||
* |-----|-----|-----|-----|
|
||||
* | 0 | . | DEL |Enter|
|
||||
* .-----------------------.
|
||||
*/
|
||||
/* Keymap _1: (Second Layer) second Layer
|
||||
|
||||
* .--------.
|
||||
* |NUMLOCK|
|
||||
* |--------------------------------.
|
||||
* |RGB_TOG|RGB_MOD|RGB_M_K|RGB_M_X |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_SAI|RGB_SAD|RGB_HUI|RGB_HUD |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_VAI|RGB_VAD|RGB_SPI|RGB_SPD |
|
||||
* |-------|-------|-------|--------|
|
||||
* |RGB_SPI|RGB_SPD|RGB_TOG|KC_TRNS |
|
||||
* .--------------------------------.
|
||||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_pad(
|
||||
KC_PGUP,
|
||||
KC_KP_7, KC_KP_8, KC_KP_9, MO(1),
|
||||
KC_P4, KC_P5, KC_P6, KC_KP_PLUS,
|
||||
KC_P1, KC_P2, KC_P3, KC_KP_MINUS,
|
||||
KC_P0, KC_PDOT,KC_DELETE, KC_KP_ENTER),
|
||||
[1] = LAYOUT_pad(
|
||||
KC_NUMLOCK,
|
||||
RGB_TOG, RGB_MOD, RGB_M_K, RGB_M_X,
|
||||
RGB_SAI, RGB_SAD, RGB_HUI, RGB_HUD,
|
||||
RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
|
||||
RGB_SPI, RGB_SPD, RGB_TOG, KC_TRNS),
|
||||
};
|
||||
|
||||
static void render_logo(void) {
|
||||
static const char PROGMEM qmk_logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0};
|
||||
oled_write_P(qmk_logo, false);
|
||||
}
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
bool oled_task_user(void) {
|
||||
render_logo();
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* First encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_PGDN);
|
||||
} else {
|
||||
tap_code(KC_PGUP);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
void matrix_init_user(void) { render_logo(); }
|
2
keyboards/latincompass/latinpadble/keymaps/via/rules.mk
Normal file
2
keyboards/latincompass/latinpadble/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
VIA_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
Loading…
Add table
Add a link
Reference in a new issue