From b62ee65c6d809bd10b4cd98c835a4a501a39b880 Mon Sep 17 00:00:00 2001 From: skullydazed Date: Wed, 23 Oct 2019 14:18:12 -0700 Subject: Support for the Clueboard California macropad (#7127) * Support for the Clueboard California macropad * Update keyboards/clueboard/california/config.h Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> --- keyboards/clueboard/california/california.c | 1 + keyboards/clueboard/california/california.h | 21 +++++++++++++++++++ keyboards/clueboard/california/config.h | 24 ++++++++++++++++++++++ keyboards/clueboard/california/info.json | 10 +++++++++ .../california/keymaps/default/keymap.json | 7 +++++++ keyboards/clueboard/california/readme.md | 13 ++++++++++++ keyboards/clueboard/california/rules.mk | 10 +++++++++ 7 files changed, 86 insertions(+) create mode 100644 keyboards/clueboard/california/california.c create mode 100644 keyboards/clueboard/california/california.h create mode 100644 keyboards/clueboard/california/config.h create mode 100644 keyboards/clueboard/california/info.json create mode 100644 keyboards/clueboard/california/keymaps/default/keymap.json create mode 100644 keyboards/clueboard/california/readme.md create mode 100644 keyboards/clueboard/california/rules.mk diff --git a/keyboards/clueboard/california/california.c b/keyboards/clueboard/california/california.c new file mode 100644 index 0000000000..342184a1ae --- /dev/null +++ b/keyboards/clueboard/california/california.c @@ -0,0 +1 @@ +#include "california.h" diff --git a/keyboards/clueboard/california/california.h b/keyboards/clueboard/california/california.h new file mode 100644 index 0000000000..853b360e2e --- /dev/null +++ b/keyboards/clueboard/california/california.h @@ -0,0 +1,21 @@ +#pragma once + +#include "quantum.h" + +// Any changes to the layout names and/or definitions must also be made to info.json + +#define LAYOUT( \ + K00, K01, \ + K10, K11, \ + K21, \ + K30, K31, \ + K40, K41, \ + K51 \ +) { \ + { K00, K01 }, \ + { K10, K11 }, \ + { KC_NO, K21 }, \ + { K30, K31 }, \ + { K40, K41 }, \ + { KC_NO, K51 } \ +} diff --git a/keyboards/clueboard/california/config.h b/keyboards/clueboard/california/config.h new file mode 100644 index 0000000000..b1426cea4f --- /dev/null +++ b/keyboards/clueboard/california/config.h @@ -0,0 +1,24 @@ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xC1ED +#define PRODUCT_ID 0x23B0 +#define DEVICE_VER 0x0001 +#define MANUFACTURER Clueboard +#define PRODUCT California Macropad +#define DESCRIPTION A 10-key macropad shaped like California + +/* key matrix pins */ +#define MATRIX_ROWS 6 +#define MATRIX_COLS 2 +#define DIRECT_PINS { \ + { A10, A9 }, \ + { A0, B8 }, \ + { NO_PIN, B11 }, \ + { B9, A8 }, \ + { A7, B1 }, \ + { NO_PIN, B2 } \ +} +#define UNUSED_PINS diff --git a/keyboards/clueboard/california/info.json b/keyboards/clueboard/california/info.json new file mode 100644 index 0000000000..2a9ced6e9a --- /dev/null +++ b/keyboards/clueboard/california/info.json @@ -0,0 +1,10 @@ +{ + "keyboard_name": "Clueboard California", + "url": "", + "maintainer": "skullydazed", + "layouts": { + "LAYOUT": { + "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":1, "y":2}, {"x":1.25, "y":3}, {"x":2.25, "y":3}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":3.75, "y":5}] + } + } +} diff --git a/keyboards/clueboard/california/keymaps/default/keymap.json b/keyboards/clueboard/california/keymaps/default/keymap.json new file mode 100644 index 0000000000..8e0c297b2d --- /dev/null +++ b/keyboards/clueboard/california/keymaps/default/keymap.json @@ -0,0 +1,7 @@ +{ + "keyboard":"clueboard/california", + "layout":"LAYOUT", + "layers":[ + ["KC_1","KC_2","KC_3","KC_4","KC_5","KC_6","KC_7","KC_8","KC_9","BL_STEP"] + ] +} diff --git a/keyboards/clueboard/california/readme.md b/keyboards/clueboard/california/readme.md new file mode 100644 index 0000000000..015d15bc2a --- /dev/null +++ b/keyboards/clueboard/california/readme.md @@ -0,0 +1,13 @@ +# Clueboard California + +A macropad shaped like California + +* Keyboard Maintainer: [Zach White](https://github.com/skullydazed) +* Hardware Supported: Clueboard California PCB +* Hardware Availability: 2019 Northern California Meetup + +Make example for this keyboard (after setting up your build environment): + + make clueboard/california: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/clueboard/california/rules.mk b/keyboards/clueboard/california/rules.mk new file mode 100644 index 0000000000..e9362ffb73 --- /dev/null +++ b/keyboards/clueboard/california/rules.mk @@ -0,0 +1,10 @@ +MCU = STM32F303 + +## Features +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = yes # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = yes # USB Nkey Rollover +RGBLIGHT_ENABLE = no +AUDIO_ENABLE = yes -- cgit v1.2.3