aboutsummaryrefslogtreecommitdiff
path: root/keyboards/buildakb
diff options
context:
space:
mode:
authorAeonstrife <j.v.jeoffer@gmail.com>2021-05-16 05:21:21 +0530
committerGitHub <noreply@github.com>2021-05-15 16:51:21 -0700
commitcc77710b4a94b5944b9af08423204dcb631391f8 (patch)
treeb702c4aac5bdfc8fa9ac2cb0bb9782fb40bab586 /keyboards/buildakb
parentf9a395e2651ea9f43204e7f7ac8f805c9f15141d (diff)
downloadqmk_firmware-cc77710b4a94b5944b9af08423204dcb631391f8.tar.gz
qmk_firmware-cc77710b4a94b5944b9af08423204dcb631391f8.zip
[Keyboard] Add Potato65 Hotswap keyboard (#12874)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/buildakb')
-rw-r--r--keyboards/buildakb/potato65hs/config.h63
-rw-r--r--keyboards/buildakb/potato65hs/info.json84
-rw-r--r--keyboards/buildakb/potato65hs/keymaps/default/keymap.c39
-rw-r--r--keyboards/buildakb/potato65hs/keymaps/default/readme.md3
-rw-r--r--keyboards/buildakb/potato65hs/keymaps/via/keymap.c54
-rw-r--r--keyboards/buildakb/potato65hs/keymaps/via/readme.md3
-rw-r--r--keyboards/buildakb/potato65hs/keymaps/via/rules.mk1
-rw-r--r--keyboards/buildakb/potato65hs/potato65hs.c17
-rw-r--r--keyboards/buildakb/potato65hs/potato65hs.h33
-rw-r--r--keyboards/buildakb/potato65hs/readme.md24
-rw-r--r--keyboards/buildakb/potato65hs/rules.mk24
11 files changed, 345 insertions, 0 deletions
diff --git a/keyboards/buildakb/potato65hs/config.h b/keyboards/buildakb/potato65hs/config.h
new file mode 100644
index 000000000..b3b2cfdcd
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/config.h
@@ -0,0 +1,63 @@
1/*
2Copyright 2021 Maelkk
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 0x4A56
24#define PRODUCT_ID 0x0002
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Maelkk
27#define PRODUCT Potato 65 Hotswap
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { F5, F4, F6, F0, D2 }
35#define MATRIX_COL_PINS { D3, D4, D6, D7, B4, B5, B6, F1, B0, B1, B2, B3, B7, D0, D1 }
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* Set 0 if debouncing isn't needed */
42#define DEBOUNCE 5
43
44/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45#define LOCKING_SUPPORT_ENABLE
46
47/* Locking resynchronize hack */
48#define LOCKING_RESYNC_ENABLE
49
50/* disable these deprecated features by default */
51#define NO_ACTION_MACRO
52#define NO_ACTION_FUNCTION
53
54#define RGB_DI_PIN D5
55#ifdef RGB_DI_PIN
56# define RGBLIGHT_ANIMATIONS
57# define RGBLED_NUM 16
58# define RGBLIGHT_HUE_STEP 8
59# define RGBLIGHT_SAT_STEP 8
60# define RGBLIGHT_VAL_STEP 8
61# define RGBLIGHT_LIMIT_VAL 240
62# define RGBLIGHT_SLEEP
63#endif
diff --git a/keyboards/buildakb/potato65hs/info.json b/keyboards/buildakb/potato65hs/info.json
new file mode 100644
index 000000000..264adbbb6
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/info.json
@@ -0,0 +1,84 @@
1{
2 "keyboard_name": "Potato 65 Hotswap",
3 "url": "https://github.com/Aeonstrife/potato65hotswap",
4 "maintainer": "Maelkk",
5 "width": 16,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_65_ansi_blocker": {
9 "layout": [
10 { "x":0, "y":0 },
11 { "x":1, "y":0 },
12 { "x":2, "y":0 },
13 { "x":3, "y":0 },
14 { "x":4, "y":0 },
15 { "x":5, "y":0 },
16 { "x":6, "y":0 },
17 { "x":7, "y":0 },
18 { "x":8, "y":0 },
19 { "x":9, "y":0 },
20 { "x":10, "y":0 },
21 { "x":11, "y":0 },
22 { "x":12, "y":0 },
23 { "x":13, "y":0, "w": 2 },
24 { "x":15, "y":0 },
25
26 { "x":0, "y":1, "w":1.5 },
27 { "x":1.5, "y":1 },
28 { "x":2.5, "y":1 },
29 { "x":3.5, "y":1 },
30 { "x":4.5, "y":1 },
31 { "x":5.5, "y":1 },
32 { "x":6.5, "y":1 },
33 { "x":7.5, "y":1 },
34 { "x":8.5, "y":1 },
35 { "x":9.5, "y":1 },
36 { "x":10.5, "y":1 },
37 { "x":11.5, "y":1 },
38 { "x":12.5, "y":1 },
39 { "x":13.5, "y":1, "w":1.5 },
40 { "x":15, "y":1 },
41
42 { "x":0, "y":2, "w":1.75 },
43 { "x":1.75, "y":2 },
44 { "x":2.75, "y":2 },
45 { "x":3.75, "y":2 },
46 { "x":4.75, "y":2 },
47 { "x":5.75, "y":2 },
48 { "x":6.75, "y":2 },
49 { "x":7.75, "y":2 },
50 { "x":8.75, "y":2 },
51 { "x":9.75, "y":2 },
52 { "x":10.75, "y":2 },
53 { "x":11.75, "y":2 },
54 { "x":12.75, "y":2, "w":2.25 },
55 { "x":15, "y":2 },
56
57 { "x":0, "y":3, "w":2.25 },
58 { "x":2.25, "y":3 },
59 { "x":3.25, "y":3 },
60 { "x":4.25, "y":3 },
61 { "x":5.25, "y":3 },
62 { "x":6.25, "y":3 },
63 { "x":7.25, "y":3 },
64 { "x":8.25, "y":3 },
65 { "x":9.25, "y":3 },
66 { "x":10.25, "y":3 },
67 { "x":11.25, "y":3 },
68 { "x":12.25, "y":3, "w":1.75 },
69 { "x":14, "y":3 },
70 { "x":15, "y":3 },
71
72 { "x":0, "y":4, "w":1.25 },
73 { "x":1.25, "y":4, "w":1.25 },
74 { "x":2.5, "y":4, "w":1.25 },
75 { "x":3.75, "y":4, "w":6.25 },
76 { "x":10, "y":4, "w":1.25 },
77 { "x":11.25, "y":4, "w":1.25 },
78 { "x":13, "y":4 },
79 { "x":14, "y":4 },
80 { "x":15, "y":4 }
81 ]
82 }
83 }
84}
diff --git a/keyboards/buildakb/potato65hs/keymaps/default/keymap.c b/keyboards/buildakb/potato65hs/keymaps/default/keymap.c
new file mode 100644
index 000000000..f7a5ff424
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/keymaps/default/keymap.c
@@ -0,0 +1,39 @@
1/* Copyright 2021 Maelkk
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 layer_names {
20 _BASE,
21 _FN
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 [_BASE] = LAYOUT_65_ansi_blocker(
26 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_HOME,
27 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_BSLS, KC_PGUP,
28 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_PGDN,
29 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
30 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
31 ),
32 [_FN] = LAYOUT_65_ansi_blocker(
33 KC_TILD, 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_DEL, KC_TRNS,
34 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, RESET, 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, 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, KC_TRNS, KC_VOLU, KC_MUTE,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
38 )
39}; \ No newline at end of file
diff --git a/keyboards/buildakb/potato65hs/keymaps/default/readme.md b/keyboards/buildakb/potato65hs/keymaps/default/readme.md
new file mode 100644
index 000000000..bb34368c9
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/keymaps/default/readme.md
@@ -0,0 +1,3 @@
1# Default Potato65 Hotswap Layout
2
3This is the default layout for the Potato65 Hotswap keyboard. Largely based on the KBD67 layout.
diff --git a/keyboards/buildakb/potato65hs/keymaps/via/keymap.c b/keyboards/buildakb/potato65hs/keymaps/via/keymap.c
new file mode 100644
index 000000000..269fca737
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/keymaps/via/keymap.c
@@ -0,0 +1,54 @@
1/* Copyright 2021 Maelkk
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
18enum layer_names {
19 _BASE,
20 _FN1,
21 _FN2,
22 _FN3
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [_BASE] = LAYOUT_65_ansi_blocker(
27 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_HOME,
28 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_BSLS, KC_PGUP,
29 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_PGDN,
30 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
32 ),
33 [_FN1] = LAYOUT_65_ansi_blocker(
34 KC_TILD, 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_DEL, KC_TRNS,
35 KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, RESET, 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, 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, KC_TRNS, KC_VOLU, KC_MUTE,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
39 ),
40 [_FN2] = LAYOUT_65_ansi_blocker(
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______
46 ),
47 [_FN3] = LAYOUT_65_ansi_blocker(
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______
53 ),
54}; \ No newline at end of file
diff --git a/keyboards/buildakb/potato65hs/keymaps/via/readme.md b/keyboards/buildakb/potato65hs/keymaps/via/readme.md
new file mode 100644
index 000000000..4e3ddd122
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/keymaps/via/readme.md
@@ -0,0 +1,3 @@
1# Default Potato65 Layout
2
3This is the VIA layout for the Potato65 Hotswap Keyboard. Largely based on the KBD67 layout.
diff --git a/keyboards/buildakb/potato65hs/keymaps/via/rules.mk b/keyboards/buildakb/potato65hs/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/buildakb/potato65hs/potato65hs.c b/keyboards/buildakb/potato65hs/potato65hs.c
new file mode 100644
index 000000000..2b5ca899b
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/potato65hs.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 Maelkk
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 "potato65hs.h"
diff --git a/keyboards/buildakb/potato65hs/potato65hs.h b/keyboards/buildakb/potato65hs/potato65hs.h
new file mode 100644
index 000000000..96884bc52
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/potato65hs.h
@@ -0,0 +1,33 @@
1/* Copyright 2021 Maelkk
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_65_ansi_blocker( \
22 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
23 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
24 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, \
25 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, \
26 K400, K401, K402, K403, K409, K410, K411, K413, K414 \
27) { \
28 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
29 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
30 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, KC_NO, K213, K214 }, \
31 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K311, K313, K314 }, \
32 { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K409, K410, KC_NO, K411, K413, K414 } \
33}
diff --git a/keyboards/buildakb/potato65hs/readme.md b/keyboards/buildakb/potato65hs/readme.md
new file mode 100644
index 000000000..bf8abea83
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/readme.md
@@ -0,0 +1,24 @@
1# Potato65 Hotswap Keyboard
2
3![Potato65 Hotswap](https://i.imgur.com/ysAGZCmh.jpg)
4
5A hot-swappable gasket mount stacked acrylic 65% keyboard
6
7- Keyboard Maintainer: [Maelkk](https://github.com/Aeonstrife)
8- Hardware Supported: Potato65 Keyboard
9- Hardware Availability: Private Group-Buy
10
11Make example for this keyboard (after setting up your build environment):
12
13 make buildakb/potato65hs:default
14
15Flashing example for this keyboard:
16
17 make buildakb/potato65hs:default:flash
18
19To reset into bootloader mode:
20
21While plugged in, press the RESET switch located on the back of the pcb.
22The keyboard should now be in bootloader mode.
23
24See 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). \ No newline at end of file
diff --git a/keyboards/buildakb/potato65hs/rules.mk b/keyboards/buildakb/potato65hs/rules.mk
new file mode 100644
index 000000000..c538b0c21
--- /dev/null
+++ b/keyboards/buildakb/potato65hs/rules.mk
@@ -0,0 +1,24 @@
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 = 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
20BLUETOOTH_ENABLE = no # Enable Bluetooth
21AUDIO_ENABLE = no # Audio output
22RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
23
24LAYOUTS = 65_ansi_blocker