aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkb-elmo <lorwel@mailbox.org>2021-05-17 10:55:37 +0200
committerGitHub <noreply@github.com>2021-05-17 01:55:37 -0700
commitf7c6d68b3443e242cd658e2913d16db8b2318e03 (patch)
tree49ce0afd275e417f6a08fe099ad788607de91cee
parent1d3f775051fd118fc9c5d95a4f278761117c2c97 (diff)
downloadqmk_firmware-f7c6d68b3443e242cd658e2913d16db8b2318e03.tar.gz
qmk_firmware-f7c6d68b3443e242cd658e2913d16db8b2318e03.zip
[Keyboard] Friedrich (#12569)
* added Friedrich * Update readme.md * Update readme.md * Update keyboards/friedrich/keymaps/via/rules.mk * change USB name casing
-rw-r--r--keyboards/friedrich/config.h45
-rw-r--r--keyboards/friedrich/friedrich.c17
-rw-r--r--keyboards/friedrich/friedrich.h43
-rw-r--r--keyboards/friedrich/info.json64
-rw-r--r--keyboards/friedrich/keymaps/default/keymap.c33
-rw-r--r--keyboards/friedrich/keymaps/via/keymap.c47
-rw-r--r--keyboards/friedrich/keymaps/via/rules.mk1
-rw-r--r--keyboards/friedrich/readme.md21
-rw-r--r--keyboards/friedrich/rules.mk22
9 files changed, 293 insertions, 0 deletions
diff --git a/keyboards/friedrich/config.h b/keyboards/friedrich/config.h
new file mode 100644
index 000000000..1e4e36f2e
--- /dev/null
+++ b/keyboards/friedrich/config.h
@@ -0,0 +1,45 @@
1/*
2Copyright 2021 kb-elmo<mail@elmo.space>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x6481
24#define PRODUCT_ID 0xB4A2
25#define DEVICE_VER 0x0001
26#define MANUFACTURER kb-elmo
27#define PRODUCT Friedrich
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 12
32
33/* Keyboard Matrix Assignments */
34#define MATRIX_ROW_PINS { F4, F1, F0, F5, D5 }
35#define MATRIX_COL_PINS { F6, F7, E6, B2, B3, D4, D6, D7, B4, C6, B5, B6 }
36#define UNUSED_PINS
37
38/* COL2ROW, ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* CAPS LED */
42#define LED_CAPS_LOCK_PIN B1
43
44/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
45#define DEBOUNCE 5
diff --git a/keyboards/friedrich/friedrich.c b/keyboards/friedrich/friedrich.c
new file mode 100644
index 000000000..5c6995202
--- /dev/null
+++ b/keyboards/friedrich/friedrich.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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
17#include "friedrich.h"
diff --git a/keyboards/friedrich/friedrich.h b/keyboards/friedrich/friedrich.h
new file mode 100644
index 000000000..d4f043b77
--- /dev/null
+++ b/keyboards/friedrich/friedrich.h
@@ -0,0 +1,43 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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
17#pragma once
18
19#include "quantum.h"
20
21#define ____ KC_NO
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT( \
32 k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k210, k011, \
33 k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, \
34 k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k211, \
35 k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k311, \
36 k400, k401, k405, k409, k410 \
37) { \
38 { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011 }, \
39 { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111 }, \
40 { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211 }, \
41 { k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, ____, k311 }, \
42 { k400, k401, ____, ____, ____, k405, ____, ____, ____, k409, k410, ____ } \
43}
diff --git a/keyboards/friedrich/info.json b/keyboards/friedrich/info.json
new file mode 100644
index 000000000..94b9f1a20
--- /dev/null
+++ b/keyboards/friedrich/info.json
@@ -0,0 +1,64 @@
1{
2 "keyboard_name": "Friedrich",
3 "url": "https://github.com/MarvFPV/Friedrich",
4 "maintainer": "kb-elmo<mail@elmo.space>",
5 "width": 13,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"x":0, "y":0},
10 {"x":1, "y":0},
11 {"x":2, "y":0},
12 {"x":3, "y":0},
13 {"x":4, "y":0},
14 {"x":5, "y":0},
15 {"x":6, "y":0},
16 {"x":7, "y":0},
17 {"x":8, "y":0},
18 {"x":9, "y":0},
19 {"x":10, "y":0},
20 {"x":11, "y":0},
21 {"x":12, "y":0},
22 {"x":0, "y":1, "w":1.5},
23 {"x":1.5, "y":1},
24 {"x":2.5, "y":1},
25 {"x":3.5, "y":1},
26 {"x":4.5, "y":1},
27 {"x":5.5, "y":1},
28 {"x":6.5, "y":1},
29 {"x":7.5, "y":1},
30 {"x":8.5, "y":1},
31 {"x":9.5, "y":1},
32 {"x":10.5, "y":1},
33 {"x":11.5, "y":1, "w":1.5},
34 {"x":0, "y":2, "w":1.75},
35 {"x":1.75, "y":2},
36 {"x":2.75, "y":2},
37 {"x":3.75, "y":2},
38 {"x":4.75, "y":2},
39 {"x":5.75, "y":2},
40 {"x":6.75, "y":2},
41 {"x":7.75, "y":2},
42 {"x":8.75, "y":2},
43 {"x":9.75, "y":2},
44 {"x":10.75, "y":2, "w":2.25},
45 {"x":0, "y":3, "w":2.25},
46 {"x":2.25, "y":3},
47 {"x":3.25, "y":3},
48 {"x":4.25, "y":3},
49 {"x":5.25, "y":3},
50 {"x":6.25, "y":3},
51 {"x":7.25, "y":3},
52 {"x":8.25, "y":3},
53 {"x":9.25, "y":3},
54 {"x":10.25, "y":3},
55 {"x":11.25, "y":3, "w":1.75},
56 {"x":1.125, "y":4},
57 {"x":2.125, "y":4, "w":1.25},
58 {"x":3.375, "y":4, "w":6.25},
59 {"x":9.625, "y":4, "w":1.25},
60 {"x":10.875, "y":4}
61 ]
62 }
63 }
64} \ No newline at end of file
diff --git a/keyboards/friedrich/keymaps/default/keymap.c b/keyboards/friedrich/keymaps/default/keymap.c
new file mode 100644
index 000000000..31474f4d0
--- /dev/null
+++ b/keyboards/friedrich/keymaps/default/keymap.c
@@ -0,0 +1,33 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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,
21 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
22 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
24 KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1)
25 ),
26 [1] = LAYOUT(
27 KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_DEL,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPRV, KC_MNXT, KC_MPLY, KC_SLSH,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
32 )
33};
diff --git a/keyboards/friedrich/keymaps/via/keymap.c b/keyboards/friedrich/keymaps/via/keymap.c
new file mode 100644
index 000000000..cbbe87b16
--- /dev/null
+++ b/keyboards/friedrich/keymaps/via/keymap.c
@@ -0,0 +1,47 @@
1/* Copyright 2021 kb-elmo<mail@elmo.space>
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT(
20 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,
21 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
22 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
24 KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1)
25 ),
26 [1] = LAYOUT(
27 KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_DEL,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, KC_TRNS,
30 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU, KC_MPRV, KC_MNXT, KC_MPLY, KC_SLSH,
31 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
32 ),
33 [2] = LAYOUT(
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
39 ),
40 [3] = LAYOUT(
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
43 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
46 )
47};
diff --git a/keyboards/friedrich/keymaps/via/rules.mk b/keyboards/friedrich/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/friedrich/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/friedrich/readme.md b/keyboards/friedrich/readme.md
new file mode 100644
index 000000000..dbe890bd9
--- /dev/null
+++ b/keyboards/friedrich/readme.md
@@ -0,0 +1,21 @@
1# Friedrich
2
3![friedrich](https://i.imgur.com/LH15u37l.jpg)
4
5A small printer friendly 3D printed 50% keyboard.
6
7* Keyboard Maintainer: [kb-elmo](https://github.com/kb-elmo)
8* Hardware Supported: Friedrich PCB by kb-elmo
9* Hardware Availability: [Open source project](https://github.com/MarvFPV/Friedrich)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make friedrich:default
14
15Flashing example for this keyboard:
16
17 make friedrich:default:flash
18
19**Bootloader:** Press the physical reset button on the top side of the PCB or hold down ESC while plugging in the board.
20
21See 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/friedrich/rules.mk b/keyboards/friedrich/rules.mk
new file mode 100644
index 000000000..a90eef1fc
--- /dev/null
+++ b/keyboards/friedrich/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output