summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/m40
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-29 19:19:19 +0000
committerQMK Bot <hello@qmk.fm>2022-03-29 19:19:19 +0000
commitd76a68fb0f571132c914ac378f67268b580750fe (patch)
tree8e59c452a5956f2715b9d9dc616adaae17522c8c /keyboards/handwired/m40
parentaadf0a103810d76388e745c4f0bc0eddaa30d4b7 (diff)
parent6cdf230a20e34302f54db018c18063395345757f (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/m40')
-rw-r--r--keyboards/handwired/m40/5x5_macropad/5x5_macropad.c4
-rw-r--r--keyboards/handwired/m40/5x5_macropad/5x5_macropad.h27
-rw-r--r--keyboards/handwired/m40/5x5_macropad/config.h88
-rw-r--r--keyboards/handwired/m40/5x5_macropad/info.json41
-rw-r--r--keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c26
-rw-r--r--keyboards/handwired/m40/5x5_macropad/keymaps/default/readme.md1
-rw-r--r--keyboards/handwired/m40/5x5_macropad/readme.md26
-rw-r--r--keyboards/handwired/m40/5x5_macropad/rules.mk22
8 files changed, 235 insertions, 0 deletions
diff --git a/keyboards/handwired/m40/5x5_macropad/5x5_macropad.c b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.c
new file mode 100644
index 0000000000..d99d41a49b
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.c
@@ -0,0 +1,4 @@
+// Copyright 2022 Tomek (@m40-dev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "5x5_macropad.h" \ No newline at end of file
diff --git a/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h
new file mode 100644
index 0000000000..78e485f00e
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h
@@ -0,0 +1,27 @@
+// Copyright 2022 Tomek (@m40-dev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#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_ortho_5x5( \
+ K000, K001, K002, K003, K004, \
+ K100, K101, K102, K103, K104, \
+ K200, K201, K202, K203, K204, \
+ K300, K301, K302, K303, K304, \
+ K400, K401, K402, K403, K404 ) { \
+ { K000, K001, K002, K003, K004 }, \
+ { K100, K101, K102, K103, K104 }, \
+ { K200, K201, K202, K203, K204 }, \
+ { K300, K301, K302, K303, K304 }, \
+ { K400, K401, K402, K403, K404 } \
+}
diff --git a/keyboards/handwired/m40/5x5_macropad/config.h b/keyboards/handwired/m40/5x5_macropad/config.h
new file mode 100644
index 0000000000..4f71b79d43
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/config.h
@@ -0,0 +1,88 @@
+// Copyright 2022 Tomek (@m40-dev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x0000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER m40
+#define PRODUCT macropad
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 5
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+ */
+#define MATRIX_ROW_PINS { B5, B4, E6, D7, C6 }
+#define MATRIX_COL_PINS { B6, B2, B3, B1, F7 }
+#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
+
+/* define if matrix has ghost (lacks anti-ghosting diodes) */
+//#define MATRIX_HAS_GHOST
+
+/* 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
+
+/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
+ * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
+ */
+//#define GRAVE_ESC_CTRL_OVERRIDE
+
+/*
+ * Force NKRO
+ *
+ * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
+ * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
+ * makefile for this to work.)
+ *
+ * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
+ * until the next keyboard reset.
+ *
+ * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
+ * fully operational during normal computer usage.
+ *
+ * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
+ * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
+ * bootmagic, NKRO mode will always be enabled until it is toggled again during a
+ * power-up.
+ *
+ */
+//#define FORCE_NKRO
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
diff --git a/keyboards/handwired/m40/5x5_macropad/info.json b/keyboards/handwired/m40/5x5_macropad/info.json
new file mode 100644
index 0000000000..7d5ae8c6cb
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/info.json
@@ -0,0 +1,41 @@
+{
+ "keyboard_name": "5x5_macropad",
+ "url": "https://www.thingiverse.com/thing:5239739",
+ "maintainer": "m40-dev",
+ "layouts": {
+ "LAYOUT_ortho_5x5": {
+ "layout": [
+ {"label":"K000", "x":0, "y":0},
+ {"label":"K001", "x":1, "y":0},
+ {"label":"K002", "x":2, "y":0},
+ {"label":"K003", "x":3, "y":0},
+ {"label":"K004", "x":4, "y":0},
+
+ {"label":"K100", "x":0, "y":1},
+ {"label":"K101", "x":1, "y":1},
+ {"label":"K102", "x":2, "y":1},
+ {"label":"K103", "x":3, "y":1},
+ {"label":"K104", "x":4, "y":1},
+
+ {"label":"K200", "x":0, "y":2},
+ {"label":"K201", "x":1, "y":2},
+ {"label":"K202", "x":2, "y":2},
+ {"label":"K203", "x":3, "y":2},
+ {"label":"K204", "x":4, "y":2},
+
+ {"label":"K300", "x":0, "y":3},
+ {"label":"K301", "x":1, "y":3},
+ {"label":"K302", "x":2, "y":3},
+ {"label":"K303", "x":3, "y":3},
+ {"label":"K304", "x":4, "y":3},
+
+ {"label":"K400", "x":0, "y":4},
+ {"label":"K401", "x":1, "y":4},
+ {"label":"K402", "x":2, "y":4},
+ {"label":"K403", "x":3, "y":4},
+ {"label":"K404", "x":4, "y":4}
+
+ ]
+ }
+ }
+ } \ No newline at end of file
diff --git a/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c b/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5b329dc571
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
@@ -0,0 +1,26 @@
+// Copyright 2022 Tomek (@m40-dev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _FN
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Base */
+ [_BASE] = LAYOUT_ortho_5x5(
+ //┌────────┬────────┬────────┬────────┬────────┐
+ KC_ESC, KC_1, KC_2, KC_3, RESET,
+ //├────────┼────────┼────────┼────────┬────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5 )
+ //└────────┴────────┴────────┴─────────────────┘
+};
diff --git a/keyboards/handwired/m40/5x5_macropad/keymaps/default/readme.md b/keyboards/handwired/m40/5x5_macropad/keymaps/default/readme.md
new file mode 100644
index 0000000000..faaecfd9ea
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for 5x5_macropad
diff --git a/keyboards/handwired/m40/5x5_macropad/readme.md b/keyboards/handwired/m40/5x5_macropad/readme.md
new file mode 100644
index 0000000000..7ce38d6593
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/readme.md
@@ -0,0 +1,26 @@
+# 5x5_macropad
+
+![m40](https://i.imgur.com/bWXH3FVl.jpeg)
+
+This is very simple 5x5 macropad for general use. It does not come with any particular layout, it is assumed that layouts will be built on the qmk configurator site. Row and column pins start on the edge of Arduino, if smaller board is required, you can simply connect only first x row/column pairs to the board and get the size of the board you need.
+
+* Keyboard Maintainer: [Tomek](https://github.com/m40-dev) (discord: m40#4792)
+* Hardware Supported: 3D Printed, handwired, using Arduino Pro-Micro (Atmega32U4) for controller
+* Hardware Availability: https://www.thingiverse.com/thing:5239739
+
+Make example for this keyboard (after setting up your build environment):
+
+ make handwired/m40/5x5_macropad:default
+
+Flashing example for this keyboard:
+
+ make handwired/m40/5x5_macropad:default:flash
+
+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 in 2 ways:
+
+* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
+* **Keycode in layout**: Press the key mapped to `RESET` if it is available. In default layout (if you flashed it already once) it is the top-right button.
diff --git a/keyboards/handwired/m40/5x5_macropad/rules.mk b/keyboards/handwired/m40/5x5_macropad/rules.mk
new file mode 100644
index 0000000000..d43ced4ed4
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/rules.mk
@@ -0,0 +1,22 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = caterina
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = yes # Commands for debug and configuration
+NKRO_ENABLE = no # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
+
+# Disable unsupported hardware
+AUDIO_SUPPORTED = no
+BACKLIGHT_SUPPORTED = no \ No newline at end of file