summaryrefslogtreecommitdiff
path: root/keyboards/maple_computing/christmas_tree
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/maple_computing/christmas_tree')
-rw-r--r--keyboards/maple_computing/christmas_tree/.noci0
-rw-r--r--keyboards/maple_computing/christmas_tree/V2017/V2017.c1
-rw-r--r--keyboards/maple_computing/christmas_tree/V2017/V2017.h3
-rw-r--r--keyboards/maple_computing/christmas_tree/V2017/config.h5
-rw-r--r--keyboards/maple_computing/christmas_tree/V2017/rules.mk3
-rw-r--r--keyboards/maple_computing/christmas_tree/christmas_tree.c1
-rw-r--r--keyboards/maple_computing/christmas_tree/christmas_tree.h14
-rw-r--r--keyboards/maple_computing/christmas_tree/config.h54
-rw-r--r--keyboards/maple_computing/christmas_tree/info.json10
-rw-r--r--keyboards/maple_computing/christmas_tree/keymaps/default/keymap.c82
-rw-r--r--keyboards/maple_computing/christmas_tree/keymaps/default/readme.md2
-rw-r--r--keyboards/maple_computing/christmas_tree/readme.md14
-rw-r--r--keyboards/maple_computing/christmas_tree/rules.mk20
13 files changed, 209 insertions, 0 deletions
diff --git a/keyboards/maple_computing/christmas_tree/.noci b/keyboards/maple_computing/christmas_tree/.noci
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/.noci
diff --git a/keyboards/maple_computing/christmas_tree/V2017/V2017.c b/keyboards/maple_computing/christmas_tree/V2017/V2017.c
new file mode 100644
index 0000000000..e367270592
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/V2017/V2017.c
@@ -0,0 +1 @@
+#include "V2017.h" \ No newline at end of file
diff --git a/keyboards/maple_computing/christmas_tree/V2017/V2017.h b/keyboards/maple_computing/christmas_tree/V2017/V2017.h
new file mode 100644
index 0000000000..f779c0ed47
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/V2017/V2017.h
@@ -0,0 +1,3 @@
+#pragma once
+
+#include "christmas_tree.h"
diff --git a/keyboards/maple_computing/christmas_tree/V2017/config.h b/keyboards/maple_computing/christmas_tree/V2017/config.h
new file mode 100644
index 0000000000..abc94749a8
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/V2017/config.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#include "config_common.h"
+
+#define DEVICE_VER 0x2017
diff --git a/keyboards/maple_computing/christmas_tree/V2017/rules.mk b/keyboards/maple_computing/christmas_tree/V2017/rules.mk
new file mode 100644
index 0000000000..184a1f2247
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/V2017/rules.mk
@@ -0,0 +1,3 @@
+BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
+AUDIO_ENABLE = no # Audio output \ No newline at end of file
diff --git a/keyboards/maple_computing/christmas_tree/christmas_tree.c b/keyboards/maple_computing/christmas_tree/christmas_tree.c
new file mode 100644
index 0000000000..c03670a3a5
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/christmas_tree.c
@@ -0,0 +1 @@
+#include "christmas_tree.h"
diff --git a/keyboards/maple_computing/christmas_tree/christmas_tree.h b/keyboards/maple_computing/christmas_tree/christmas_tree.h
new file mode 100644
index 0000000000..68eefca6a8
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/christmas_tree.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ k00, k10, k20, k30, k40, k50 \
+) { \
+ { k00 }, \
+ { k10 }, \
+ { k20 }, \
+ { k30 }, \
+ { k40 }, \
+ { k50 } \
+}
diff --git a/keyboards/maple_computing/christmas_tree/config.h b/keyboards/maple_computing/christmas_tree/config.h
new file mode 100644
index 0000000000..531c5996d2
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/config.h
@@ -0,0 +1,54 @@
+/*
+Copyright 2012 Jun Wako <wakojun@gmail.com>
+
+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 <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x3070
+#define MANUFACTURER Maple Computing
+#define PRODUCT Christmas Tree
+
+/* key matrix size */
+#define MATRIX_ROWS 6
+#define MATRIX_COLS 1
+
+/* Planck PCB default pin-out */
+#define MATRIX_ROW_PINS { D3, F4, D0, F6, F5, D4 }
+#define MATRIX_COL_PINS { D1 }
+#define UNUSED_PINS
+
+#define BACKLIGHT_PIN D2
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+/* define if matrix has ghost */
+//#define MATRIX_HAS_GHOST
+
+/* number of backlight levels */
+#define BACKLIGHT_LEVELS 3
+
+/* 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
diff --git a/keyboards/maple_computing/christmas_tree/info.json b/keyboards/maple_computing/christmas_tree/info.json
new file mode 100644
index 0000000000..5d24218c70
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/info.json
@@ -0,0 +1,10 @@
+{
+ "keyboard_name": "Christmas Tree",
+ "url": "https://www.reddit.com/r/MechanicalKeyboards/comments/7cqxpf/gb_christmas_tree_pcb_gb_now_live/",
+ "maintainer": "That-Canadian",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [{"x":1, "y":0}, {"x":0.5, "y":1}, {"x":1.5, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}]
+ }
+ }
+}
diff --git a/keyboards/maple_computing/christmas_tree/keymaps/default/keymap.c b/keyboards/maple_computing/christmas_tree/keymaps/default/keymap.c
new file mode 100644
index 0000000000..6931b91a61
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/keymaps/default/keymap.c
@@ -0,0 +1,82 @@
+/* Copyright 2015-2017 Jack Humbert
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+
+enum layers {
+ _BASE,
+ _FUNC
+};
+
+enum custom_keycodes {
+ FUNC = SAFE_RANGE,
+ BACKLIT
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ /* Base
+ * ,------.
+ * | 1 |
+ * ,------+------.
+ * | 2 | 3 |
+ * ,------+------+------.
+ * | 4 | FUNC | 6 |
+ * `--------------------'
+ */
+ [_BASE] = LAYOUT(
+ KC_1,
+ KC_2, KC_3,
+ KC_4, MO(_FUNC), KC_6
+ ),
+
+ /* Func
+ * ,------.
+ * |BCKLIT|
+ * ,------+------.
+ * | 8 | 9 |
+ * ,------+------+------.
+ * | 0 | FUNC | RESET|
+ * `--------------------'
+ */
+ [_FUNC] = LAYOUT(
+ BACKLIT,
+ KC_8, KC_9,
+ KC_0, _______, RESET
+ )
+
+
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case BACKLIT:
+ if (record->event.pressed) {
+ register_code(KC_RSFT);
+ #ifdef BACKLIGHT_ENABLE
+ register_code(KC_LSFT);
+ backlight_step();
+ #endif
+ } else {
+ unregister_code(KC_RSFT);
+ unregister_code(KC_LSFT);
+ }
+ return false;
+ break;
+ }
+ return true;
+}
diff --git a/keyboards/maple_computing/christmas_tree/keymaps/default/readme.md b/keyboards/maple_computing/christmas_tree/keymaps/default/readme.md
new file mode 100644
index 0000000000..a9cb4586ef
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/keymaps/default/readme.md
@@ -0,0 +1,2 @@
+# The Default Christmas Tree Layout
+
diff --git a/keyboards/maple_computing/christmas_tree/readme.md b/keyboards/maple_computing/christmas_tree/readme.md
new file mode 100644
index 0000000000..3ba255a18c
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/readme.md
@@ -0,0 +1,14 @@
+Christmas Tree
+===
+
+![Christmas Tree](https://i.imgur.com/I9FNdSv.png)
+
+A tiny 6 key macro pad, in the shape of a christmas tree, made by That-Canadian, SpaceCat, and ChillCaps.
+
+Keyboard Maintainer: [That-Canadian](https://github.com/That-Canadian)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make maple_computing/christmas_tree/V2017:default
+
+See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
diff --git a/keyboards/maple_computing/christmas_tree/rules.mk b/keyboards/maple_computing/christmas_tree/rules.mk
new file mode 100644
index 0000000000..45ac883163
--- /dev/null
+++ b/keyboards/maple_computing/christmas_tree/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 = yes # 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 = maple_computing/christmas_tree/V2017