Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pteropus keyboard #20147

Merged
merged 10 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions keyboards/pteropus/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"manufacturer": "hulahermit",
"keyboard_name": "pteropus",
"maintainer": "hulahermit",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["A8", "B15", "B14", "B13", "B12", "B5", "B4", "B3", "A15", "A14"],
"rows": ["B10", "B2", "B1", "B0"]
},
"processor": "STM32F072",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0000",
"vid": "0xFEED"
},
hulahermit marked this conversation as resolved.
Show resolved Hide resolved
"layouts": {
"LAYOUT_split_3x5_3": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0.25 },
{ "matrix": [0, 1], "x": 1, "y": 0.125 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0.125 },
{ "matrix": [0, 4], "x": 4, "y": 0.25 },
{ "matrix": [0, 5], "x": 8, "y": 0.25 },
{ "matrix": [0, 6], "x": 9, "y": 0.125 },
{ "matrix": [0, 7], "x": 10, "y": 0 },
{ "matrix": [0, 8], "x": 11, "y": 0.125 },
{ "matrix": [0, 9], "x": 12, "y": 0.25 },
{ "matrix": [1, 0], "x": 0, "y": 1.25 },
{ "matrix": [1, 1], "x": 1, "y": 1.125 },
{ "matrix": [1, 2], "x": 2, "y": 1 },
{ "matrix": [1, 3], "x": 3, "y": 1.125 },
{ "matrix": [1, 4], "x": 4, "y": 1.25 },
{ "matrix": [1, 5], "x": 8, "y": 1.25 },
{ "matrix": [1, 6], "x": 9, "y": 1.125 },
{ "matrix": [1, 7], "x": 10, "y": 1 },
{ "matrix": [1, 8], "x": 11, "y": 1.125 },
{ "matrix": [1, 9], "x": 12, "y": 1.25 },
{ "matrix": [2, 0], "x": 0, "y": 1.25 },
{ "matrix": [2, 1], "x": 1, "y": 1.125 },
{ "matrix": [2, 2], "x": 2, "y": 1 },
{ "matrix": [2, 3], "x": 3, "y": 1.125 },
{ "matrix": [2, 4], "x": 4, "y": 1.25 },
{ "matrix": [2, 5], "x": 8, "y": 1.25 },
{ "matrix": [2, 6], "x": 9, "y": 1.125 },
{ "matrix": [2, 7], "x": 10, "y": 1 },
{ "matrix": [2, 8], "x": 11, "y": 1.125 },
{ "matrix": [2, 9], "x": 12, "y": 1.25 },
{ "matrix": [3, 2], "x": 3, "y": 3.25 },
{ "matrix": [3, 3], "x": 4, "y": 3.5 },
{ "matrix": [3, 4], "x": 5, "y": 3.75 },
{ "matrix": [3, 5], "x": 7, "y": 3.75 },
{ "matrix": [3, 6], "x": 8, "y": 3.5 },
{ "matrix": [3, 7], "x": 9, "y": 3.25 }
]
}
}
}
27 changes: 27 additions & 0 deletions keyboards/pteropus/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐
* │ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │
* ├───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┤
* │ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │
* ├───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┤
* │ Z │ X │ C │ V │ B │ │ N │ M │ , │ . │ / │
* └───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘
* ┌───┐ ┌───┐
* │GUI├───┐ ┌───┤Alt│
* └───┤Bsp├───┐ ┌───┤Ent├───┘
* └───┤ │ │ ├───┘
* └───┘ └───┘
*/
[0] = LAYOUT_split_3x5_3(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
KC_LGUI, KC_BSPC, KC_SPC, KC_SPC, KC_ENT, KC_RALT
),
};
21 changes: 21 additions & 0 deletions keyboards/pteropus/keymaps/manna-harbour_miryoku/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2019 Manna Harbour
// https://github.com/manna-harbour/miryoku

// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define XXX KC_NO

#define LAYOUT_miryoku(\
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,\
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19,\
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,\
N30, N31, K32, K33, K34, K35, K36, K37, N38, N39\
)\
LAYOUT_split_3x5_3(\
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,\
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19,\
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,\
K32, K33, K34, K35, K36, K37\
)
4 changes: 4 additions & 0 deletions keyboards/pteropus/keymaps/manna-harbour_miryoku/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2019 Manna Harbour
// https://github.com/manna-harbour/miryoku

// This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
28 changes: 28 additions & 0 deletions keyboards/pteropus/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# pteropus keyboard

![pteropus](https://i.imgur.com/5AACuSXh.jpg)

Another Miryoku inspired 36-key non-split keyboard

* Keyboard Maintainer: [hulahermit](https://github.com/hulahermit)
* Hardware Supported: Embeded type-c connector with STM32F072 microcontroller
* Hardware Availability: [pteropus](https://github.com/hulahermit/pteropus_keyboard)

Make example for this keyboard (after setting up your build environment):

make pteropus:default
make pteropus:manna-harbour_miryoku // for Miryoku layout

Flashing example for this keyboard:

make pteropus:default:flash
make pteropus:manna-harbour_miryoku:flash // for Miryoku layout
hulahermit marked this conversation as resolved.
Show resolved Hide resolved

See 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).

## Bootloader

Enter the bootloader:

* **Physical reset and boot button**: Briefly press the button on the back of the PCB
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
hulahermit marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions keyboards/pteropus/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank