From 1147fc24adfe22eac6e67f9d7f0f1184f358f141 Mon Sep 17 00:00:00 2001 From: noroadsleft <18669334+noroadsleft@users.noreply.github.com> Date: Sat, 21 Jul 2018 12:12:07 -0700 Subject: Keyboard: DC01 refactor and Configurator support (#3445) * Arrow: matrix and keymap refactor * Left: matrix and keymap refactor * Numpad: matrix macro correction * Numpad: add support for community layouts numpad_5x4 and ortho_5x4 * Right: matrix and keymap refactor * DC01 global readme cleanup (minor grammar) * DC01 global Configurator support * Right: bugfixes for HHKB-style keymaps --- keyboards/dc01/arrow/arrow.h | 2 +- keyboards/dc01/arrow/info.json | 12 ++++++++++++ keyboards/dc01/arrow/keymaps/default/keymap.c | 2 +- keyboards/dc01/arrow/readme.md | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) (limited to 'keyboards/dc01/arrow') diff --git a/keyboards/dc01/arrow/arrow.h b/keyboards/dc01/arrow/arrow.h index b7fec9ee8..a3a9987d5 100644 --- a/keyboards/dc01/arrow/arrow.h +++ b/keyboards/dc01/arrow/arrow.h @@ -23,7 +23,7 @@ // This a shortcut to help you visually see your layout. // The first section contains all of the arguments // The second converts the arguments into a two-dimensional array -#define LAYOUT_ALL( \ +#define LAYOUT_all( \ K00, K01, K02, \ K10, K11, K12, \ \ diff --git a/keyboards/dc01/arrow/info.json b/keyboards/dc01/arrow/info.json index e69de29bb..b3b584fbd 100644 --- a/keyboards/dc01/arrow/info.json +++ b/keyboards/dc01/arrow/info.json @@ -0,0 +1,12 @@ +{ + "keyboard_name": "DC01 Arrow Cluster", + "url": "", + "maintainer": "qmk", + "width": 3, + "height": 5, + "layouts": { + "LAYOUT_all": { + "layout": [{"label":"Insert", "x":0, "y":0}, {"label":"Home", "x":1, "y":0}, {"label":"PgUp", "x":2, "y":0}, {"label":"Delete", "x":0, "y":1}, {"label":"End", "x":1, "y":1}, {"label":"PgDn", "x":2, "y":1}, {"label":"\u2191", "x":1, "y":3}, {"label":"\u2190", "x":0, "y":4}, {"label":"\u2193", "x":1, "y":4}, {"label":"\u2192", "x":2, "y":4}] + } + } +} diff --git a/keyboards/dc01/arrow/keymaps/default/keymap.c b/keyboards/dc01/arrow/keymaps/default/keymap.c index 591deb01c..54eae570e 100644 --- a/keyboards/dc01/arrow/keymaps/default/keymap.c +++ b/keyboards/dc01/arrow/keymaps/default/keymap.c @@ -16,7 +16,7 @@ #include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[0] = LAYOUT_ALL( /* Base */ +[0] = LAYOUT_all( /* Base */ KC_INS, KC_HOME, KC_PGUP, \ KC_DEL, KC_END, KC_PGDN, \ \ diff --git a/keyboards/dc01/arrow/readme.md b/keyboards/dc01/arrow/readme.md index 3c0ece7a3..ae643114a 100644 --- a/keyboards/dc01/arrow/readme.md +++ b/keyboards/dc01/arrow/readme.md @@ -2,7 +2,7 @@ ![DC01 Arrow Cluster](https://i.imgur.com/PTn0sp8.jpg) -A hotpluggable four part keyboard which comes together with magnets and pogo pins! This is the arrow cluster +A hotpluggable four part keyboard which comes together with magnets and pogo pins! This is the arrow cluster. Keyboard Maintainer: [Yiancar](https://github.com/yiancar) Hardware Supported: Runs on an atmega32u4 -- cgit v1.2.3-24-g4f1b