aboutsummaryrefslogtreecommitdiff
path: root/keyboards/pteron36
diff options
context:
space:
mode:
authorHarshit Goel <harshitgoel96@yahoo.com>2021-07-01 13:14:38 +0530
committerGitHub <noreply@github.com>2021-07-01 00:44:38 -0700
commit4168e10c49d512132db369fcc3402e56052cebd1 (patch)
tree73dd7f26463985a8603fd40beb0ead8b008ee581 /keyboards/pteron36
parent54f429edd8d680a5f4ea4f866e923294772e336c (diff)
downloadqmk_firmware-4168e10c49d512132db369fcc3402e56052cebd1.tar.gz
qmk_firmware-4168e10c49d512132db369fcc3402e56052cebd1.zip
[Keyboard] Pteron36, open source 3x5_3 supporting layout (#13313)
Diffstat (limited to 'keyboards/pteron36')
-rw-r--r--keyboards/pteron36/config.h155
-rw-r--r--keyboards/pteron36/info.json15
-rw-r--r--keyboards/pteron36/keymaps/default/keymap.c35
-rw-r--r--keyboards/pteron36/keymaps/via/keymap.c84
-rw-r--r--keyboards/pteron36/keymaps/via/readme.md1
-rw-r--r--keyboards/pteron36/keymaps/via/rules.mk2
-rw-r--r--keyboards/pteron36/pteron36.c17
-rw-r--r--keyboards/pteron36/pteron36.h59
-rw-r--r--keyboards/pteron36/readme.md31
-rw-r--r--keyboards/pteron36/rules.mk27
10 files changed, 426 insertions, 0 deletions
diff --git a/keyboards/pteron36/config.h b/keyboards/pteron36/config.h
new file mode 100644
index 000000000..dcc9d68c7
--- /dev/null
+++ b/keyboards/pteron36/config.h
@@ -0,0 +1,155 @@
1/*
2Copyright 2021 Harshit Goel
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 0x4847 //HG
24#define PRODUCT_ID 0x5054 //PT
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Harshit Goel
27#define PRODUCT Pteron36
28
29/* key matrix size */
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 5
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { E6, D7, B4, B5 }
44#define MATRIX_COL_PINS { F6, F7, B1, B3, B2 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION ROW2COL
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53 #define USE_SERIAL
54#define SOFT_SERIAL_PIN D3 // or D1, D2, D3, E6
55
56//#define LED_NUM_LOCK_PIN B0
57//#define LED_CAPS_LOCK_PIN B1
58//#define LED_SCROLL_LOCK_PIN B2
59//#define LED_COMPOSE_PIN B3
60//#define LED_KANA_PIN B4
61
62//#define BACKLIGHT_PIN B7
63//#define BACKLIGHT_LEVELS 3
64//#define BACKLIGHT_BREATHING
65
66//#define RGB_DI_PIN E2
67//#ifdef RGB_DI_PIN
68//# define RGBLED_NUM 16
69//# define RGBLIGHT_HUE_STEP 8
70//# define RGBLIGHT_SAT_STEP 8
71//# define RGBLIGHT_VAL_STEP 8
72//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
73//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
74/*== all animations enable ==*/
75//# define RGBLIGHT_ANIMATIONS
76/*== or choose animations ==*/
77//# define RGBLIGHT_EFFECT_BREATHING
78//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
79//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
80//# define RGBLIGHT_EFFECT_SNAKE
81//# define RGBLIGHT_EFFECT_KNIGHT
82//# define RGBLIGHT_EFFECT_CHRISTMAS
83//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
84//# define RGBLIGHT_EFFECT_RGB_TEST
85//# define RGBLIGHT_EFFECT_ALTERNATING
86/*== customize breathing effect ==*/
87/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
88//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
89/*==== use exp() and sin() ====*/
90//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
91//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
92//#endif
93
94/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
95#define DEBOUNCE 5
96
97/* define if matrix has ghost (lacks anti-ghosting diodes) */
98//#define MATRIX_HAS_GHOST
99
100/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
101#define LOCKING_SUPPORT_ENABLE
102/* Locking resynchronize hack */
103#define LOCKING_RESYNC_ENABLE
104
105/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
106 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
107 */
108//#define GRAVE_ESC_CTRL_OVERRIDE
109
110/*
111 * Force NKRO
112 *
113 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
114 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
115 * makefile for this to work.)
116 *
117 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
118 * until the next keyboard reset.
119 *
120 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
121 * fully operational during normal computer usage.
122 *
123 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
124 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
125 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
126 * power-up.
127 *
128 */
129//#define FORCE_NKRO
130
131/*
132 * Feature disable options
133 * These options are also useful to firmware size reduction.
134 */
135
136/* disable debug print */
137//#define NO_DEBUG
138
139/* disable print */
140//#define NO_PRINT
141
142/* disable action features */
143//#define NO_ACTION_LAYER
144//#define NO_ACTION_TAPPING
145//#define NO_ACTION_ONESHOT
146
147/* disable these deprecated features by default */
148#define NO_ACTION_MACRO
149#define NO_ACTION_FUNCTION
150
151/* Bootmagic Lite key configuration */
152//#define BOOTMAGIC_LITE_ROW 0
153//#define BOOTMAGIC_LITE_COLUMN 0
154// for via
155#define DYNAMIC_KEYMAP_LAYER_COUNT 7 \ No newline at end of file
diff --git a/keyboards/pteron36/info.json b/keyboards/pteron36/info.json
new file mode 100644
index 000000000..08ff00d6d
--- /dev/null
+++ b/keyboards/pteron36/info.json
@@ -0,0 +1,15 @@
1{
2 "keyboard_name": "Pteron36",
3 "url": "",
4 "maintainer": "Harshit Goel",
5 "width": 5,
6 "height": 8,
7 "layouts": {
8 "LAYOUT_split_3x5_3": {
9 "layout": [{"x":2, "y":0}, {"x":12.5, "y":0}, {"x":1, "y":0.5}, {"x":3, "y":0.5}, {"x":11.5, "y":0.5}, {"x":13.5, "y":0.5}, {"x":4, "y":0.75}, {"x":10.5, "y":0.75}, {"x":0, "y":1}, {"x":2, "y":1}, {"x":12.5, "y":1}, {"x":14.5, "y":1}, {"x":1, "y":1.5}, {"x":3, "y":1.5}, {"x":11.5, "y":1.5}, {"x":13.5, "y":1.5}, {"x":4, "y":1.75}, {"x":10.5, "y":1.75}, {"x":0, "y":2}, {"x":2, "y":2}, {"x":12.5, "y":2}, {"x":14.5, "y":2}, {"x":1, "y":2.5}, {"x":3, "y":2.5}, {"x":11.5, "y":2.5}, {"x":13.5, "y":2.5}, {"x":4, "y":2.75}, {"x":10.5, "y":2.75}, {"x":0, "y":3}, {"x":14.5, "y":3}, {"x":4, "y":4}, {"x":5, "y":4}, {"x":6, "y":4}, {"x":8.5, "y":4}, {"x":9.5, "y":4}, {"x":10.5, "y":4}]
10 },
11 "LAYOUT_split_3x5_3_encoder": {
12 "layout": [{"x":2, "y":0}, {"x":12.5, "y":0}, {"x":1, "y":0.5}, {"x":3, "y":0.5}, {"x":11.5, "y":0.5}, {"x":13.5, "y":0.5}, {"x":4, "y":0.75}, {"x":10.5, "y":0.75}, {"x":0, "y":1}, {"x":2, "y":1}, {"x":12.5, "y":1}, {"x":14.5, "y":1}, {"x":1, "y":1.5}, {"x":3, "y":1.5}, {"x":11.5, "y":1.5}, {"x":13.5, "y":1.5}, {"x":4, "y":1.75}, {"x":10.5, "y":1.75}, {"x":0, "y":2}, {"x":2, "y":2}, {"x":12.5, "y":2}, {"x":14.5, "y":2}, {"x":1, "y":2.5}, {"x":3, "y":2.5}, {"x":11.5, "y":2.5}, {"x":13.5, "y":2.5}, {"x":4, "y":2.75}, {"label":"enc1", "x":5.5, "y":2.75}, {"label":"enc2", "x":9, "y":2.75}, {"x":10.5, "y":2.75}, {"x":0, "y":3}, {"x":14.5, "y":3}, {"x":4, "y":4}, {"x":5, "y":4}, {"x":6, "y":4}, {"x":8.5, "y":4}, {"x":9.5, "y":4}, {"x":10.5, "y":4}]
13 }
14 }
15}
diff --git a/keyboards/pteron36/keymaps/default/keymap.c b/keyboards/pteron36/keymaps/default/keymap.c
new file mode 100644
index 000000000..11d00bb31
--- /dev/null
+++ b/keyboards/pteron36/keymaps/default/keymap.c
@@ -0,0 +1,35 @@
1 /* Copyright HarshitGoel96 2020
2 * With permission from mattdibi, the original maintainer of the Redox hardware.
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 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#include QMK_KEYBOARD_H
18
19// Each layer gets a name for readability, which is then used in the keymap matrix below.
20// The underscores don't mean anything - you can have a layer called STUFF or any other name.
21// Layer names don't all need to be of the same length, obviously, and you can also skip them
22// entirely and just use numbers.
23
24enum custom_keycodes {
25 _QWERTY
26};
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29
30 [_QWERTY] = LAYOUT_split_3x5_3_encoder(
31 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
32 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
33 KC_Z, KC_X, KC_C, KC_V, KC_B,KC_LBRACKET, KC_RBRACKET, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
34 KC_LGUI, KC_BSPC, KC_SPC, KC_SPC, KC_ENT, KC_RALT
35 )}; \ No newline at end of file
diff --git a/keyboards/pteron36/keymaps/via/keymap.c b/keyboards/pteron36/keymaps/via/keymap.c
new file mode 100644
index 000000000..1c614596e
--- /dev/null
+++ b/keyboards/pteron36/keymaps/via/keymap.c
@@ -0,0 +1,84 @@
1 /* Copyright HarshitGoel96 2020
2 * With permission from mattdibi, the original maintainer of the Redox hardware.
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 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#include QMK_KEYBOARD_H
18
19// Each layer gets a name for readability, which is then used in the keymap matrix below.
20// The underscores don't mean anything - you can have a layer called STUFF or any other name.
21// Layer names don't all need to be of the same length, obviously, and you can also skip them
22// entirely and just use numbers.
23
24enum layer_names {
25 _QWERTY,
26 _SYMB,
27 _NAV,
28 _ADJUST,
29 _MOUSE,
30 _NUMB,
31 _FNR
32};
33
34const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
35
36 [_QWERTY] = LAYOUT_split_3x5_3_encoder(
37 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
38 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
39 KC_Z, KC_X, KC_C, KC_V, KC_B,KC_LBRACKET, KC_RBRACKET, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
40 KC_LGUI, KC_BSPC, KC_SPC, KC_SPC, KC_ENT, KC_RALT
41 ),
42
43 [_SYMB] = LAYOUT_split_3x5_3_encoder(
44 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
48 ),
49
50 [_NAV] = LAYOUT_split_3x5_3_encoder(
51 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
52 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
55 ),
56
57 [_ADJUST] = LAYOUT_split_3x5_3_encoder(
58 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
59 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
60 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
61 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
62 ),
63 [_MOUSE] = LAYOUT_split_3x5_3_encoder(
64 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
65 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
66 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
68 ),
69
70 [_NUMB] = LAYOUT_split_3x5_3_encoder(
71 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
72 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
73 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
74 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
75 ),
76
77 [_FNR] = LAYOUT_split_3x5_3_encoder(
78 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
79 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
80 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
81 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
82 )
83
84}; \ No newline at end of file
diff --git a/keyboards/pteron36/keymaps/via/readme.md b/keyboards/pteron36/keymaps/via/readme.md
new file mode 100644
index 000000000..32ab1253d
--- /dev/null
+++ b/keyboards/pteron36/keymaps/via/readme.md
@@ -0,0 +1 @@
# Default keymap for Redox Wireless
diff --git a/keyboards/pteron36/keymaps/via/rules.mk b/keyboards/pteron36/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/pteron36/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/pteron36/pteron36.c b/keyboards/pteron36/pteron36.c
new file mode 100644
index 000000000..4f06d822d
--- /dev/null
+++ b/keyboards/pteron36/pteron36.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 Harshit Goel
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 "pteron36.h" \ No newline at end of file
diff --git a/keyboards/pteron36/pteron36.h b/keyboards/pteron36/pteron36.h
new file mode 100644
index 000000000..113e7270d
--- /dev/null
+++ b/keyboards/pteron36/pteron36.h
@@ -0,0 +1,59 @@
1/* Copyright 2021 Harshit Goel
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/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29
30#define LAYOUT_split_3x5_3( \
31 L00, L01, L02,L03, L04 , R04, R03, R02, R01, R00,\
32 L10, L11, L12,L13, L14 , R14, R13, R12, R11, R10,\
33 L20, L21, L22,L23, L24 , R24, R23, R22, R21, R20, \
34 L30, L31, L32, R32, R31, R30\
35) {\
36 {L00, L01, L02,L03, L04 },\
37 {L10, L11, L12,L13, L14 },\
38 {L20, L21, L22,L23, L24 },\
39 {L30, L31, L32, KC_NO, KC_NO },\
40 {R00, R01, R02,R03, R04 },\
41 {R10, R11, R12,R13, R14 },\
42 {R20, R21, R22,R23, R24 },\
43 {R30, R31, R32,KC_NO, KC_NO }\
44}
45#define LAYOUT_split_3x5_3_encoder(\
46 L00, L01, L02,L03, L04 , R04, R03, R02, R01, R00,\
47 L10, L11, L12,L13, L14 , R14, R13, R12, R11, R10,\
48 L20, L21, L22,L23, L24 ,L34, R34,R24, R23, R22, R21, R20, \
49 L30, L31, L32, R32, R31, R30\
50){\
51 {L00, L01, L02,L03, L04 },\
52 {L10, L11, L12,L13, L14 },\
53 {L20, L21, L22,L23, L24 },\
54 {L30, L31, L32, KC_NO, L34 },\
55 {R00, R01, R02,R03, R04 },\
56 {R10, R11, R12,R13, R14 },\
57 {R20, R21, R22,R23, R24 },\
58 {R30, R31, R32,KC_NO, R34 }\
59}
diff --git a/keyboards/pteron36/readme.md b/keyboards/pteron36/readme.md
new file mode 100644
index 000000000..b9e919c75
--- /dev/null
+++ b/keyboards/pteron36/readme.md
@@ -0,0 +1,31 @@
1# Pteron36
2
3![Pteron36](https://i.imgur.com/PuXPWYfh.jpg)
4
5A 36 key keyboard with a bit more natural thumb cluster.
6
7* Keyboard Maintainer: [Harshit Goel](https://github.com/harshitgoel96)
8* Hardware Supported: Pteron36 using promicro.
9* Hardware Availability: Hardware is opensource, you can simply send the gerber to a PCB manufacturere and them made. File are availalbe in [pteron36 repository](https://github.com/harshitgoel96/pteron36-split-keyboard/releases/tag/v1.2.0)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make pteron36:default
14
15Flashing example for this keyboard:
16
17 make pteron36:default:flash
18
19See 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).
20
21## Default Keymap and Miryoku Layout support
22
23The keyboard was designed with miryoku layout in mind. The default layout is very basic and does not have much use. I will be opening a pr to make the keyboard available with miryoku layout soon. Currently to build the keyboard with miryoku you will have to checkout latest miryoku qmk repo, and add the keyboard folder there manually. After copying the folder run the following command
24
25 make pteron36:manna-harbour_miryoku
26
27Add miryoku params as required.
28
29## OLED and RotaryEncoder
30
31I am working on adding OLED and RotaryEncoder support in keyboard config.
diff --git a/keyboards/pteron36/rules.mk b/keyboards/pteron36/rules.mk
new file mode 100644
index 000000000..36cbd2b30
--- /dev/null
+++ b/keyboards/pteron36/rules.mk
@@ -0,0 +1,27 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # 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 = 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
23
24OLED_DRIVER_ENABLE = no # OLED display; work in progress to add support. will be update in future.
25SPLIT_KEYBOARD = yes
26
27LAYOUTS = split_3x5_3