diff options
| author | Josh Sankey <js@psimail.pw> | 2017-12-14 15:58:40 -0500 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-14 15:58:40 -0500 |
| commit | dc7cc26dff01cc84b6f9f96af6d3aa03469aaca3 (patch) | |
| tree | 47d12f94760a021cd6e5e5e43b0ca69e1458fdf1 | |
| parent | a6e46b99b9c4bb873758ebb03af6e91b5a58e699 (diff) | |
| download | qmk_firmware-dc7cc26dff01cc84b6f9f96af6d3aa03469aaca3.tar.gz qmk_firmware-dc7cc26dff01cc84b6f9f96af6d3aa03469aaca3.zip | |
Christmas tree (#2105)
* Line ending stuff again
* Added initial files for Christmas Tree PCB
* Updated Readme and info json's, also config.
* Cleaned up keymap file, added proper comments for keymap. Removed readme leftover from original copy of planck folder structure.
| -rw-r--r-- | keyboards/christmas_tree/V2017/V2017.c | 1 | ||||
| -rw-r--r-- | keyboards/christmas_tree/V2017/V2017.h | 6 | ||||
| -rw-r--r-- | keyboards/christmas_tree/V2017/config.h | 8 | ||||
| -rw-r--r-- | keyboards/christmas_tree/V2017/info.json | 3 | ||||
| -rw-r--r-- | keyboards/christmas_tree/christmas_tree.c | 5 | ||||
| -rw-r--r-- | keyboards/christmas_tree/christmas_tree.h | 20 | ||||
| -rw-r--r-- | keyboards/christmas_tree/config.h | 63 | ||||
| -rw-r--r-- | keyboards/christmas_tree/info.json | 17 | ||||
| -rw-r--r-- | keyboards/christmas_tree/keymaps/default/config.h | 6 | ||||
| -rw-r--r-- | keyboards/christmas_tree/keymaps/default/keymap.c | 77 | ||||
| -rw-r--r-- | keyboards/christmas_tree/keymaps/default/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/christmas_tree/keymaps/default/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/christmas_tree/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/christmas_tree/rules.mk | 70 |
14 files changed, 295 insertions, 0 deletions
diff --git a/keyboards/christmas_tree/V2017/V2017.c b/keyboards/christmas_tree/V2017/V2017.c new file mode 100644 index 000000000..e36727059 --- /dev/null +++ b/keyboards/christmas_tree/V2017/V2017.c | |||
| @@ -0,0 +1 @@ | |||
| #include "V2017.h" \ No newline at end of file | |||
diff --git a/keyboards/christmas_tree/V2017/V2017.h b/keyboards/christmas_tree/V2017/V2017.h new file mode 100644 index 000000000..a82a1e82f --- /dev/null +++ b/keyboards/christmas_tree/V2017/V2017.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #ifndef V2017_H | ||
| 2 | #define V2017_H | ||
| 3 | |||
| 4 | #include "christmas_tree.h" | ||
| 5 | |||
| 6 | #endif \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/V2017/config.h b/keyboards/christmas_tree/V2017/config.h new file mode 100644 index 000000000..ebe3d3bf1 --- /dev/null +++ b/keyboards/christmas_tree/V2017/config.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #ifndef V2017_CONFIG_H | ||
| 2 | #define V2017_CONFIG_H | ||
| 3 | |||
| 4 | #include "config_common.h" | ||
| 5 | |||
| 6 | #define DEVICE_VER 0x2017 | ||
| 7 | |||
| 8 | #endif \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/V2017/info.json b/keyboards/christmas_tree/V2017/info.json new file mode 100644 index 000000000..6f47bdb3b --- /dev/null +++ b/keyboards/christmas_tree/V2017/info.json | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | { | ||
| 2 | "identifier": "FEED:3070:2017" | ||
| 3 | } \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/christmas_tree.c b/keyboards/christmas_tree/christmas_tree.c new file mode 100644 index 000000000..04d41c1db --- /dev/null +++ b/keyboards/christmas_tree/christmas_tree.c | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #include "christmas_tree.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | matrix_init_user(); | ||
| 5 | } | ||
diff --git a/keyboards/christmas_tree/christmas_tree.h b/keyboards/christmas_tree/christmas_tree.h new file mode 100644 index 000000000..1d77fa713 --- /dev/null +++ b/keyboards/christmas_tree/christmas_tree.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #ifndef CHRISTMAS_TREE_H | ||
| 2 | #define CHRISTMAS_TREE_H | ||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | |||
| 6 | #define KEYMAP( \ | ||
| 7 | k00, k01, k02, k03, k04, k05 \ | ||
| 8 | ) \ | ||
| 9 | { \ | ||
| 10 | { k00 }, \ | ||
| 11 | { k01 }, \ | ||
| 12 | { k02 }, \ | ||
| 13 | { k03 }, \ | ||
| 14 | { k04 }, \ | ||
| 15 | { k05 } \ | ||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | #endif | ||
diff --git a/keyboards/christmas_tree/config.h b/keyboards/christmas_tree/config.h new file mode 100644 index 000000000..4929f0ef5 --- /dev/null +++ b/keyboards/christmas_tree/config.h | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x3070 | ||
| 26 | #define MANUFACTURER Maple Computing | ||
| 27 | #define PRODUCT Christmas Tree | ||
| 28 | #define DESCRIPTION A tiny 6 key macro pad, in the shape of a christmas tree | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 6 | ||
| 32 | #define MATRIX_COLS 1 | ||
| 33 | |||
| 34 | /* Planck PCB default pin-out */ | ||
| 35 | #define MATRIX_ROW_PINS { D3, F4, D0, F6, F5, D4 } | ||
| 36 | #define MATRIX_COL_PINS { D1 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | #define BACKLIGHT_PIN D2 | ||
| 40 | |||
| 41 | /* COL2ROW or ROW2COL */ | ||
| 42 | #define DIODE_DIRECTION COL2ROW | ||
| 43 | |||
| 44 | /* define if matrix has ghost */ | ||
| 45 | //#define MATRIX_HAS_GHOST | ||
| 46 | |||
| 47 | /* number of backlight levels */ | ||
| 48 | #define BACKLIGHT_LEVELS 3 | ||
| 49 | |||
| 50 | /* Set 0 if debouncing isn't needed */ | ||
| 51 | #define DEBOUNCING_DELAY 5 | ||
| 52 | |||
| 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 54 | #define LOCKING_SUPPORT_ENABLE | ||
| 55 | /* Locking resynchronize hack */ | ||
| 56 | #define LOCKING_RESYNC_ENABLE | ||
| 57 | |||
| 58 | /* key combination for command */ | ||
| 59 | #define IS_COMMAND() ( \ | ||
| 60 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 61 | ) | ||
| 62 | |||
| 63 | #endif | ||
diff --git a/keyboards/christmas_tree/info.json b/keyboards/christmas_tree/info.json new file mode 100644 index 000000000..fde41acc2 --- /dev/null +++ b/keyboards/christmas_tree/info.json | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Christmas Tree", | ||
| 3 | "keyboard_folder": "christmas_tree", | ||
| 4 | "manufacturer": "Maple Computing", | ||
| 5 | "identifier": "FEED:3070:2017", | ||
| 6 | "url": "https://www.reddit.com/r/MechanicalKeyboards/comments/7cqxpf/gb_christmas_tree_pcb_gb_now_live/", | ||
| 7 | "processor": "atmega32u4", | ||
| 8 | "bootloader": "catarina", | ||
| 9 | "maintainer": "That-Canadian", | ||
| 10 | "width": 3, | ||
| 11 | "height": 3, | ||
| 12 | "layouts": { | ||
| 13 | "2017": { | ||
| 14 | "key_count": 6 | ||
| 15 | } | ||
| 16 | } | ||
| 17 | } \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/keymaps/default/config.h b/keyboards/christmas_tree/keymaps/default/config.h new file mode 100644 index 000000000..4553e621d --- /dev/null +++ b/keyboards/christmas_tree/keymaps/default/config.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | #endif \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/keymaps/default/keymap.c b/keyboards/christmas_tree/keymaps/default/keymap.c new file mode 100644 index 000000000..38da32628 --- /dev/null +++ b/keyboards/christmas_tree/keymaps/default/keymap.c | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | /* Copyright 2015-2017 Jack Humbert | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "christmas_tree.h" | ||
| 18 | |||
| 19 | extern keymap_config_t keymap_config; | ||
| 20 | |||
| 21 | enum layers { | ||
| 22 | _BASE, | ||
| 23 | _FUNC | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum custom_keycodes { | ||
| 27 | FUNC = SAFE_RANGE, | ||
| 28 | BACKLIT | ||
| 29 | }; | ||
| 30 | |||
| 31 | #define _______ KC_TRNS | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | |||
| 35 | /* Base | ||
| 36 | * ,------. | ||
| 37 | * | 1 | | ||
| 38 | * ,------+------. | ||
| 39 | * | 2 | 3 | | ||
| 40 | * ,------+------+------. | ||
| 41 | * | 4 | FUNC | 6 | | ||
| 42 | * `--------------------' | ||
| 43 | */ | ||
| 44 | [_BASE] = KEYMAP(KC_1, KC_2, KC_3, KC_4, MO(_FUNC), KC_6), | ||
| 45 | |||
| 46 | /* Func | ||
| 47 | * ,------. | ||
| 48 | * |BCKLIT| | ||
| 49 | * ,------+------. | ||
| 50 | * | 8 | 9 | | ||
| 51 | * ,------+------+------. | ||
| 52 | * | 0 | FUNC | RESET| | ||
| 53 | * `--------------------' | ||
| 54 | */ | ||
| 55 | [_FUNC] = KEYMAP(BACKLIT, KC_8, KC_9, KC_0, _______, RESET) | ||
| 56 | |||
| 57 | |||
| 58 | }; | ||
| 59 | |||
| 60 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 61 | switch (keycode) { | ||
| 62 | case BACKLIT: | ||
| 63 | if (record->event.pressed) { | ||
| 64 | register_code(KC_RSFT); | ||
| 65 | #ifdef BACKLIGHT_ENABLE | ||
| 66 | register_code(KC_LSFT); | ||
| 67 | backlight_step(); | ||
| 68 | #endif | ||
| 69 | } else { | ||
| 70 | unregister_code(KC_RSFT); | ||
| 71 | unregister_code(KC_LSFT); | ||
| 72 | } | ||
| 73 | return false; | ||
| 74 | break; | ||
| 75 | } | ||
| 76 | return true; | ||
| 77 | } \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/keymaps/default/readme.md b/keyboards/christmas_tree/keymaps/default/readme.md new file mode 100644 index 000000000..a9cb4586e --- /dev/null +++ b/keyboards/christmas_tree/keymaps/default/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # The Default Christmas Tree Layout | ||
| 2 | |||
diff --git a/keyboards/christmas_tree/keymaps/default/rules.mk b/keyboards/christmas_tree/keymaps/default/rules.mk new file mode 100644 index 000000000..457a3d01d --- /dev/null +++ b/keyboards/christmas_tree/keymaps/default/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef QUANTUM_DIR | ||
| 2 | include ../../../../Makefile | ||
| 3 | endif | ||
diff --git a/keyboards/christmas_tree/readme.md b/keyboards/christmas_tree/readme.md new file mode 100644 index 000000000..e0252328d --- /dev/null +++ b/keyboards/christmas_tree/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | Christmas Tree | ||
| 2 | === | ||
| 3 | |||
| 4 |  | ||
| 5 | |||
| 6 | A tiny 6 key macro pad, in the shape of a christmas tree, made by That-Canadian, SpaceCat, and ChillCaps. | ||
| 7 | |||
| 8 | Keyboard Maintainer: [That-Canadian](https://github.com/That-Canadian) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make christmas_tree/V2017:default | ||
| 13 | |||
| 14 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file | ||
diff --git a/keyboards/christmas_tree/rules.mk b/keyboards/christmas_tree/rules.mk new file mode 100644 index 000000000..741747eca --- /dev/null +++ b/keyboards/christmas_tree/rules.mk | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1287 | ||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Boot Section Size in *bytes* | ||
| 42 | # Teensy halfKay 512 | ||
| 43 | # Teensy++ halfKay 1024 | ||
| 44 | # Atmel DFU loader 4096 | ||
| 45 | # LUFA bootloader 4096 | ||
| 46 | # USBaspLoader 2048 | ||
| 47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 48 | |||
| 49 | # Build Options | ||
| 50 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 51 | # the appropriate keymap folder that will get included automatically | ||
| 52 | # | ||
| 53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 54 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 56 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 57 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 58 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 59 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 60 | MIDI_ENABLE = no # MIDI controls | ||
| 61 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 62 | UNICODE_ENABLE = no # Unicode | ||
| 63 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 64 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 65 | API_SYSEX_ENABLE = no | ||
| 66 | |||
| 67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 68 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 69 | |||
| 70 | DEFAULT_FOLDER = christmas_tree/V2017 | ||
