diff options
author | wangyifu <18438880@qq.com> | 2021-01-11 17:22:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 01:22:43 -0800 |
commit | 76e88e228b9351b48949c5b7613f9d168a97f386 (patch) | |
tree | 2d3671af1b99b6e1f5c50eda165f1feddc2af5bc | |
parent | 554b937d21f8c50515c22498f4f46df0b3ae6569 (diff) | |
download | qmk_firmware-76e88e228b9351b48949c5b7613f9d168a97f386.tar.gz qmk_firmware-76e88e228b9351b48949c5b7613f9d168a97f386.zip |
[Keyboard] latin64ble Keyboard (#10884)
* Update rules.mk
* Update config.h
* Update keyboards/latinpad/config.h
Co-authored-by: Joel Challis <git@zvecr.com>
* Create rules.mk
* Create config.h
* Create latin64ble.h
* Create latin64ble.c
* Create keymap.c
* Create keymap.c
* Create rules.mk
* Create readme.md
* Update rules.mk
* Update rules.mk
* Update keymap.c
* Update keymap.c
* Update rules.mk
* Update readme.md
* Update keyboards/latin64ble/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/latin64ble/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/latin64ble/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update config.h
* Update rules.mk
* Update config.h
* Update keymap.c
* Update rules.mk
* Update keymap.c
* Update keymap.c
* Update latin64ble.h
* Update rules.mk
* Update rules.mk
* Update keymap.c
* Update keymap.c
* Update keyboards/latin64ble/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/latin64ble/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/latin64ble/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update readme.md
* Update readme.md
* Update keyboards/latin64ble/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r-- | keyboards/latin64ble/config.h | 51 | ||||
-rw-r--r-- | keyboards/latin64ble/keymaps/default/keymap.c | 41 | ||||
-rw-r--r-- | keyboards/latin64ble/keymaps/via/keymap.c | 32 | ||||
-rw-r--r-- | keyboards/latin64ble/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/latin64ble/latin64ble.c | 16 | ||||
-rw-r--r-- | keyboards/latin64ble/latin64ble.h | 34 | ||||
-rw-r--r-- | keyboards/latin64ble/readme.md | 14 | ||||
-rw-r--r-- | keyboards/latin64ble/rules.mk | 26 |
8 files changed, 216 insertions, 0 deletions
diff --git a/keyboards/latin64ble/config.h b/keyboards/latin64ble/config.h new file mode 100644 index 000000000..ddae1e149 --- /dev/null +++ b/keyboards/latin64ble/config.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | Copyright 2020 latincompass | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | You should have received a copy of the GNU General Public License | ||
14 | along with this program. If not, see <http://www.gnu.org/licenses/>.*/ | ||
15 | |||
16 | #pragma once | ||
17 | |||
18 | #include "config_common.h" | ||
19 | #define VENDOR_ID 0x6C63 // "lc" = latincompass | ||
20 | #define PRODUCT_ID 0x6C71 // "lp" = latin64BLE | ||
21 | #define DEVICE_VER 0x0001 | ||
22 | #define MANUFACTURER latincompass | ||
23 | #define PRODUCT Latin64BLE | ||
24 | |||
25 | /* key matrix size */ | ||
26 | #define MATRIX_ROWS 8 | ||
27 | #define MATRIX_COLS 8 | ||
28 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D6, D7, B5, B6 } | ||
29 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7, C6 } | ||
30 | #define UNUSED_PINS | ||
31 | |||
32 | #define DIODE_DIRECTION ROW2COL | ||
33 | |||
34 | |||
35 | #define RGB_DI_PIN B7 | ||
36 | |||
37 | #define RGBLED_NUM 2 | ||
38 | #define DRIVER_LED_TOTAL RGBLED_NUM | ||
39 | |||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
41 | #define DEBOUNCE 5 | ||
42 | |||
43 | |||
44 | #define RGBLIGHT_VAL_STEP 25 | ||
45 | #define RGBLIGHT_LIMIT_VAL 255 | ||
46 | #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 20 | ||
47 | #define RGBLIGHT_ANIMATIONS // Run RGB animations | ||
48 | |||
49 | |||
50 | |||
51 | |||
diff --git a/keyboards/latin64ble/keymaps/default/keymap.c b/keyboards/latin64ble/keymaps/default/keymap.c new file mode 100644 index 000000000..4c05beb7d --- /dev/null +++ b/keyboards/latin64ble/keymaps/default/keymap.c | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Copyright 2020 latincompass | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | #define T1 MO(1) | ||
18 | #define T2 MO(2) | ||
19 | |||
20 | |||
21 | |||
22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
23 | [0] = LAYOUT( | ||
24 | 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, | ||
25 | 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, | ||
26 | 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, | ||
27 | 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), | ||
28 | KC_LCTL, KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_PGDOWN, KC_PGUP, KC_CALCULATOR,KC_DEL), | ||
29 | [1] = LAYOUT( | ||
30 | 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, | ||
31 | 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, | ||
32 | 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, | ||
33 | 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), | ||
34 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL), | ||
35 | [2] = LAYOUT( | ||
36 | 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, | ||
37 | 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, | ||
38 | 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, | ||
39 | 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), | ||
40 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL), | ||
41 | }; | ||
diff --git a/keyboards/latin64ble/keymaps/via/keymap.c b/keyboards/latin64ble/keymaps/via/keymap.c new file mode 100644 index 000000000..08ce5fbf3 --- /dev/null +++ b/keyboards/latin64ble/keymaps/via/keymap.c | |||
@@ -0,0 +1,32 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | #define T1 MO(1) | ||
3 | #define T2 MO(2) | ||
4 | |||
5 | |||
6 | |||
7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
8 | [0] = LAYOUT( | ||
9 | 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, | ||
10 | 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, | ||
11 | 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, | ||
12 | 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), | ||
13 | KC_LCTL, KC_LCTL, KC_LALT, KC_SPC, MO(2), KC_PGDOWN, KC_PGUP, KC_CALCULATOR,KC_DEL), | ||
14 | [1] = LAYOUT( | ||
15 | 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, | ||
16 | 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, | ||
17 | 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, | ||
18 | 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), | ||
19 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL), | ||
20 | [2] = LAYOUT( | ||
21 | 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, | ||
22 | 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, | ||
23 | 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, | ||
24 | 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), | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_PGUP, KC_PGDOWN, KC_CALCULATOR,KC_DEL), | ||
26 | [3] = LAYOUT( | ||
27 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______,_______), | ||
32 | }; | ||
diff --git a/keyboards/latin64ble/keymaps/via/rules.mk b/keyboards/latin64ble/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/latin64ble/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/latin64ble/latin64ble.c b/keyboards/latin64ble/latin64ble.c new file mode 100644 index 000000000..580f4da42 --- /dev/null +++ b/keyboards/latin64ble/latin64ble.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2020 latincompass | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include "latin64ble.h" | ||
diff --git a/keyboards/latin64ble/latin64ble.h b/keyboards/latin64ble/latin64ble.h new file mode 100644 index 000000000..76814acdb --- /dev/null +++ b/keyboards/latin64ble/latin64ble.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2020 latincompass | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | #include "quantum.h" | ||
18 | #define XXX KC_NO | ||
19 | #define LAYOUT( \ | ||
20 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13,\ | ||
21 | K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, K24, K25, K26, K27,\ | ||
22 | K28, K29, K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K40, \ | ||
23 | K41, K42, K43, K44, K45, K46, K47, K48, K49, K50, K51, K52, K53, K54,\ | ||
24 | K55, K56, K57, K58, K59, K60, K61, K62, K63\ | ||
25 | ) { \ | ||
26 | { K00, K01, K02, K03, K04, K05, K06, K07}, \ | ||
27 | { K08, K09, K10, K11, K12, K13, K14, K15}, \ | ||
28 | { K16, K17, K18, K19, K20, K21, K22, K23}, \ | ||
29 | { K24, K25, K26, K27, K28, K29, K30, K31}, \ | ||
30 | { K32, K33, K34, K35, K36, K37, K38, K39}, \ | ||
31 | { K40, K41, K42, K43, K44, K45, K46, K47}, \ | ||
32 | { K48, K49, K50, K51, K52, K53, K54, K55}, \ | ||
33 | { K56, K57, K58, K59, K60, K61, K62, K63} \ | ||
34 | } | ||
diff --git a/keyboards/latin64ble/readme.md b/keyboards/latin64ble/readme.md new file mode 100644 index 000000000..98f5e50a6 --- /dev/null +++ b/keyboards/latin64ble/readme.md | |||
@@ -0,0 +1,14 @@ | |||
1 | # Latin64ble | ||
2 | |||
3 |  | ||
4 | |||
5 | macro 64 ble 4.0 RGB keyboard | ||
6 | |||
7 | * Keyboard Maintainer: [latincompass](https://github.com/latincompass) | ||
8 | * Hardware Availability: https://github.com/latincompass/latin64BLE-kb | ||
9 | |||
10 | Make example for this keyboard (after setting up your build environment): | ||
11 | |||
12 | make latin64ble:default | ||
13 | |||
14 | 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). | ||
diff --git a/keyboards/latin64ble/rules.mk b/keyboards/latin64ble/rules.mk new file mode 100644 index 000000000..4da5e0938 --- /dev/null +++ b/keyboards/latin64ble/rules.mk | |||
@@ -0,0 +1,26 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency | ||
5 | F_CPU = 8000000 | ||
6 | |||
7 | # Bootloader selection | ||
8 | BOOTLOADER = caterina | ||
9 | |||
10 | # Build Options | ||
11 | # change yes to no to disable | ||
12 | # | ||
13 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
16 | CONSOLE_ENABLE = no # Console for debug | ||
17 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
23 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
25 | AUDIO_ENABLE = no # Audio output | ||
26 | BLUETOOTH = AdafruitBLE | ||