aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanya Kirti <AnanyaKirti@users.noreply.github.com>2021-01-14 10:06:00 +0530
committerGitHub <noreply@github.com>2021-01-13 20:36:00 -0800
commit73235e7ca0295d2a0dc2d12c1e68fcb7a3ea3641 (patch)
treed17b94dc51ab26fd4ba608d22ad82d0f22d8fafa
parent72ca319beefcd479954d5fb08325c0187148b357 (diff)
downloadqmk_firmware-73235e7ca0295d2a0dc2d12c1e68fcb7a3ea3641.tar.gz
qmk_firmware-73235e7ca0295d2a0dc2d12c1e68fcb7a3ea3641.zip
[Keyboard] Add support for hp69 (#11339)
* init init * Update keyboards/hp69/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/hp69/keymaps/via/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/hp69/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * re-added audio support re-added audio support * Update keyboards/hp69/readme.md reduced the size of the default image Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/hp69/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/hp69/info.json Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/hp69/config.h52
-rw-r--r--keyboards/hp69/hp69.c16
-rw-r--r--keyboards/hp69/hp69.h32
-rw-r--r--keyboards/hp69/info.json82
-rw-r--r--keyboards/hp69/keymaps/default/keymap.c33
-rw-r--r--keyboards/hp69/keymaps/default/rules.mk1
-rw-r--r--keyboards/hp69/keymaps/via/keymap.c49
-rw-r--r--keyboards/hp69/keymaps/via/rules.mk2
-rw-r--r--keyboards/hp69/readme.md19
-rw-r--r--keyboards/hp69/rules.mk22
10 files changed, 308 insertions, 0 deletions
diff --git a/keyboards/hp69/config.h b/keyboards/hp69/config.h
new file mode 100644
index 000000000..ca0a9eb47
--- /dev/null
+++ b/keyboards/hp69/config.h
@@ -0,0 +1,52 @@
1/*
2Copyright 2020 Ananya Kirti
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 0x416B
24#define PRODUCT_ID 0x0001
25#define DEVICE_VER 0x0011
26#define MANUFACTURER Desiboards
27#define PRODUCT hp69
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
32/*
33 * Keyboard Matrix Assignments
34 *
35 * Change this to how you wired your keyboard
36 * COLS: AVR pins used for columns, left to right
37 * ROWS: AVR pins used for rows, top to bottom
38 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 *
41 */
42#define MATRIX_ROW_PINS { B3, B7, A10, B9 ,A9}
43#define MATRIX_COL_PINS { B12, B15, B10, B13, B14, B11, B8, A0, A1, B5, B0, B2, B6, B1, B4}
44
45#define DIODE_DIRECTION COL2ROW
46
47#define RGB_DI_PIN A3
48#define RGBLED_NUM 20
49#define RGBLIGHT_ANIMATIONS
50
51#define A4_AUDIO
52#define A5_AUDIO \ No newline at end of file
diff --git a/keyboards/hp69/hp69.c b/keyboards/hp69/hp69.c
new file mode 100644
index 000000000..d9a78e3d8
--- /dev/null
+++ b/keyboards/hp69/hp69.c
@@ -0,0 +1,16 @@
1/* Copyright 2020 Ananya Kirti
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 "hp69.h"
diff --git a/keyboards/hp69/hp69.h b/keyboards/hp69/hp69.h
new file mode 100644
index 000000000..7819eb829
--- /dev/null
+++ b/keyboards/hp69/hp69.h
@@ -0,0 +1,32 @@
1/* Copyright 2020 Ananya Kirti
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
18#include "quantum.h"
19
20#define LAYOUT( \
21 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K1E, K4E, \
22 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K2E, K3E, \
23 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
24 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
25 K40, K41, K42, K46, K49, K4A, K4B, K4C, K4D \
26) { \
27 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
28 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
29 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \
30 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
31 { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, K49, K4A, K4B, K4C, K4D, K4E }, \
32}
diff --git a/keyboards/hp69/info.json b/keyboards/hp69/info.json
new file mode 100644
index 000000000..06689d82a
--- /dev/null
+++ b/keyboards/hp69/info.json
@@ -0,0 +1,82 @@
1{
2 "keyboard_name": "hp69",
3 "url": "",
4 "maintainer": "Ananya Kirti",
5 "width": 17.25,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"K00 (B0,B5)", "x":0, "y":0},
11 {"label":"K01 (B0,B6)", "x":1, "y":0},
12 {"label":"K02 (B0,B7)", "x":2, "y":0},
13 {"label":"K03 (B0,C0)", "x":3, "y":0},
14 {"label":"K04 (B0,C1)", "x":4, "y":0},
15 {"label":"K05 (B0,C2)", "x":5, "y":0},
16 {"label":"K06 (B0,C3)", "x":6, "y":0},
17 {"label":"K07 (B0,C4)", "x":7, "y":0},
18 {"label":"K08 (B0,C5)", "x":8, "y":0},
19 {"label":"K09 (B0,C6)", "x":9, "y":0},
20 {"label":"K0A (B0,C7)", "x":10, "y":0},
21 {"label":"K0B (B0,D0)", "x":11, "y":0},
22 {"label":"K0C (B0,D1)", "x":12, "y":0},
23 {"label":"K0D (B0,D2)", "x":13, "y":0},
24 {"label":"K0E (B0,D3)", "x":14, "y":0},
25 {"label":"K1E (B1,D3)", "x":15.25, "y":0},
26 {"label":"K4E (B4,D3)", "x":16.25, "y":0},
27 {"label":"K10 (B1,B5)", "x":0, "y":1, "w":1.5},
28 {"label":"K11 (B1,B6)", "x":1.5, "y":1},
29 {"label":"K12 (B1,B7)", "x":2.5, "y":1},
30 {"label":"K13 (B1,C0)", "x":3.5, "y":1},
31 {"label":"K14 (B1,C1)", "x":4.5, "y":1},
32 {"label":"K15 (B1,C2)", "x":5.5, "y":1},
33 {"label":"K16 (B1,C3)", "x":6.5, "y":1},
34 {"label":"K17 (B1,C4)", "x":7.5, "y":1},
35 {"label":"K18 (B1,C5)", "x":8.5, "y":1},
36 {"label":"K19 (B1,C6)", "x":9.5, "y":1},
37 {"label":"K1A (B1,C7)", "x":10.5, "y":1},
38 {"label":"K1B (B1,D0)", "x":11.5, "y":1},
39 {"label":"K1C (B1,D1)", "x":12.5, "y":1},
40 {"label":"K1D (B1,D2)", "x":13.5, "y":1, "w":1.5},
41 {"label":"K2E (B2,D3)", "x":15.25, "y":1},
42 {"label":"K3E (B3,D3)", "x":16.25, "y":1},
43 {"label":"K20 (B2,B5)", "x":0, "y":2, "w":1.25},
44 {"label":"K21 (B2,B6)", "x":1.75, "y":2},
45 {"label":"K22 (B2,B7)", "x":2.75, "y":2},
46 {"label":"K23 (B2,C0)", "x":3.75, "y":2},
47 {"label":"K24 (B2,C1)", "x":4.75, "y":2},
48 {"label":"K25 (B2,C2)", "x":5.75, "y":2},
49 {"label":"K26 (B2,C3)", "x":6.75, "y":2},
50 {"label":"K27 (B2,C4)", "x":7.75, "y":2},
51 {"label":"K28 (B2,C5)", "x":8.75, "y":2},
52 {"label":"K29 (B2,C6)", "x":9.75, "y":2},
53 {"label":"K2A (B2,C7)", "x":10.75, "y":2},
54 {"label":"K2B (B2,D0)", "x":11.75, "y":2},
55 {"label":"K2C (B2,D1)", "x":12.75, "y":2, "w":2.25},
56 {"label":"K30 (B3,B5)", "x":0, "y":3, "w":2.25},
57 {"label":"K31 (B3,B6)", "x":2.25, "y":3},
58 {"label":"K32 (B3,B7)", "x":3.25, "y":3},
59 {"label":"K33 (B3,C0)", "x":4.25, "y":3},
60 {"label":"K34 (B3,C1)", "x":5.25, "y":3},
61 {"label":"K35 (B3,C2)", "x":6.25, "y":3},
62 {"label":"K36 (B3,C3)", "x":7.25, "y":3},
63 {"label":"K37 (B3,C4)", "x":8.25, "y":3},
64 {"label":"K38 (B3,C5)", "x":9.25, "y":3},
65 {"label":"K39 (B3,C6)", "x":10.25, "y":3},
66 {"label":"K3A (B3,C7)", "x":11.25, "y":3},
67 {"label":"K3B (B3,D0)", "x":12.25, "y":3, "w":1.75},
68 {"label":"K3C (B3,D1)", "x":14, "y":3},
69 {"label":"K3D (B3,D2)", "x":15.25, "y":3},
70 {"label":"K40 (B4,B5)", "x":0, "y":4, "w":1.5},
71 {"label":"K41 (B4,B6)", "x":1.5, "y":4, "w":1.25},
72 {"label":"K42 (B4,B7)", "x":2.75, "y":4, "w":1.5},
73 {"label":"K46 (B4,C3)", "x":4.25, "y":4, "w":7},
74 {"label":"K49 (B4,C6)", "x":11.25, "y":4, "w":1.5},
75 {"label":"K4A (B4,C7)", "x":12.75, "y":4, "w":1.25},
76 {"label":"K4B (B4,D0)", "x":14.25, "y":4},
77 {"label":"K4C (B4,D1)", "x":15.25, "y":4},
78 {"label":"K4D (B4,D2)", "x":16.25, "y":4}
79 ]
80 }
81 }
82}
diff --git a/keyboards/hp69/keymaps/default/keymap.c b/keyboards/hp69/keymaps/default/keymap.c
new file mode 100644
index 000000000..e7f4d7f75
--- /dev/null
+++ b/keyboards/hp69/keymaps/default/keymap.c
@@ -0,0 +1,33 @@
1/* Copyright 2020 Ananya Kirti
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, KC_BSLS, KC_GRV, KC_INS, KC_HOME,
21 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_BSPC, KC_DEL, KC_END,
22 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,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP,
24 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
25 ),
26 [1] = LAYOUT(
27 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
28 RGB_TOG, RGB_MODE_FORWARD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
29 RGB_MODE_RGBTEST, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______
32 ),
33};
diff --git a/keyboards/hp69/keymaps/default/rules.mk b/keyboards/hp69/keymaps/default/rules.mk
new file mode 100644
index 000000000..628167ff6
--- /dev/null
+++ b/keyboards/hp69/keymaps/default/rules.mk
@@ -0,0 +1 @@
AUDIO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/hp69/keymaps/via/keymap.c b/keyboards/hp69/keymaps/via/keymap.c
new file mode 100644
index 000000000..d47308c8b
--- /dev/null
+++ b/keyboards/hp69/keymaps/via/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2020 Ananya Kirti
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_GESC, 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_BSLS, KC_GRV, KC_MEDIA_PLAY_PAUSE, KC__VOLUP,
21 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_BSPC, KC__MUTE, KC__VOLDOWN,
22 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,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP,
24 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
25 ),
26 [1] = LAYOUT(
27 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______,
28 RGB_TOG, RGB_MODE_FORWARD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
29 RGB_MODE_RGBTEST, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______
32 ),
33 [2] = LAYOUT(
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______
39 ),
40 [3] = LAYOUT(
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______
46 ),
47
48
49}; \ No newline at end of file
diff --git a/keyboards/hp69/keymaps/via/rules.mk b/keyboards/hp69/keymaps/via/rules.mk
new file mode 100644
index 000000000..927ce4521
--- /dev/null
+++ b/keyboards/hp69/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2AUDIO_ENABLE = yes
diff --git a/keyboards/hp69/readme.md b/keyboards/hp69/readme.md
new file mode 100644
index 000000000..ee80c38f5
--- /dev/null
+++ b/keyboards/hp69/readme.md
@@ -0,0 +1,19 @@
1# hp69
2
3![hp69](https://i.imgur.com/hwXvX1Vl.jpg)
4
5A 69 key layout keyboard to emulate apple bottom row with 1.5u 1.25u 1.5u bottom layout
6
7* Keyboard Maintainer: [Ananya Kirti](https://github.com/AnanyaKirti)
8* Hardware Supported: custom stacked acrylic case
9* Hardware Availability: Contact bob at IMKC Discord
10
11Make example for this keyboard (after setting up your build environment):
12
13 make hp69:default
14
15Flashing example for this keyboard:
16
17 make hp69: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).
diff --git a/keyboards/hp69/rules.mk b/keyboards/hp69/rules.mk
new file mode 100644
index 000000000..22eb0fcd9
--- /dev/null
+++ b/keyboards/hp69/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = STM32F303
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
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output \ No newline at end of file