From a1b39e6db231923935055846384eb2e78e538268 Mon Sep 17 00:00:00 2001 From: peepeetee <43021794+peepeetee@users.noreply.github.com> Date: Mon, 31 Jan 2022 03:28:04 +0800 Subject: [Keyboard] move That-Canadian 's boards into /maple_computing (#16050) --- keyboards/maple_computing/ivy/.noci | 0 keyboards/maple_computing/ivy/config.h | 66 ++++++++++++++++++++++ keyboards/maple_computing/ivy/ivy.c | 1 + keyboards/maple_computing/ivy/ivy.h | 7 +++ .../maple_computing/ivy/keymaps/default/keymap.c | 41 ++++++++++++++ keyboards/maple_computing/ivy/readme.md | 15 +++++ keyboards/maple_computing/ivy/rev1/config.h | 27 +++++++++ keyboards/maple_computing/ivy/rev1/info.json | 14 +++++ keyboards/maple_computing/ivy/rev1/rev1.c | 1 + keyboards/maple_computing/ivy/rev1/rev1.h | 14 +++++ keyboards/maple_computing/ivy/rev1/rules.mk | 0 keyboards/maple_computing/ivy/rules.mk | 20 +++++++ 12 files changed, 206 insertions(+) create mode 100644 keyboards/maple_computing/ivy/.noci create mode 100644 keyboards/maple_computing/ivy/config.h create mode 100644 keyboards/maple_computing/ivy/ivy.c create mode 100644 keyboards/maple_computing/ivy/ivy.h create mode 100644 keyboards/maple_computing/ivy/keymaps/default/keymap.c create mode 100644 keyboards/maple_computing/ivy/readme.md create mode 100644 keyboards/maple_computing/ivy/rev1/config.h create mode 100644 keyboards/maple_computing/ivy/rev1/info.json create mode 100644 keyboards/maple_computing/ivy/rev1/rev1.c create mode 100644 keyboards/maple_computing/ivy/rev1/rev1.h create mode 100644 keyboards/maple_computing/ivy/rev1/rules.mk create mode 100644 keyboards/maple_computing/ivy/rules.mk (limited to 'keyboards/maple_computing/ivy') diff --git a/keyboards/maple_computing/ivy/.noci b/keyboards/maple_computing/ivy/.noci new file mode 100644 index 0000000000..e69de29bb2 diff --git a/keyboards/maple_computing/ivy/config.h b/keyboards/maple_computing/ivy/config.h new file mode 100644 index 0000000000..2ccf3b8f6f --- /dev/null +++ b/keyboards/maple_computing/ivy/config.h @@ -0,0 +1,66 @@ +/* +Copyright 2012 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x1337 +#define PRODUCT_ID 0x6012 +#define MANUFACTURER Maple Computing +#define PRODUCT Ivy + +/* key matrix size */ +#define MATRIX_ROWS 3 +#define MATRIX_COLS 3 + +/* COL2ROW or ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +/* define if matrix has ghost */ +//#define MATRIX_HAS_GHOST + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 + +/* 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 + +#define BACKLIGHT_PIN D2 + +/* number of backlight levels */ +#define BACKLIGHT_LEVELS 3 + +/* + * 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 +//#define NO_ACTION_MACRO +//#define NO_ACTION_FUNCTION diff --git a/keyboards/maple_computing/ivy/ivy.c b/keyboards/maple_computing/ivy/ivy.c new file mode 100644 index 0000000000..007ef67253 --- /dev/null +++ b/keyboards/maple_computing/ivy/ivy.c @@ -0,0 +1 @@ +#include "ivy.h" diff --git a/keyboards/maple_computing/ivy/ivy.h b/keyboards/maple_computing/ivy/ivy.h new file mode 100644 index 0000000000..645c5e0ef7 --- /dev/null +++ b/keyboards/maple_computing/ivy/ivy.h @@ -0,0 +1,7 @@ +#pragma once + +#ifdef KEYBOARD_maple_computing_ivy_rev1 + #include "rev1.h" +#endif + +#include "quantum.h" diff --git a/keyboards/maple_computing/ivy/keymaps/default/keymap.c b/keyboards/maple_computing/ivy/keymaps/default/keymap.c new file mode 100644 index 0000000000..f02580f19c --- /dev/null +++ b/keyboards/maple_computing/ivy/keymaps/default/keymap.c @@ -0,0 +1,41 @@ +#include QMK_KEYBOARD_H + + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. + +enum pad_layers { + _L1, + _FUNC +}; + +// Defines for task manager and such +#define CALTDEL LCTL(LALT(KC_DEL)) +#define TSKMGR LCTL(LSFT(KC_ESC)) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +/* Layer 1 + * ,------. + * | 1 | + * |------| + * | 2 | + * |------| + * | FN | + * `------' + */ +[_L1] = LAYOUT( + KC_1, + KC_2, + MO(_FUNC) +), + +[_FUNC] = LAYOUT( + CALTDEL, + TSKMGR, + _______ +) + +}; diff --git a/keyboards/maple_computing/ivy/readme.md b/keyboards/maple_computing/ivy/readme.md new file mode 100644 index 0000000000..a3bc043b77 --- /dev/null +++ b/keyboards/maple_computing/ivy/readme.md @@ -0,0 +1,15 @@ +IVY +=== + +![Ivy](https://i.imgur.com/fnVQet6.jpg) + +Make example for this keyboard (after setting up your build environment): + + make maple_computing/ivy/rev1:default + +Install examples: + + make maple_computing/ivy/rev1:default:dfu + +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/maple_computing/ivy/rev1/config.h b/keyboards/maple_computing/ivy/rev1/config.h new file mode 100644 index 0000000000..9b88b89e5e --- /dev/null +++ b/keyboards/maple_computing/ivy/rev1/config.h @@ -0,0 +1,27 @@ +/* +Copyright 2012 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#pragma once + +#define DEVICE_VER 0x0001 + +/* Let's Macro V2 pin-out */ +#define MATRIX_ROW_PINS { F1, B2, D3 } +#define MATRIX_COL_PINS { F5, B3, D5 } +#define UNUSED_PINS + +#define DIODE_DIRECTION COL2ROW diff --git a/keyboards/maple_computing/ivy/rev1/info.json b/keyboards/maple_computing/ivy/rev1/info.json new file mode 100644 index 0000000000..c5045bd80f --- /dev/null +++ b/keyboards/maple_computing/ivy/rev1/info.json @@ -0,0 +1,14 @@ +{ + "keyboard_name": "IVY", + "url": "", + "maintainer": "That-Canadian", + "layouts": { + "LAYOUT": { + "layout": [ + {"x":0, "y":0}, + {"x":1, "y":0}, + {"x":2, "y":0} + ] + } + } +} diff --git a/keyboards/maple_computing/ivy/rev1/rev1.c b/keyboards/maple_computing/ivy/rev1/rev1.c new file mode 100644 index 0000000000..007ef67253 --- /dev/null +++ b/keyboards/maple_computing/ivy/rev1/rev1.c @@ -0,0 +1 @@ +#include "ivy.h" diff --git a/keyboards/maple_computing/ivy/rev1/rev1.h b/keyboards/maple_computing/ivy/rev1/rev1.h new file mode 100644 index 0000000000..ac338368ed --- /dev/null +++ b/keyboards/maple_computing/ivy/rev1/rev1.h @@ -0,0 +1,14 @@ +#pragma once + +#include "ivy.h" + +#define LAYOUT( \ + K00, \ + K01, \ + K02 \ + ) \ + { \ + { K00, KC_NO, KC_NO }, \ + { KC_NO, K01, KC_NO }, \ + { KC_NO, KC_NO, K02 }, \ + } diff --git a/keyboards/maple_computing/ivy/rev1/rules.mk b/keyboards/maple_computing/ivy/rev1/rules.mk new file mode 100644 index 0000000000..e69de29bb2 diff --git a/keyboards/maple_computing/ivy/rules.mk b/keyboards/maple_computing/ivy/rules.mk new file mode 100644 index 0000000000..66812904cd --- /dev/null +++ b/keyboards/maple_computing/ivy/rules.mk @@ -0,0 +1,20 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = caterina + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite +MOUSEKEY_ENABLE = no # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = no # Commands for debug and configuration +NKRO_ENABLE = no # Enable N-Key Rollover +BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality +AUDIO_ENABLE = no # Audio output +RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. + +DEFAULT_FOLDER = ivy/rev1 -- cgit v1.2.3