mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
Add Större keyboard
This commit is contained in:
parent
b7468f4785
commit
0ac27d516b
29
keyboards/sthlmkb/storre/config.h
Normal file
29
keyboards/sthlmkb/storre/config.h
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
Copyright 2024 mohoyt
|
||||
|
||||
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
|
||||
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 6
|
||||
#define MATRIX_COLS 16
|
||||
#define MATRIX_MUX_COLS 4
|
||||
|
||||
#define MATRIX_ROW_PINS { D2, B6, B2, B3, B1, F7 }
|
||||
#define MATRIX_COL_PINS { }
|
||||
#define MATRIX_COL_MUX_PINS { D7, E6, B4, B5 }
|
||||
|
509
keyboards/sthlmkb/storre/info.json
Normal file
509
keyboards/sthlmkb/storre/info.json
Normal file
@ -0,0 +1,509 @@
|
||||
{
|
||||
"manufacturer": "STHLM kb",
|
||||
"keyboard_name": "storre",
|
||||
"url": "https://github.com/mohoyt/storre",
|
||||
"maintainer": "mohoyt",
|
||||
"development_board": "promicro",
|
||||
"features": {
|
||||
"bootmagic": false,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"debug": false,
|
||||
"mousekey": false,
|
||||
"encoder": true,
|
||||
"oled": true
|
||||
},
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x5657",
|
||||
"vid": "0x8086"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_base": {
|
||||
"layout": [
|
||||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 1], "x": 1.5, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 2], "x": 2.5, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 3], "x": 3.5, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 4], "x": 4.5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 5], "x": 6, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 6], "x": 7, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 7], "x": 8, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 8], "x": 9, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 9], "x": 10.5, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 10], "x": 11.5, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 11], "x": 12.5, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 12], "x": 13.5, "y": 0},
|
||||
{"label": "F13", "matrix": [0, 13], "x": 15, "y": 0},
|
||||
|
||||
{"label": "Grav", "matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"label": "Backspace", "matrix": [1, 14], "x": 13, "y": 1, "w": 2},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 15, "y": 1},
|
||||
|
||||
{"label": "ENC1", "matrix": [2, 0], "x": 16.25, "y": 1},
|
||||
{"label": "ENC2", "matrix": [2, 1], "x": 17.5, "y": 1},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 2], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 3], "x": 1.5, "y": 2},
|
||||
{"label": "W", "matrix": [2, 4], "x": 2.5, "y": 2},
|
||||
{"label": "E", "matrix": [2, 5], "x": 3.5, "y": 2},
|
||||
{"label": "R", "matrix": [2, 6], "x": 4.5, "y": 2},
|
||||
{"label": "T", "matrix": [2, 7], "x": 5.5, "y": 2},
|
||||
{"label": "Y", "matrix": [2, 8], "x": 6.5, "y": 2},
|
||||
{"label": "U", "matrix": [2, 9], "x": 7.5, "y": 2},
|
||||
{"label": "I", "matrix": [2, 10], "x": 8.5, "y": 2},
|
||||
{"label": "O", "matrix": [2, 11], "x": 9.5, "y": 2},
|
||||
{"label": "P", "matrix": [2, 12], "x": 10.5, "y": 2},
|
||||
{"label": "{", "matrix": [2, 13], "x": 11.5, "y": 2},
|
||||
{"label": "}", "matrix": [2, 14], "x": 12.5, "y": 2},
|
||||
{"label": "|", "matrix": [2, 15], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "Delete", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
|
||||
{"label": "Caps Lock", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "S", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "D", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "F", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "G", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "H", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "J", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "L", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": ";", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "\"", "matrix": [3, 13], "x": 11.75, "y": 3},
|
||||
{"label": "Enter", "matrix": [3, 14], "x": 12.75, "y": 3, "w": 2.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 15, "y": 3},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4, "w": 2.25},
|
||||
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "<", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": ">", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "?", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "Up", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "PgDn", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"label": "Cmd", "matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"label": "Space", "matrix": [5, 6], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"label": "Cmd", "matrix": [5, 10], "x": 10, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 11], "x": 11.25, "y": 5, "w": 1.25},
|
||||
|
||||
{"label": "Left", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "Down", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "Right", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_splits": {
|
||||
"layout": [
|
||||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 1], "x": 1.5, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 2], "x": 2.5, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 3], "x": 3.5, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 4], "x": 4.5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 5], "x": 6, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 6], "x": 7, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 7], "x": 8, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 8], "x": 9, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 9], "x": 10.5, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 10], "x": 11.5, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 11], "x": 12.5, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 12], "x": 13.5, "y": 0},
|
||||
{"label": "F13", "matrix": [0, 13], "x": 15, "y": 0},
|
||||
|
||||
{"label": "Grav", "matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"label": "Backspace", "matrix": [1, 13], "x": 13, "y": 1},
|
||||
{"label": "Delete", "matrix": [1, 14], "x": 14, "y": 1},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 15, "y": 1},
|
||||
|
||||
{"label": "ENC1", "matrix": [2, 0], "x": 16.25, "y": 1},
|
||||
{"label": "ENC2", "matrix": [2, 1], "x": 17.5, "y": 1},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 2], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 3], "x": 1.5, "y": 2},
|
||||
{"label": "W", "matrix": [2, 4], "x": 2.5, "y": 2},
|
||||
{"label": "E", "matrix": [2, 5], "x": 3.5, "y": 2},
|
||||
{"label": "R", "matrix": [2, 6], "x": 4.5, "y": 2},
|
||||
{"label": "T", "matrix": [2, 7], "x": 5.5, "y": 2},
|
||||
{"label": "Y", "matrix": [2, 8], "x": 6.5, "y": 2},
|
||||
{"label": "U", "matrix": [2, 9], "x": 7.5, "y": 2},
|
||||
{"label": "I", "matrix": [2, 10], "x": 8.5, "y": 2},
|
||||
{"label": "O", "matrix": [2, 11], "x": 9.5, "y": 2},
|
||||
{"label": "P", "matrix": [2, 12], "x": 10.5, "y": 2},
|
||||
{"label": "{", "matrix": [2, 13], "x": 11.5, "y": 2},
|
||||
{"label": "}", "matrix": [2, 14], "x": 12.5, "y": 2},
|
||||
{"label": "|", "matrix": [2, 15], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "Delete", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
|
||||
{"label": "Caps Lock", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "S", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "D", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "F", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "G", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "H", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "J", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "L", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": ";", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "\"", "matrix": [3, 13], "x": 11.75, "y": 3},
|
||||
{"label": "Enter", "matrix": [3, 14], "x": 12.75, "y": 3, "w": 2.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 15, "y": 3},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"label": "/", "matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "<", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": ">", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "?", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "Up", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "PgDn", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"label": "Cmd", "matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"label": "Space", "matrix": [5, 6], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"label": "Cmd", "matrix": [5, 10], "x": 10, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 11], "x": 11.25, "y": 5, "w": 1.25},
|
||||
|
||||
{"label": "Left", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "Down", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "Right", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_iso": {
|
||||
"layout": [
|
||||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 1], "x": 1.5, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 2], "x": 2.5, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 3], "x": 3.5, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 4], "x": 4.5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 5], "x": 6, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 6], "x": 7, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 7], "x": 8, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 8], "x": 9, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 9], "x": 10.5, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 10], "x": 11.5, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 11], "x": 12.5, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 12], "x": 13.5, "y": 0},
|
||||
{"label": "F13", "matrix": [0, 13], "x": 15, "y": 0},
|
||||
|
||||
{"label": "Grav", "matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"label": "Backspace", "matrix": [1, 14], "x": 13, "y": 0, "w": 2},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 15, "y": 1},
|
||||
|
||||
{"label": "ENC1", "matrix": [2, 0], "x": 16.25, "y": 1},
|
||||
{"label": "ENC2", "matrix": [2, 1], "x": 17.5, "y": 1},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 2], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 3], "x": 1.5, "y": 2},
|
||||
{"label": "W", "matrix": [2, 4], "x": 2.5, "y": 2},
|
||||
{"label": "E", "matrix": [2, 5], "x": 3.5, "y": 2},
|
||||
{"label": "R", "matrix": [2, 6], "x": 4.5, "y": 2},
|
||||
{"label": "T", "matrix": [2, 7], "x": 5.5, "y": 2},
|
||||
{"label": "Y", "matrix": [2, 8], "x": 6.5, "y": 2},
|
||||
{"label": "U", "matrix": [2, 9], "x": 7.5, "y": 2},
|
||||
{"label": "I", "matrix": [2, 10], "x": 8.5, "y": 2},
|
||||
{"label": "O", "matrix": [2, 11], "x": 9.5, "y": 2},
|
||||
{"label": "P", "matrix": [2, 12], "x": 10.5, "y": 2},
|
||||
{"label": "{", "matrix": [2, 13], "x": 11.5, "y": 2},
|
||||
{"label": "}", "matrix": [2, 14], "x": 12.5, "y": 2},
|
||||
{"label": "|", "matrix": [2, 15], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "Delete", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
|
||||
{"label": "Caps Lock", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "S", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "D", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "F", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "G", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "H", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "J", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "L", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": ";", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "\"", "matrix": [3, 12], "x": 11.75, "y": 2},
|
||||
{"label": "|", "matrix": [3, 13], "x": 12.75, "y": 2},
|
||||
{"label": "Enter", "matrix": [3, 14], "x": 13.75, "y": 1, "w": 1.25, "h": 2},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 15, "y": 3},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"label": "/", "matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "<", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": ">", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "?", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "Up", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "PgDn", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"label": "Cmd", "matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"label": "Space", "matrix": [5, 6], "x": 3.75, "y": 5, "w": 6.25},
|
||||
{"label": "Cmd", "matrix": [5, 10], "x": 10, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 11], "x": 11.25, "y": 5, "w": 1.25},
|
||||
|
||||
{"label": "Left", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "Down", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "Right", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_split_space": {
|
||||
"layout": [
|
||||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 1], "x": 1.5, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 2], "x": 2.5, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 3], "x": 3.5, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 4], "x": 4.5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 5], "x": 6, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 6], "x": 7, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 7], "x": 8, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 8], "x": 9, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 9], "x": 10.5, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 10], "x": 11.5, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 11], "x": 12.5, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 12], "x": 13.5, "y": 0},
|
||||
{"label": "F13", "matrix": [0, 13], "x": 15, "y": 0},
|
||||
|
||||
{"label": "Grav", "matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"label": "Backspace", "matrix": [1, 13], "x": 13, "y": 1},
|
||||
{"label": "Delete", "matrix": [1, 14], "x": 14, "y": 1},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 15, "y": 1},
|
||||
|
||||
{"label": "ENC1", "matrix": [2, 0], "x": 16.25, "y": 1},
|
||||
{"label": "ENC2", "matrix": [2, 1], "x": 17.5, "y": 1},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 2], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 3], "x": 1.5, "y": 2},
|
||||
{"label": "W", "matrix": [2, 4], "x": 2.5, "y": 2},
|
||||
{"label": "E", "matrix": [2, 5], "x": 3.5, "y": 2},
|
||||
{"label": "R", "matrix": [2, 6], "x": 4.5, "y": 2},
|
||||
{"label": "T", "matrix": [2, 7], "x": 5.5, "y": 2},
|
||||
{"label": "Y", "matrix": [2, 8], "x": 6.5, "y": 2},
|
||||
{"label": "U", "matrix": [2, 9], "x": 7.5, "y": 2},
|
||||
{"label": "I", "matrix": [2, 10], "x": 8.5, "y": 2},
|
||||
{"label": "O", "matrix": [2, 11], "x": 9.5, "y": 2},
|
||||
{"label": "P", "matrix": [2, 12], "x": 10.5, "y": 2},
|
||||
{"label": "{", "matrix": [2, 13], "x": 11.5, "y": 2},
|
||||
{"label": "}", "matrix": [2, 14], "x": 12.5, "y": 2},
|
||||
{"label": "|", "matrix": [2, 15], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "Delete", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
|
||||
{"label": "Caps Lock", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "S", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "D", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "F", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "G", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "H", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "J", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "L", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": ";", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "\"", "matrix": [3, 13], "x": 11.75, "y": 3},
|
||||
{"label": "Enter", "matrix": [3, 14], "x": 12.75, "y": 3, "w": 2.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 15, "y": 3},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"label": "/", "matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "<", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": ">", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "?", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "Up", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "PgDn", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 1], "x": 1.25, "y": 5, "w": 1.25},
|
||||
{"label": "Cmd", "matrix": [5, 2], "x": 2.5, "y": 5, "w": 1.25},
|
||||
{"label": "Space", "matrix": [5, 4], "x": 3.75, "y": 4, "w": 2.25},
|
||||
{"label": "Super", "matrix": [5, 6], "x": 6, "y": 4, "w": 1.25},
|
||||
{"label": "Space", "matrix": [5, 8], "x": 7.25, "y": 4, "w": 2.75},
|
||||
{"label": "Cmd", "matrix": [5, 10], "x": 10, "y": 5, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 11], "x": 11.25, "y": 5, "w": 1.25},
|
||||
|
||||
{"label": "Left", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "Down", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "Right", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
},
|
||||
"LAYOUT_7u_space": {
|
||||
"layout": [
|
||||
{"label": "Esc", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 1], "x": 1.5, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 2], "x": 2.5, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 3], "x": 3.5, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 4], "x": 4.5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 5], "x": 6, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 6], "x": 7, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 7], "x": 8, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 8], "x": 9, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 9], "x": 10.5, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 10], "x": 11.5, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 11], "x": 12.5, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 12], "x": 13.5, "y": 0},
|
||||
{"label": "F13", "matrix": [0, 13], "x": 15, "y": 0},
|
||||
|
||||
{"label": "Grav", "matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
|
||||
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
|
||||
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
|
||||
{"label": "Backspace", "matrix": [1, 13], "x": 13, "y": 1},
|
||||
{"label": "Delete", "matrix": [1, 14], "x": 14, "y": 1},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 15, "y": 1},
|
||||
|
||||
{"label": "ENC1", "matrix": [2, 0], "x": 16.25, "y": 1},
|
||||
{"label": "ENC2", "matrix": [2, 1], "x": 17.5, "y": 1},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 2], "x": 0, "y": 2, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 3], "x": 1.5, "y": 2},
|
||||
{"label": "W", "matrix": [2, 4], "x": 2.5, "y": 2},
|
||||
{"label": "E", "matrix": [2, 5], "x": 3.5, "y": 2},
|
||||
{"label": "R", "matrix": [2, 6], "x": 4.5, "y": 2},
|
||||
{"label": "T", "matrix": [2, 7], "x": 5.5, "y": 2},
|
||||
{"label": "Y", "matrix": [2, 8], "x": 6.5, "y": 2},
|
||||
{"label": "U", "matrix": [2, 9], "x": 7.5, "y": 2},
|
||||
{"label": "I", "matrix": [2, 10], "x": 8.5, "y": 2},
|
||||
{"label": "O", "matrix": [2, 11], "x": 9.5, "y": 2},
|
||||
{"label": "P", "matrix": [2, 12], "x": 10.5, "y": 2},
|
||||
{"label": "{", "matrix": [2, 13], "x": 11.5, "y": 2},
|
||||
{"label": "}", "matrix": [2, 14], "x": 12.5, "y": 2},
|
||||
{"label": "|", "matrix": [2, 15], "x": 13.5, "y": 2, "w": 1.5},
|
||||
{"label": "Delete", "matrix": [3, 0], "x": 15, "y": 2},
|
||||
|
||||
{"label": "Caps Lock", "matrix": [3, 1], "x": 0, "y": 3, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 2], "x": 1.75, "y": 3},
|
||||
{"label": "S", "matrix": [3, 3], "x": 2.75, "y": 3},
|
||||
{"label": "D", "matrix": [3, 4], "x": 3.75, "y": 3},
|
||||
{"label": "F", "matrix": [3, 5], "x": 4.75, "y": 3},
|
||||
{"label": "G", "matrix": [3, 6], "x": 5.75, "y": 3},
|
||||
{"label": "H", "matrix": [3, 7], "x": 6.75, "y": 3},
|
||||
{"label": "J", "matrix": [3, 8], "x": 7.75, "y": 3},
|
||||
{"label": "K", "matrix": [3, 9], "x": 8.75, "y": 3},
|
||||
{"label": "L", "matrix": [3, 10], "x": 9.75, "y": 3},
|
||||
{"label": ";", "matrix": [3, 11], "x": 10.75, "y": 3},
|
||||
{"label": "\"", "matrix": [3, 13], "x": 11.75, "y": 3},
|
||||
{"label": "Enter", "matrix": [3, 14], "x": 12.75, "y": 3, "w": 2.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 15, "y": 3},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
|
||||
{"label": "/", "matrix": [4, 1], "x": 1.25, "y": 4},
|
||||
{"label": "Z", "matrix": [4, 2], "x": 2.25, "y": 4},
|
||||
{"label": "X", "matrix": [4, 3], "x": 3.25, "y": 4},
|
||||
{"label": "C", "matrix": [4, 4], "x": 4.25, "y": 4},
|
||||
{"label": "V", "matrix": [4, 5], "x": 5.25, "y": 4},
|
||||
{"label": "B", "matrix": [4, 6], "x": 6.25, "y": 4},
|
||||
{"label": "N", "matrix": [4, 7], "x": 7.25, "y": 4},
|
||||
{"label": "M", "matrix": [4, 8], "x": 8.25, "y": 4},
|
||||
{"label": "<", "matrix": [4, 9], "x": 9.25, "y": 4},
|
||||
{"label": ">", "matrix": [4, 10], "x": 10.25, "y": 4},
|
||||
{"label": "?", "matrix": [4, 11], "x": 11.25, "y": 4},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4, "w": 1.75},
|
||||
{"label": "Up", "matrix": [4, 13], "x": 14, "y": 4},
|
||||
{"label": "PgDn", "matrix": [4, 14], "x": 15, "y": 4},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 4, "w": 1.5},
|
||||
{"label": "Alt", "matrix": [5, 1], "x": 1.5, "y": 4},
|
||||
{"label": "Cmd", "matrix": [5, 2], "x": 2.5, "y": 4, "w": 1.5},
|
||||
{"label": "Space", "matrix": [5, 6], "x": 4, "y": 4, "w": 7},
|
||||
{"label": "Cmd", "matrix": [5, 11], "x": 11, "y": 4, "w": 1.5},
|
||||
|
||||
{"label": "Left", "matrix": [5, 12], "x": 13, "y": 5},
|
||||
{"label": "Down", "matrix": [5, 13], "x": 14, "y": 5},
|
||||
{"label": "Right", "matrix": [5, 14], "x": 15, "y": 5}
|
||||
]
|
||||
}
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "D4", "pin_b": "C6"},
|
||||
{"pin_a": "F4", "pin_b": "F5"}
|
||||
]
|
||||
}
|
||||
}
|
34
keyboards/sthlmkb/storre/keymaps/default/keymap.c
Normal file
34
keyboards/sthlmkb/storre/keymaps/default/keymap.c
Normal file
@ -0,0 +1,34 @@
|
||||
/* Copyright 2024 mohoyt
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT_base(
|
||||
KC_ESC, 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_F13,
|
||||
KC_GRV, 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,
|
||||
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_END, KC_MPLY,
|
||||
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_PGUP,KC_MUTE,
|
||||
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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT ),
|
||||
|
||||
[1] = LAYOUT_base(
|
||||
KC_ESC, 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_F13,
|
||||
KC_GRV, 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,
|
||||
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_END, KC_MPLY,
|
||||
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_PGUP,KC_MUTE,
|
||||
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_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT )
|
||||
};
|
95
keyboards/sthlmkb/storre/matrix.c
Normal file
95
keyboards/sthlmkb/storre/matrix.c
Normal file
@ -0,0 +1,95 @@
|
||||
/* Copyright 2024 mohoyt
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include "quantum.h"
|
||||
|
||||
#define COL_SHIFTER ((uint32_t)1)
|
||||
|
||||
// Column pins
|
||||
static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
static const uint8_t col_pins[MATRIX_MUX_COLS] = MATRIX_COL_MUX_PINS;
|
||||
|
||||
// Internal functions
|
||||
|
||||
static void init_pins(void) {
|
||||
// Set cols to outputs, low
|
||||
for (uint8_t pin = 0; pin < MATRIX_MUX_COLS; pin++) {
|
||||
setPinOutput(col_pins[pin]);
|
||||
}
|
||||
|
||||
// Unselect cols
|
||||
for (uint8_t bit = 0; bit < MATRIX_MUX_COLS; bit++) {
|
||||
writePinLow(col_pins[bit]);
|
||||
}
|
||||
|
||||
// Set rows to input, pullup
|
||||
for (uint8_t pin = 0; pin < MATRIX_ROWS; pin++) {
|
||||
setPinInputHigh(row_pins[pin]);
|
||||
}
|
||||
}
|
||||
|
||||
static void select_col(uint8_t col)
|
||||
{
|
||||
for (uint8_t bit = 0; bit < MATRIX_MUX_COLS; bit++) {
|
||||
uint8_t state = (col & (0b1 << bit)) >> bit;
|
||||
writePin(col_pins[bit], state);
|
||||
}
|
||||
}
|
||||
|
||||
static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col)
|
||||
{
|
||||
bool matrix_changed = false;
|
||||
select_col(current_col);
|
||||
wait_us(5);
|
||||
|
||||
// Read each row sequentially
|
||||
for(uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++)
|
||||
{
|
||||
matrix_row_t last_row_value = current_matrix[row_index];
|
||||
|
||||
if (!readPin(row_pins[row_index]))
|
||||
{
|
||||
current_matrix[row_index] |= (COL_SHIFTER << current_col);
|
||||
}
|
||||
else
|
||||
{
|
||||
current_matrix[row_index] &= ~(COL_SHIFTER << current_col);
|
||||
}
|
||||
|
||||
if ((last_row_value != current_matrix[row_index]) && !(matrix_changed))
|
||||
{
|
||||
matrix_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
return matrix_changed;
|
||||
}
|
||||
|
||||
// Matrix scan functions
|
||||
|
||||
void matrix_init_custom(void) {
|
||||
init_pins();
|
||||
}
|
||||
|
||||
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||
bool changed = false;
|
||||
|
||||
//Set col, read rows
|
||||
for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) {
|
||||
changed |= read_rows_on_col(current_matrix, current_col);
|
||||
}
|
||||
|
||||
return (uint8_t)changed;
|
||||
}
|
15
keyboards/sthlmkb/storre/readme.md
Normal file
15
keyboards/sthlmkb/storre/readme.md
Normal file
@ -0,0 +1,15 @@
|
||||
# storre
|
||||
|
||||
![Storre](https://i.imgur.com/flyrutPh.jpeg)
|
||||
|
||||
Större is an easy to build 75%ish keyboard using only through hole components. It uses a separate microcontroller (like the Pro Micro or Elite C) to enable flexibility in connectivity and to further simplify the soldering experience (no more tricksy USB ports).
|
||||
|
||||
* Keyboard Maintainer: [mohoyt](https://github.com/mohoyt)
|
||||
* Hardware Supported: större, Pro Micro, Elite-C, Puchi-C, Nice!Nano and more...
|
||||
* Hardware Availability: [sthlm kb](https://sthlmkb.com)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make sthlmkb/storre:default
|
||||
|
||||
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).
|
8
keyboards/sthlmkb/storre/rules.mk
Normal file
8
keyboards/sthlmkb/storre/rules.mk
Normal file
@ -0,0 +1,8 @@
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
CUSTOM_MATRIX = lite # Lite custom matrix
|
||||
|
||||
|
||||
# Project specific files
|
||||
SRC += matrix.c
|
36
keyboards/sthlmkb/storre/storre.c
Normal file
36
keyboards/sthlmkb/storre/storre.c
Normal file
@ -0,0 +1,36 @@
|
||||
/* Copyright 2024 mohoyt
|
||||
*
|
||||
* 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/>.
|
||||
*/
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_MPRV);
|
||||
} else {
|
||||
tap_code(KC_MNXT);
|
||||
}
|
||||
} else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code_delay(KC_VOLD, 10);
|
||||
} else {
|
||||
tap_code_delay(KC_VOLU, 10);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user