diff options
author | noroadsleft <18669334+noroadsleft@users.noreply.github.com> | 2018-05-29 12:53:03 +0200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-05-29 12:53:03 +0200 |
commit | eb8388b31e5c0101c1e99e3babb72a47546df156 (patch) | |
tree | bda7362149b12db1e801d297b1825d7ffc6e8a4d | |
parent | edb149fb5a58aea5a8c62f41e3ae90bb7bfed21c (diff) | |
download | qmk_firmware-eb8388b31e5c0101c1e99e3babb72a47546df156.tar.gz qmk_firmware-eb8388b31e5c0101c1e99e3babb72a47546df156.tar.xz |
Refactor and Configurator updates for Woodkeys/NovelKeys Big Series (#3073)
* Refactor for Woodkeys Big Series
* Configurator update for Woodkeys Big Series
-rwxr-xr-x | keyboards/bigseries/bigseries.h | 2 | ||||
-rw-r--r-- | keyboards/bigseries/info.json | 12 | ||||
-rwxr-xr-x | keyboards/bigseries/keymaps/8ball/keymap.c | 4 | ||||
-rwxr-xr-x | keyboards/bigseries/keymaps/default/keymap.c | 4 | ||||
-rwxr-xr-x | keyboards/bigseries/keymaps/leddance/keymap.c | 8 |
5 files changed, 21 insertions, 9 deletions
diff --git a/keyboards/bigseries/bigseries.h b/keyboards/bigseries/bigseries.h index 4a8ac1116..344140779 100755 --- a/keyboards/bigseries/bigseries.h +++ b/keyboards/bigseries/bigseries.h @@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "quantum.h" -#define KEYMAP( \ +#define LAYOUT( \ K00 \ ) { \ { K00 } \ diff --git a/keyboards/bigseries/info.json b/keyboards/bigseries/info.json new file mode 100644 index 000000000..ff2fd54c5 --- /dev/null +++ b/keyboards/bigseries/info.json @@ -0,0 +1,12 @@ +{ + "keyboard_name": "Big Series 1-Key", + "url": "", + "maintainer": "qmk", + "width": 4, + "height": 4, + "layouts": { + "LAYOUT": { + "layout": [{"x":0, "y":0, "w":4, "h":4}] + } + } +} diff --git a/keyboards/bigseries/keymaps/8ball/keymap.c b/keyboards/bigseries/keymaps/8ball/keymap.c index df4e3dde8..1097eb94a 100755 --- a/keyboards/bigseries/keymaps/8ball/keymap.c +++ b/keyboards/bigseries/keymaps/8ball/keymap.c @@ -15,7 +15,7 @@ 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 "../../bigseries.h" +#include QMK_KEYBOARD_H static const char * const ANSWERS[] = { // "Yes" answers @@ -51,7 +51,7 @@ static const char * const ANSWERS[] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -KEYMAP( +LAYOUT( KC_A), }; diff --git a/keyboards/bigseries/keymaps/default/keymap.c b/keyboards/bigseries/keymaps/default/keymap.c index 67cfb168c..7ce837357 100755 --- a/keyboards/bigseries/keymaps/default/keymap.c +++ b/keyboards/bigseries/keymaps/default/keymap.c @@ -15,11 +15,11 @@ 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 "../../bigseries.h" +#include QMK_KEYBOARD_H const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -KEYMAP( +LAYOUT( KC_A), diff --git a/keyboards/bigseries/keymaps/leddance/keymap.c b/keyboards/bigseries/keymaps/leddance/keymap.c index 4cb57f437..3cd8f1db7 100755 --- a/keyboards/bigseries/keymaps/leddance/keymap.c +++ b/keyboards/bigseries/keymaps/leddance/keymap.c @@ -15,8 +15,8 @@ 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 "../../bigseries.h" -#include "print.h" +#include QMK_KEYBOARD_H + extern rgblight_config_t rgblight_config; @@ -66,9 +66,9 @@ qk_tap_dance_action_t tap_dance_actions[] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[BASE] = KEYMAP( +[BASE] = LAYOUT( TD(TD_TOGGLE)), -[LED] = KEYMAP( +[LED] = LAYOUT( TD(TD_TOGGLE) ) |