summaryrefslogtreecommitdiffstats
path: root/keyboards/ckeys/obelus
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ckeys/obelus')
-rw-r--r--keyboards/ckeys/obelus/info.json13
-rw-r--r--keyboards/ckeys/obelus/keymaps/default/keymap.c75
-rw-r--r--keyboards/ckeys/obelus/obelus.h2
-rw-r--r--keyboards/ckeys/obelus/rules.mk2
4 files changed, 53 insertions, 39 deletions
diff --git a/keyboards/ckeys/obelus/info.json b/keyboards/ckeys/obelus/info.json
new file mode 100644
index 0000000000..70d2f7e7e5
--- /dev/null
+++ b/keyboards/ckeys/obelus/info.json
@@ -0,0 +1,13 @@
+{
+ "keyboard_name": "Obelus",
+ "url": "",
+ "maintainer": "qmk",
+ "width": 4,
+ "height": 4,
+ "layouts": {
+ "LAYOUT_ortho_4x4": {
+ "key_count": 16,
+ "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}]
+ }
+ }
+}
diff --git a/keyboards/ckeys/obelus/keymaps/default/keymap.c b/keyboards/ckeys/obelus/keymaps/default/keymap.c
index c2c8e4a052..bdad1cacab 100644
--- a/keyboards/ckeys/obelus/keymaps/default/keymap.c
+++ b/keyboards/ckeys/obelus/keymaps/default/keymap.c
@@ -1,5 +1,4 @@
-#include "obelus.h"
-#include "action_layer.h"
+#include QMK_KEYBOARD_H
#ifdef AUDIO_ENABLE
#include "audio.h"
#endif
@@ -18,12 +17,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | | | | |
* `---------------------- '
*/
-[0] = LAYOUT( /* LAYER SELECT */
- KC_TRNS, KC_TRNS, KC_TRNS, RESET, \
- TO(4), KC_TRNS, KC_TRNS, KC_TRNS, \
- TO(1), TO(2), TO(3), KC_TRNS, \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
-),
+ [0] = LAYOUT_ortho_4x4( /* LAYER SELECT */
+ _______, _______, _______, RESET, \
+ TO(4), _______, _______, _______, \
+ TO(1), TO(2), TO(3), _______, \
+ _______, _______, _______, _______ \
+ ),
/* NUMPAD
* ,-----------------------.
* | 7 | 8 | 9 | * |
@@ -35,12 +34,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | 0 | . | / | = |
* `---------------------- '
*/
-[1] = LAYOUT( /* NUMPAD */
- KC_P7, KC_P8, KC_P9, KC_PAST, \
- KC_P4, KC_P5, KC_P6, KC_PMNS, \
- KC_P1, KC_P2, KC_P3, KC_PPLS, \
- KC_P0, KC_PDOT, KC_PSLS, LT(5,KC_PENT) \
-),
+ [1] = LAYOUT_ortho_4x4( /* NUMPAD */
+ KC_P7, KC_P8, KC_P9, KC_PAST, \
+ KC_P4, KC_P5, KC_P6, KC_PMNS, \
+ KC_P1, KC_P2, KC_P3, KC_PPLS, \
+ KC_P0, KC_PDOT, KC_PSLS, LT(5, KC_PENT) \
+ ),
/* NUMPAD SUPPLEMENT
* ,-----------------------.
* |NUMLK| | | |
@@ -52,12 +51,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | | | | |
* `---------------------- '
*/
-[5] = LAYOUT( /* NUMPAD SUPPLEMENT */
- KC_NLCK, KC_TRNS, KC_TRNS, TO(0), \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
-),
+ [5] = LAYOUT_ortho_4x4( /* NUMPAD SUPPLEMENT */
+ KC_NLCK, _______, _______, TO(0), \
+ _______, _______, _______, _______, \
+ _______, _______, _______, _______, \
+ _______, _______, _______, _______ \
+ ),
/* NAV
* ,-----------------------.
* | INS |PGUP | TAB |PRSCR|
@@ -69,12 +68,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |LEFT |DOWN |RIGHT|ENTER|
* `---------------------- '
*/
-[2] = LAYOUT( /* NAV CLUSTER */
- KC_INS, KC_PGUP, KC_TAB, KC_PSCR, \
- KC_DEL, KC_PGDN, KC_VOLD, KC_VOLU, \
- KC_HOME, KC_UP, KC_END, TO(0), \
- KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT \
-),
+ [2] = LAYOUT_ortho_4x4( /* NAV CLUSTER */
+ KC_INS, KC_PGUP, KC_TAB, KC_PSCR, \
+ KC_DEL, KC_PGDN, KC_VOLD, KC_VOLU, \
+ KC_HOME, KC_UP, KC_END, TO(0), \
+ KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT \
+ ),
/* GAMING
* ,-----------------------.
* | ESC | 1 | 2 | 3 |
@@ -86,12 +85,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |CTRL | C | R |SPACE|
* `---------------------- '
*/
-[3] = LAYOUT( /* GAMING */
- LT(4, KC_ESC), KC_1, KC_2, KC_3, \
- KC_TAB, KC_Q, KC_W, KC_E, \
- KC_LSFT, KC_A, KC_S, KC_D, \
- KC_LCTL, KC_C, KC_R, KC_SPC \
-),
+ [3] = LAYOUT_ortho_4x4( /* GAMING */
+ LT(4, KC_ESC), KC_1, KC_2, KC_3, \
+ KC_TAB, KC_Q, KC_W, KC_E, \
+ KC_LSFT, KC_A, KC_S, KC_D, \
+ KC_LCTL, KC_C, KC_R, KC_SPC \
+ ),
/* MUSIC
* ,-----------------------.
* | | | | |
@@ -103,12 +102,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |TOGGL|MODE | | |
* `---------------------- '
*/
-[4] = LAYOUT( /* NUMPAD SUPPLEMENT */
- KC_NO, KC_NO, KC_NO, KC_NO, \
- KC_NO, KC_NO, KC_NO, KC_NO, \
- KC_NO, KC_NO, KC_NO, KC_NO, \
- MU_TOG, MU_MOD, KC_NO, TO(0) \
-),
+ [4] = LAYOUT_ortho_4x4( /* NUMPAD SUPPLEMENT */
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
+ MU_TOG, MU_MOD, XXXXXXX, TO(0) \
+ ),
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
diff --git a/keyboards/ckeys/obelus/obelus.h b/keyboards/ckeys/obelus/obelus.h
index 21bc4d723f..371b79df20 100644
--- a/keyboards/ckeys/obelus/obelus.h
+++ b/keyboards/ckeys/obelus/obelus.h
@@ -7,7 +7,7 @@
// The following is an example using the Planck MIT layout
// The first section contains all of the arguements
// The second converts the arguments into a two-dimensional array
-#define LAYOUT( \
+#define LAYOUT_ortho_4x4( \
k00, k01, k02, k03, \
k10, k11, k12, k13, \
k20, k21, k22, k23, \
diff --git a/keyboards/ckeys/obelus/rules.mk b/keyboards/ckeys/obelus/rules.mk
index d999b118cb..f40610ee95 100644
--- a/keyboards/ckeys/obelus/rules.mk
+++ b/keyboards/ckeys/obelus/rules.mk
@@ -66,3 +66,5 @@ UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = yes # Audio output on port C6
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
+
+LAYOUTS = ortho_4x4