aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/pteron44/config.h41
-rw-r--r--keyboards/handwired/pteron44/info.json64
-rw-r--r--keyboards/handwired/pteron44/keymaps/default/keymap.c109
-rw-r--r--keyboards/handwired/pteron44/pteron44.c17
-rw-r--r--keyboards/handwired/pteron44/pteron44.h31
-rw-r--r--keyboards/handwired/pteron44/readme.md15
-rw-r--r--keyboards/handwired/pteron44/rules.mk22
7 files changed, 299 insertions, 0 deletions
diff --git a/keyboards/handwired/pteron44/config.h b/keyboards/handwired/pteron44/config.h
new file mode 100644
index 000000000..94622fa8c
--- /dev/null
+++ b/keyboards/handwired/pteron44/config.h
@@ -0,0 +1,41 @@
1/* Copyright 2020 Fidel Coria
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 "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x542C
24#define DEVICE_VER 0x0001
25#define MANUFACTURER QMK Community
26#define PRODUCT Pteron44
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 12
31
32/* key matrix pins */
33#define MATRIX_ROW_PINS { E6, B4, B5, B6 }
34#define MATRIX_COL_PINS { F4, F6, F5, F7, B1, B3, C6, D4, D0, D1, D2, D3 }
35#define UNUSED_PINS { D7 }
36
37/* COL2ROW or ROW2COL */
38#define DIODE_DIRECTION COL2ROW
39
40/* Set 0 if debouncing isn't needed */
41#define DEBOUNCE 5 // 5 is default
diff --git a/keyboards/handwired/pteron44/info.json b/keyboards/handwired/pteron44/info.json
new file mode 100644
index 000000000..ed8791b06
--- /dev/null
+++ b/keyboards/handwired/pteron44/info.json
@@ -0,0 +1,64 @@
1{
2 "keyboard_name": "pteron44",
3 "url": "",
4 "maintainer": "fidelcoria",
5 "width": 17,
6 "height": 5.95,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"K100", "x":0, "y":1.75},
11 {"label":"K101", "x":1, "y":1.75},
12 {"label":"K102", "x":2, "y":1.25},
13 {"label":"K103", "x":3, "y":1},
14 {"label":"K104", "x":4, "y":1.35},
15 {"label":"K105", "x":5, "y":1.45},
16
17 {"label":"K106", "x":11, "y":1.45},
18 {"label":"K107", "x":12, "y":1.35},
19 {"label":"K108", "x":13, "y":1},
20 {"label":"K109", "x":14, "y":1.25},
21 {"label":"K110", "x":15, "y":1.75},
22 {"label":"K111", "x":16, "y":1.75},
23
24 {"label":"K200", "x":0, "y":2.75},
25 {"label":"K201", "x":1, "y":2.75},
26 {"label":"K202", "x":2, "y":2.25},
27 {"label":"K203", "x":3, "y":2},
28 {"label":"K204", "x":4, "y":2.35},
29 {"label":"K205", "x":5, "y":2.45},
30
31 {"label":"K206", "x":11, "y":2.45},
32 {"label":"K207", "x":12, "y":2.35},
33 {"label":"K208", "x":13, "y":2},
34 {"label":"K209", "x":14, "y":2.25},
35 {"label":"K210", "x":15, "y":2.75},
36 {"label":"K211", "x":16, "y":2.75},
37
38 {"label":"K300", "x":0, "y":3.75},
39 {"label":"K301", "x":1, "y":3.75},
40 {"label":"K302", "x":2, "y":3.25},
41 {"label":"K303", "x":3, "y":3},
42 {"label":"K304", "x":4, "y":3.35},
43 {"label":"K305", "x":5, "y":3.45},
44
45 {"label":"K306", "x":11, "y":3.45},
46 {"label":"K307", "x":12, "y":3.35},
47 {"label":"K308", "x":13, "y":3},
48 {"label":"K309", "x":14, "y":3.25},
49 {"label":"K310", "x":15, "y":3.75},
50 {"label":"K311", "x":16, "y":3.75},
51
52 {"label":"K402", "x":4, "y":4.35},
53 {"label":"K403", "x":5, "y":4.45},
54 {"label":"K404", "x":6, "y":4.65},
55 {"label":"K405", "x":7, "y":4.95},
56
57 {"label":"K406", "x":9, "y":4.95},
58 {"label":"K407", "x":10, "y":4.65},
59 {"label":"K408", "x":11, "y":4.45},
60 {"label":"K409", "x":12, "y":4.35}
61 ]
62 }
63 }
64}
diff --git a/keyboards/handwired/pteron44/keymaps/default/keymap.c b/keyboards/handwired/pteron44/keymaps/default/keymap.c
new file mode 100644
index 000000000..9eb2f7ff2
--- /dev/null
+++ b/keyboards/handwired/pteron44/keymaps/default/keymap.c
@@ -0,0 +1,109 @@
1/* Copyright 2020 Fidel Coria
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 QMK_KEYBOARD_H
18
19enum pteron_layers {
20 _QWERTY,
21 _LOWER,
22 _RAISE,
23 _ADJUST
24};
25
26
27#define LOWER MO(_LOWER)
28#define RAISE MO(_RAISE)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31
32/* Qwerty
33 * +-----------------------------------------+ +-----------------------------------------+
34 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | Del |
35 * |------+------+------+------+------+------| |------+------+------+------+------+------|
36 * | Esc | A | S | D | F | G | | H | J | K | L | ; | " |
37 * |------+------+------+------+------+------| |------+------+------+------+------+------|
38 * | Shift| Z | X | C | V | B | | N | M | , | . | / |Enter |
39 * +-------------+------+------+------+------| |------+------+------+------+-------------+
40 * |Lower | SPC | Alt | GUI | | Ctrl | GUI | SPC |Raise |
41 * +---------------------------+ +---------------------------+
42 */
43[_QWERTY] = LAYOUT(
44 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL,
45 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
46 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
47 LOWER, KC_SPC, KC_LALT, KC_LGUI, KC_RCTL, KC_RGUI, KC_SPC, RAISE
48),
49
50/* Lower
51 * +-----------------------------------------+ +-----------------------------------------+
52 * | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Bksp |
53 * |------+------+------+------+------+------| |------+------+------+------+------+------|
54 * | Del | F1 | F2 | F3 | F4 | F5 | | F6 | _ | + | { | } | | |
55 * |------+------+------+------+------+------| |------+------+------+------+------+------|
56 * | | F7 | F8 | F9 | F10 | F11 | | F12 |ISO ~ |ISO | | | | |
57 * +-------------+------+------+------+------| |------+------+------+------+-------------+
58 * | | Next | Play | | | | Vol- | Vol+ | |
59 * +---------------------------+ +---------------------------+
60 */
61[_LOWER] = LAYOUT(
62 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
63 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
64 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______,
65 _______, KC_MNXT, KC_MPLY, _______, _______, KC_VOLD, KC_VOLU, _______
66
67),
68
69/* Raise
70 * +-----------------------------------------+ +-----------------------------------------+
71 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp |
72 * |------+------+------+------+------+------| |------+------+------+------+------+------|
73 * | Del | F1 | F2 | F3 | F4 | F5 | | F6 | - | = | [ | ] | \ |
74 * |------+------+------+------+------+------| |------+------+------+------+------+------|
75 * | | F7 | F8 | F9 | F10 | F11 | | F12 |ISO # |ISO / | | | |
76 * +-------------+------+------+------+------| |------+------+------+------+-------------+
77 * | | Next | Play | | | | Vol- | Vol+ | |
78 * +---------------------------+ +---------------------------+
79 */
80[_RAISE] = LAYOUT(
81 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
82 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
83 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
84 _______, KC_MNXT, KC_MPLY, _______, _______, KC_VOLD, KC_VOLU, _______
85),
86
87/* Adjust (Lower + Raise)
88 * +-----------------------------------------+ +-----------------------------------------+
89 * | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
90 * |------+------+------+------+------+------| |------+------+------+------+------+------|
91 * | | | | | | | | | | | | | |
92 * |------+------+------+------+------+------| |------+------+------+------+------+------|
93 * | | | | | Debug| Reset| | | | | | | |
94 * |------+------+------+------+------+------| |------+------+------+------+------+------|
95 * | | | | | | | | | |
96 * +---------------------------+ +---------------------------+
97 */
98[_ADJUST] = LAYOUT(
99 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
100 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
101 _______, _______, _______, _______, DEBUG, RESET, _______, _______, _______, _______, _______, _______,
102 _______, _______, _______, _______, _______, _______, _______, _______
103)
104
105};
106
107layer_state_t layer_state_set_user(layer_state_t state) {
108 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
109}
diff --git a/keyboards/handwired/pteron44/pteron44.c b/keyboards/handwired/pteron44/pteron44.c
new file mode 100644
index 000000000..e6c2ad50b
--- /dev/null
+++ b/keyboards/handwired/pteron44/pteron44.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Fidel Coria
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 "pteron44.h"
diff --git a/keyboards/handwired/pteron44/pteron44.h b/keyboards/handwired/pteron44/pteron44.h
new file mode 100644
index 000000000..971822331
--- /dev/null
+++ b/keyboards/handwired/pteron44/pteron44.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 Fidel Coria
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 LAYOUT( \
22 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, \
23 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, \
24 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, \
25 K402, K403, K404, K405, K406, K407, K408, K409 \
26) { \
27 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111 }, \
28 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211 }, \
29 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311 }, \
30 { KC_NO, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, KC_NO, KC_NO } \
31}
diff --git a/keyboards/handwired/pteron44/readme.md b/keyboards/handwired/pteron44/readme.md
new file mode 100644
index 000000000..88fd68ef7
--- /dev/null
+++ b/keyboards/handwired/pteron44/readme.md
@@ -0,0 +1,15 @@
1# Pteron44
2
3![Pteron44](https://raw.githubusercontent.com/FSund/pteron-keyboard/master/images/44key-switch-plate-square-holes.png)
4
5An ergonomic keyboard heavily inspired by the [Atreus](https://github.com/technomancy/atreus), [Iris](https://github.com/keebio/iris-case) and [Atreis](https://github.com/dekonnection/atreis) keyboards. More info and files for laser cutting plates and case are in the [Pteron repository](https://github.com/FSund/pteron-keyboard).
6
7* Keyboard Maintainer: [Fidel Coria](https://github.com/fidelcoria)
8* Hardware Supported: Elite C
9* Hardware Availability: Handwired, no PCB's available (for now)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make handwired/pteron44:default
14
15See 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/handwired/pteron44/rules.mk b/keyboards/handwired/pteron44/rules.mk
new file mode 100644
index 000000000..12c8a6005
--- /dev/null
+++ b/keyboards/handwired/pteron44/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 = no # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # 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 = yes # 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