summaryrefslogtreecommitdiffstats
path: root/keyboards/kb_elmo/m0116_usb
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kb_elmo/m0116_usb')
-rw-r--r--keyboards/kb_elmo/m0116_usb/config.h53
-rw-r--r--keyboards/kb_elmo/m0116_usb/info.json94
-rw-r--r--keyboards/kb_elmo/m0116_usb/keymaps/default/keymap.c36
-rw-r--r--keyboards/kb_elmo/m0116_usb/m0116_usb.c17
-rw-r--r--keyboards/kb_elmo/m0116_usb/m0116_usb.h42
-rw-r--r--keyboards/kb_elmo/m0116_usb/readme.md15
-rw-r--r--keyboards/kb_elmo/m0116_usb/rules.mk25
7 files changed, 282 insertions, 0 deletions
diff --git a/keyboards/kb_elmo/m0116_usb/config.h b/keyboards/kb_elmo/m0116_usb/config.h
new file mode 100644
index 0000000000..693d3ab6a8
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/config.h
@@ -0,0 +1,53 @@
+/*
+Copyright 2020 kb-elmo<mail@elmo.space>
+
+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
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xA68C
+#define PRODUCT_ID 0x8F7E
+#define DEVICE_VER 0x0001
+#define MANUFACTURER kb-elmo
+#define PRODUCT M0116 USB
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 18
+
+/*
+ * Keyboard Matrix Assignments
+ */
+#define MATRIX_ROW_PINS { B1, A0, B2, A2, A1 }
+#define MATRIX_COL_PINS { D6, D5, D1, D0, D7, C0, C1, C2, C3, C4, C5, C6, C7, A7, A6, A5, A4, A3 }
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL*/
+#define DIODE_DIRECTION COL2ROW
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+/* Bootmagic Lite key configuration */
+#define BOOTMAGIC_LITE_ROW 4
+#define BOOTMAGIC_LITE_COLUMN 5
diff --git a/keyboards/kb_elmo/m0116_usb/info.json b/keyboards/kb_elmo/m0116_usb/info.json
new file mode 100644
index 0000000000..1a55664d18
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/info.json
@@ -0,0 +1,94 @@
+{
+ "keyboard_name": "m0116 usb",
+ "url": "https://github.com/kb-elmo/m0116_usb",
+ "maintainer": "kb-elmo",
+ "width": 19.25,
+ "height": 6.15,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"x":5, "y":0, "w":2},
+ {"x":0, "y":1.15},
+ {"x":1, "y":1.15},
+ {"x":2, "y":1.15},
+ {"x":3, "y":1.15},
+ {"x":4, "y":1.15},
+ {"x":5, "y":1.15},
+ {"x":6, "y":1.15},
+ {"x":7, "y":1.15},
+ {"x":8, "y":1.15},
+ {"x":9, "y":1.15},
+ {"x":10, "y":1.15},
+ {"x":11, "y":1.15},
+ {"x":12, "y":1.15},
+ {"x":13, "y":1.15, "w":1.5},
+ {"x":15.25, "y":1.15},
+ {"x":16.25, "y":1.15},
+ {"x":17.25, "y":1.15},
+ {"x":18.25, "y":1.15},
+ {"x":0, "y":2.15, "w":1.5},
+ {"x":1.5, "y":2.15},
+ {"x":2.5, "y":2.15},
+ {"x":3.5, "y":2.15},
+ {"x":4.5, "y":2.15},
+ {"x":5.5, "y":2.15},
+ {"x":6.5, "y":2.15},
+ {"x":7.5, "y":2.15},
+ {"x":8.5, "y":2.15},
+ {"x":9.5, "y":2.15},
+ {"x":10.5, "y":2.15},
+ {"x":11.5, "y":2.15},
+ {"x":12.5, "y":2.15},
+ {"x":15.25, "y":2.15},
+ {"x":16.25, "y":2.15},
+ {"x":17.25, "y":2.15},
+ {"x":18.25, "y":2.15},
+ {"x":0, "y":3.15, "w":1.75},
+ {"x":1.75, "y":3.15},
+ {"x":2.75, "y":3.15},
+ {"x":3.75, "y":3.15},
+ {"x":4.75, "y":3.15},
+ {"x":5.75, "y":3.15},
+ {"x":6.75, "y":3.15},
+ {"x":7.75, "y":3.15},
+ {"x":8.75, "y":3.15},
+ {"x":9.75, "y":3.15},
+ {"x":10.75, "y":3.15},
+ {"x":11.75, "y":3.15},
+ {"x":13.5, "y":2.15, "h":2},
+ {"x":15.25, "y":3.15},
+ {"x":16.25, "y":3.15},
+ {"x":17.25, "y":3.15},
+ {"x":18.25, "y":3.15},
+ {"x":0, "y":4.15, "w":2.25},
+ {"x":2.25, "y":4.15},
+ {"x":3.25, "y":4.15},
+ {"x":4.25, "y":4.15},
+ {"x":5.25, "y":4.15},
+ {"x":6.25, "y":4.15},
+ {"x":7.25, "y":4.15},
+ {"x":8.25, "y":4.15},
+ {"x":9.25, "y":4.15},
+ {"x":10.25, "y":4.15},
+ {"x":11.25, "y":4.15},
+ {"x":12.25, "y":4.15, "w":2.25},
+ {"x":15.25, "y":4.15},
+ {"x":16.25, "y":4.15},
+ {"x":17.25, "y":4.15},
+ {"x":18.25, "y":4.15, "h":2},
+ {"x":0, "y":5.15},
+ {"x":1, "y":5.15},
+ {"x":2, "y":5.15, "w":1.75},
+ {"x":3.75, "y":5.15},
+ {"x":4.75, "y":5.15, "w":4.75},
+ {"x":9.5, "y":5.15},
+ {"x":10.5, "y":5.15},
+ {"x":11.5, "y":5.15},
+ {"x":12.5, "y":5.15},
+ {"x":13.5, "y":5.15},
+ {"x":15.25, "y":5.15, "w":2},
+ {"x":17.25, "y":5.15}
+ ]
+ }
+ }
+}
diff --git a/keyboards/kb_elmo/m0116_usb/keymaps/default/keymap.c b/keyboards/kb_elmo/m0116_usb/keymaps/default/keymap.c
new file mode 100644
index 0000000000..14f1a7d8e7
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
+/* Copyright 2020 kb-elmo<mail@elmo.space>
+ *
+ * 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] = {
+ /* Base */
+ [0] = LAYOUT(
+ KC_PSCR,
+ 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_DEL, KC_EQL, KC_PSLS, KC_PAST,
+ 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_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_LCTL, 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_P4, KC_P5, KC_P6, KC_PMNS,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(1), KC_P1, KC_P2, KC_P3,
+ KC_LCAP, KC_LGUI, KC_LALT, KC_GRV, KC_SPC, KC_BSLS, KC_LEFT, KC_RGHT, KC_DOWN, KC_UP, KC_P0, KC_PDOT, KC_PENT
+ ),
+ [1] = LAYOUT(
+ KC_TRNS,
+ KC_GRV, 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_TRNS, KC_INS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_PGUP, KC_TRNS,
+ KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_TRNS, KC_RGHT, 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_END, KC_DOWN, KC_PGDN,
+ 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
+ )
+};
diff --git a/keyboards/kb_elmo/m0116_usb/m0116_usb.c b/keyboards/kb_elmo/m0116_usb/m0116_usb.c
new file mode 100644
index 0000000000..823e2abd0a
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/m0116_usb.c
@@ -0,0 +1,17 @@
+/* Copyright 2020 kb-elmo<mail@elmo.space>
+ *
+ * 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 "m0116_usb.h"
diff --git a/keyboards/kb_elmo/m0116_usb/m0116_usb.h b/keyboards/kb_elmo/m0116_usb/m0116_usb.h
new file mode 100644
index 0000000000..9e98e19ea2
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/m0116_usb.h
@@ -0,0 +1,42 @@
+/* Copyright 2020 kb-elmo<mail@elmo.space>
+ *
+ * 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
+
+#include "quantum.h"
+
+/* This is a shortcut to help you visually see your layout.
+ *
+ * The first section contains all of the arguments representing the physical
+ * layout of the board and position of the keys.
+ *
+ * The second converts the arguments into a two-dimensional array which
+ * represents the switch matrix.
+ */
+#define LAYOUT( \
+ k71, \
+ 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, k30, k32, k33, k34, k35, \
+ k36, k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k31, k48, k49, k50, k51, \
+ k52, k53, k54, k55, k56, k57, k58, k59, k60, k61, k62, k63, k64, k65, k66, \
+ k67, k68, k69, k70, k72, k73, k74, k75, k76, k77, k78, k79, k80 \
+) { \
+ { 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, k30, k31, k32, k33, k34, k35, }, \
+ { k36, k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, KC_NO, KC_NO, k48, k49, k50, k51, }, \
+ { k52, k53, k54, k55, k56, k57, k58, k59, k60, k61, k62, KC_NO, KC_NO, k63, k64, k65, k66, KC_NO }, \
+ { k67, k68, k69, k70, KC_NO, k71, KC_NO, k72, k73, k74, k75, k76, KC_NO, k77, k78, KC_NO, k79, k80, } \
+}
diff --git a/keyboards/kb_elmo/m0116_usb/readme.md b/keyboards/kb_elmo/m0116_usb/readme.md
new file mode 100644
index 0000000000..0ffd841c38
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/readme.md
@@ -0,0 +1,15 @@
+# M0116 USB
+
+![m0116_usb](https://i.imgur.com/0l0W3oYl.jpg)
+
+Drop in replacement PCB for the Apple M0116
+
+* Keyboard Maintainer: [elmo-space](https://github.com/elmo-space)
+* Hardware Supported: M0116 USB
+* Hardware Availability: [Project is open source](https://github.com/elmo-space/m0116_usb)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make kb_elmo/m0116_usb: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).
diff --git a/keyboards/kb_elmo/m0116_usb/rules.mk b/keyboards/kb_elmo/m0116_usb/rules.mk
new file mode 100644
index 0000000000..e5b427e5a5
--- /dev/null
+++ b/keyboards/kb_elmo/m0116_usb/rules.mk
@@ -0,0 +1,25 @@
+# MCU name
+MCU = atmega32a
+
+# Processor frequency
+F_CPU = 16000000
+
+# Bootloader selection
+BOOTLOADER = USBasp
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = no # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+BLUETOOTH_ENABLE = no # Enable Bluetooth
+AUDIO_ENABLE = no # Audio output