aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmssmssms <smssmssms@users.noreply.github.com>2020-12-17 05:45:11 +0000
committerGitHub <noreply@github.com>2020-12-16 21:45:11 -0800
commit7938921f9e8dad53c9b2b6090cc00f8aed92503f (patch)
treed73b901cf4cfa68cc7bc92d02cf0c4f7533c4c43
parent58107ebedf1a2d9a1fb9c0cafc9f994df435d63c (diff)
downloadqmk_firmware-7938921f9e8dad53c9b2b6090cc00f8aed92503f.tar.gz
qmk_firmware-7938921f9e8dad53c9b2b6090cc00f8aed92503f.zip
[Keyboard] Add POS78 keyboard (#11024)
* Add pos78 keyboard * tidy up links * Added missing commas The missing commas were causing a compile error (Travis CI, #41934 failed). * Added trailing commas On lines 10-14, just missed last line (15). * Travis CI errors Trying to correct errors from Travis CI #41951 failed * Corrected(?) TG(_FN) from Travis CI failure * Revert readme.md to original format Fauxpark Co-authored-by: Ryan <fauxpark@gmail.com> * Remove trailing \ from keymap.c Fauxpark Co-authored-by: Ryan <fauxpark@gmail.com> * Change Vendor and Product ID How do I update the Product ID search tool if 0x7878 is used/good? * Add LAYOUT_ortho_6x13 Update keyboards/pos78/pos78.h Co-authored-by: Drashna Jaelre <drashna@live.com> * I bow to drashna's superior knowledge. Update keyboards/pos78/info.json Co-authored-by: Drashna Jaelre <drashna@live.com> * I bow to drashna's superior knowledge. Update keyboards/pos78/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * I bow to drashna's superior knowledge. Update keyboards/pos78/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Added pic * Add picture properly. Update keyboards/pos78/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Remove Bootmagic_enable (fauxpark) Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/pos78/config.h110
-rw-r--r--keyboards/pos78/info.json19
-rw-r--r--keyboards/pos78/keymaps/default/keymap.c45
-rw-r--r--keyboards/pos78/keymaps/default/readme.md1
-rw-r--r--keyboards/pos78/pos78.c17
-rw-r--r--keyboards/pos78/pos78.h43
-rw-r--r--keyboards/pos78/readme.md17
-rw-r--r--keyboards/pos78/rules.mk22
8 files changed, 274 insertions, 0 deletions
diff --git a/keyboards/pos78/config.h b/keyboards/pos78/config.h
new file mode 100644
index 000000000..c307c6f5c
--- /dev/null
+++ b/keyboards/pos78/config.h
@@ -0,0 +1,110 @@
1/*
2Copyright 2020 smssmssms
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 0xFEED
24#define PRODUCT_ID 0x7878
25#define DEVICE_VER 0x0001
26#define MANUFACTURER smssmssms
27#define PRODUCT POS78
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 13
32
33/*
34 * Keyboard Matrix Assignments
35 *
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 { F7, F6, F5, F4, F1, F0 }
43#define MATRIX_COL_PINS { C7, D6, B7 ,B6, B5, E6, C6, D0, D1, D3, D2, B1, B2 }
44#define UNUSED_PINS
45
46/* COL2ROW, ROW2COL */
47#define DIODE_DIRECTION ROW2COL
48
49/*
50 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
51 */
52#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
53
54/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55#define DEBOUNCE 5
56
57/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
58#define LOCKING_SUPPORT_ENABLE
59/* Locking resynchronize hack */
60#define LOCKING_RESYNC_ENABLE
61
62/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
63 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
64 */
65//#define GRAVE_ESC_CTRL_OVERRIDE
66
67/*
68 * Force NKRO
69 *
70 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
71 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
72 * makefile for this to work.)
73 *
74 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
75 * until the next keyboard reset.
76 *
77 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
78 * fully operational during normal computer usage.
79 *
80 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
81 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
82 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
83 * power-up.
84 *
85 */
86//#define FORCE_NKRO
87
88/*
89 * Feature disable options
90 * These options are also useful to firmware size reduction.
91 */
92
93/* disable debug print */
94//#define NO_DEBUG
95
96/* disable print */
97//#define NO_PRINT
98
99/* disable action features */
100//#define NO_ACTION_LAYER
101//#define NO_ACTION_TAPPING
102//#define NO_ACTION_ONESHOT
103
104/* disable these deprecated features by default */
105#define NO_ACTION_MACRO
106#define NO_ACTION_FUNCTION
107
108/* Bootmagic Lite key configuration */
109//#define BOOTMAGIC_LITE_ROW 0
110//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/pos78/info.json b/keyboards/pos78/info.json
new file mode 100644
index 000000000..cbe894fd9
--- /dev/null
+++ b/keyboards/pos78/info.json
@@ -0,0 +1,19 @@
1{
2 "keyboard_name": "pos78",
3 "url": "https://github.com/smssmssms/pos78.git",
4 "maintainer": "smssmssms",
5 "width": 13,
6 "height": 6,
7 "layouts": {
8 "LAYOUT_ortho_6x13": {
9 "layout": [
10 {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0},
11 {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":12, "y":1},
12 {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2},
13 {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}, {"x":12, "y":3},
14 {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4}, {"x":5, "y":4}, {"x":6, "y":4}, {"x":7, "y":4}, {"x":8, "y":4}, {"x":9, "y":4}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4},
15 {"x":0, "y":5}, {"x":1, "y":5}, {"x":2, "y":5}, {"x":3, "y":5}, {"x":4, "y":5}, {"x":5, "y":5}, {"x":6, "y":5}, {"x":7, "y":5}, {"x":8, "y":5}, {"x":9, "y":5}, {"x":10, "y":5}, {"x":11, "y":5}, {"x":12, "y":5}
16 ]
17 }
18 }
19}
diff --git a/keyboards/pos78/keymaps/default/keymap.c b/keyboards/pos78/keymaps/default/keymap.c
new file mode 100644
index 000000000..9d4b43001
--- /dev/null
+++ b/keyboards/pos78/keymaps/default/keymap.c
@@ -0,0 +1,45 @@
1/* Copyright 2020 smssmssms
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#include "keymap_uk.h"
18
19// Defines names for use in layer keycodes and the keymap
20enum layer_names {
21 _BASE,
22 _FN
23};
24
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27 /* Base */
28 [_BASE] = LAYOUT_ortho_6x13(
29 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_BSPC, KC_DEL,
30 UK_GRV, UK_1, UK_2, UK_3, UK_4, UK_5, UK_6, UK_7, UK_8, UK_9, UK_0, UK_MINS, UK_EQL,
31 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, UK_LBRC, UK_RBRC,
32 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, UK_SCLN, UK_QUOT, UK_HASH,
33 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, UK_COMM, UK_DOT, UK_SLSH, UK_BSLS, KC_RSFT,
34 KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, KC_SPC, TG(_FN), KC_MUTE, KC_ENT, KC_ALGR, KC_RGUI, KC_MENU, KC_HOME, KC_END
35 ),
36
37 [_FN] = LAYOUT_ortho_6x13(
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 KC_SLEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12,
40 _______, XXXXXXX, KC_WAKE, KC_MYCM, XXXXXXX, XXXXXXX, KC_AGAIN, KC_VOLU, KC_INS, KC_PWR, KC_PSCR, XXXXXXX, KC_PGUP,
41 _______, XXXXXXX, XXXXXXX, XXXXXXX, KC_FIND, XXXXXXX, KC_HELP, KC_VOLD, KC_CALC, KC_BRIU, XXXXXXX, KC_UP, KC_PGDN,
42 _______, KC_UNDO, KC_CUT, KC_COPY, KC_PASTE, RESET, XXXXXXX, KC_MAIL, UK_COMM, KC_BRID, KC_LEFT, KC_DOWN, KC_RIGHT,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
44 )
45};
diff --git a/keyboards/pos78/keymaps/default/readme.md b/keyboards/pos78/keymaps/default/readme.md
new file mode 100644
index 000000000..c313876fc
--- /dev/null
+++ b/keyboards/pos78/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default (UK) keymap for pos78
diff --git a/keyboards/pos78/pos78.c b/keyboards/pos78/pos78.c
new file mode 100644
index 000000000..f2e98aba0
--- /dev/null
+++ b/keyboards/pos78/pos78.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 smssmssms
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 "pos78.h"
diff --git a/keyboards/pos78/pos78.h b/keyboards/pos78/pos78.h
new file mode 100644
index 000000000..2d5681add
--- /dev/null
+++ b/keyboards/pos78/pos78.h
@@ -0,0 +1,43 @@
1/* Copyright 2020 smssmssms
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#define LAYOUT_ortho_6x13( \
30 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, \
31 k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25, \
32 k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, k38, \
33 k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k50, k51, \
34 k52, k53, k54, k55, k56, k57, k58, k59, k60, k61, k62, k63, k64, \
35 k65, k66, k67, k68, k69, k70, k71, k72, k73, k74, k75, k76, k77 \
36) { \
37 {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12}, \
38 {k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k25}, \
39 {k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k37, k38}, \
40 {k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k50, k51}, \
41 {k52, k53, k54, k55, k56, k57, k58, k59, k60, k61, k62, k63, k64}, \
42 {k65, k66, k67, k68, k69, k70, k71, k72, k73, k74, k75, k76, k77} \
43}
diff --git a/keyboards/pos78/readme.md b/keyboards/pos78/readme.md
new file mode 100644
index 000000000..3a85518a0
--- /dev/null
+++ b/keyboards/pos78/readme.md
@@ -0,0 +1,17 @@
1# pos78
2
3![](https://i.imgur.com/ml5cPDS.png)
4
5* Keyboard Maintainer: [smssmssms](https://github.com/smssmssms)
6* Hardware Supported: ATMEGA 32U4 (Adafruit Itsy Bitsy 5v)
7* Hardware Availability: 1980-90's version of the [Partner Tech Corp KB-78](https://www.partner.com.tw/wp-content/uploads/2019/09/KB-78-G-78-1-190911.pdf); a 78 key Point-Of-Sale ortholinear keyboard conversion
8
9Make example for this keyboard (after setting up your build environment):
10
11 make pos78:default
12
13Flashing example for this keyboard:
14
15 make pos78:default:flash
16
17See 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/pos78/rules.mk b/keyboards/pos78/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/pos78/rules.mk
@@ -0,0 +1,22 @@
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 = 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