diff options
| author | cole smith <38364556+daysgobye@users.noreply.github.com> | 2020-10-17 03:17:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 03:17:44 -0700 |
| commit | f871f7a56fd954cfc4cabefd649bbcc991083806 (patch) | |
| tree | 8e4dc334014b29c93c767fa6738a5bc11bb4c9af | |
| parent | e0bdd511773ef25388a066e4db9a53f658f681ae (diff) | |
| download | qmk_firmware-f871f7a56fd954cfc4cabefd649bbcc991083806.tar.gz qmk_firmware-f871f7a56fd954cfc4cabefd649bbcc991083806.zip | |
[Keyboard] Boardsource spooky (#10521)
* added spooky keyboard t
o boardsouce folder
* restoring to clean start I think
* added back in my files for this keyboard
* Update keyboards/boardsource/holiday/spooky/config.h
* Update keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c
* Update keyboards/boardsource/holiday/spooky/readme.md
* Update keyboards/boardsource/holiday/spooky/spooky.h
* updated all keymaps to support 2x3 ortho
* Apply suggestions from code review
11 files changed, 430 insertions, 0 deletions
diff --git a/keyboards/boardsource/holiday/spooky/config.h b/keyboards/boardsource/holiday/spooky/config.h new file mode 100644 index 000000000..92eb4c32a --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/config.h | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 boardsource | ||
| 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 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x4273 | ||
| 24 | #define PRODUCT_ID 0x1031 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Boardsource | ||
| 27 | #define PRODUCT spooky | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 2 | ||
| 31 | #define MATRIX_COLS 3 | ||
| 32 | |||
| 33 | #define DIRECT_PINS { {E6,B4,B5}, {B3,B2,B6}} | ||
| 34 | |||
| 35 | #define RGB_DI_PIN D3 | ||
| 36 | #define RGBLIGHT_ANIMATIONS | ||
| 37 | #ifdef RGBLIGHT_ENABLE | ||
| 38 | #define RGBLED_NUM 5 // Number of LEDs | ||
| 39 | #endif | ||
| 40 | |||
| 41 | |||
| 42 | //#define BACKLIGHT_PIN B7 | ||
| 43 | //#define BACKLIGHT_LEVELS 3 | ||
| 44 | //#define BACKLIGHT_BREATHING | ||
| 45 | |||
| 46 | //#define RGB_DI_PIN E2 | ||
| 47 | //#ifdef RGB_DI_PIN | ||
| 48 | //# define RGBLED_NUM 16 | ||
| 49 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 50 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 51 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 52 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 53 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 54 | /*== all animations enable ==*/ | ||
| 55 | //# define RGBLIGHT_ANIMATIONS | ||
| 56 | /*== or choose animations ==*/ | ||
| 57 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 58 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 59 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 60 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 61 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 62 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 63 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 64 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 65 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 66 | /*== customize breathing effect ==*/ | ||
| 67 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 68 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 69 | /*==== use exp() and sin() ====*/ | ||
| 70 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 71 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 72 | //#endif | ||
| 73 | |||
| 74 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 75 | #define DEBOUNCE 5 | ||
| 76 | |||
| 77 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 78 | //#define MATRIX_HAS_GHOST | ||
| 79 | |||
| 80 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 81 | #define LOCKING_SUPPORT_ENABLE | ||
| 82 | /* Locking resynchronize hack */ | ||
| 83 | #define LOCKING_RESYNC_ENABLE | ||
| 84 | |||
| 85 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 86 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 87 | */ | ||
| 88 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 89 | |||
| 90 | /* | ||
| 91 | * Force NKRO | ||
| 92 | * | ||
| 93 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 94 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 95 | * makefile for this to work.) | ||
| 96 | * | ||
| 97 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 98 | * until the next keyboard reset. | ||
| 99 | * | ||
| 100 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 101 | * fully operational during normal computer usage. | ||
| 102 | * | ||
| 103 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 104 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 105 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 106 | * power-up. | ||
| 107 | * | ||
| 108 | */ | ||
| 109 | //#define FORCE_NKRO | ||
| 110 | |||
| 111 | /* | ||
| 112 | * Feature disable options | ||
| 113 | * These options are also useful to firmware size reduction. | ||
| 114 | */ | ||
| 115 | |||
| 116 | /* disable debug print */ | ||
| 117 | //#define NO_DEBUG | ||
| 118 | |||
| 119 | /* disable print */ | ||
| 120 | //#define NO_PRINT | ||
| 121 | |||
| 122 | /* disable action features */ | ||
| 123 | //#define NO_ACTION_LAYER | ||
| 124 | //#define NO_ACTION_TAPPING | ||
| 125 | //#define NO_ACTION_ONESHOT | ||
| 126 | |||
| 127 | /* disable these deprecated features by default */ | ||
| 128 | #define NO_ACTION_MACRO | ||
| 129 | #define NO_ACTION_FUNCTION | ||
| 130 | |||
| 131 | /* Bootmagic Lite key configuration */ | ||
| 132 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 133 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/boardsource/holiday/spooky/info.json b/keyboards/boardsource/holiday/spooky/info.json new file mode 100644 index 000000000..a39b45b72 --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/info.json | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "spooky", | ||
| 3 | "url": "https://boardsource.xyz/store/5f783f6da2c1b43e37ca0795", | ||
| 4 | "maintainer": "boardsource", | ||
| 5 | "width": 3, | ||
| 6 | "height": 2, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "k00", "x": 0, "y": 0 }, | ||
| 11 | { "label": "k01", "x": 1, "y": 0 }, | ||
| 12 | { "label": "k02", "x": 2, "y": 0 }, | ||
| 13 | |||
| 14 | { "label": "k10", "x": 0, "y": 1 }, | ||
| 15 | { "label": "k11", "x": 1, "y": 1 }, | ||
| 16 | { "label": "k12", "x": 2, "y": 1 } | ||
| 17 | ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | } | ||
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/default/keymap.c b/keyboards/boardsource/holiday/spooky/keymaps/default/keymap.c new file mode 100644 index 000000000..b4fcfc1bc --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/keymaps/default/keymap.c | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | /* Copyright 2020 boardsource | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | /* Base */ | ||
| 25 | [_BASE] = LAYOUT_ortho_2x3( | ||
| 26 | KC_F1, KC_F2, KC_F3, | ||
| 27 | KC_F4, KC_F5,KC_F6 | ||
| 28 | ), | ||
| 29 | }; | ||
| 30 | |||
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c new file mode 100644 index 000000000..44b234e4a --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/keymap.c | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | /* Copyright 2020 boardsource | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | /* Base */ | ||
| 25 | [_BASE] = LAYOUT_ortho_2x3( | ||
| 26 | RGB_TOG, KC_VOLU, KC_F2, | ||
| 27 | RGB_MOD, KC_VOLD, KC_F1 | ||
| 28 | ), | ||
| 29 | }; | ||
| 30 | #ifdef OLED_DRIVER_ENABLE | ||
| 31 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 32 | return OLED_ROTATION_180; | ||
| 33 | } | ||
| 34 | |||
| 35 | static void render_RIP(void) { | ||
| 36 | static const char PROGMEM my_logo[] = { | ||
| 37 | 0xff, 0xff, 0x07, 0x1e, 0x70, 0xc0, 0x00, 0x00, 0xe0, 0x78, 0x1e, 0x07, 0xff, 0xfe, 0x00, 0x00, | ||
| 38 | 0x00, 0x00, 0x03, 0x06, 0x1c, 0xb8, 0xf0, 0xe0, 0xb8, 0x1c, 0x0e, 0x07, 0x00, 0x00, 0x00, 0x00, | ||
| 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x3e, 0x66, 0x63, 0x63, 0x43, 0x43, 0xc3, 0xc2, 0x82, | ||
| 40 | 0x00, 0x00, 0x00, 0x30, 0xf0, 0xc0, 0x00, 0x00, 0xc0, 0xf0, 0x30, 0xf0, 0x80, 0x00, 0x00, 0xc0, | ||
| 41 | 0xf0, 0x10, 0x00, 0x00, 0x00, 0xf3, 0xf3, 0x00, 0x00, 0x10, 0x18, 0xfe, 0x18, 0x10, 0x10, 0x10, | ||
| 42 | 0x00, 0x00, 0xc0, 0xe0, 0x30, 0x10, 0x18, 0x18, 0x18, 0x10, 0x10, 0x00, 0x00, 0x00, 0xff, 0xff, | ||
| 43 | 0x30, 0x10, 0x18, 0x18, 0x18, 0x30, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0xe0, 0xf0, 0x90, 0x90, 0x98, | ||
| 44 | 0x98, 0x98, 0xb0, 0xf0, 0xe0, 0x00, 0x00, 0x00, 0xf0, 0x90, 0x98, 0x98, 0x18, 0x18, 0x10, 0x00, | ||
| 45 | 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, | ||
| 46 | 0x00, 0x10, 0x1c, 0x0e, 0x07, 0x01, 0x00, 0x00, 0x01, 0x07, 0x0e, 0x1c, 0x18, 0x00, 0x00, 0x00, | ||
| 47 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x18, 0x18, 0x10, 0x10, 0x18, 0x18, 0x0d, 0x0f, | ||
| 48 | 0x03, 0x00, 0x00, 0x00, 0x01, 0x0f, 0x1e, 0x1e, 0x07, 0x00, 0x00, 0x01, 0x0f, 0x1c, 0x1e, 0x07, | ||
| 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x0c, 0x18, 0x18, 0x18, | ||
| 50 | 0x00, 0x00, 0x03, 0x0f, 0x0c, 0x18, 0x10, 0x10, 0x10, 0x18, 0x08, 0x00, 0x00, 0x00, 0x1f, 0x1f, | ||
| 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x1f, 0x00, 0x00, 0x00, 0x07, 0x0f, 0x08, 0x18, 0x10, | ||
| 52 | 0x10, 0x10, 0x18, 0x18, 0x08, 0x00, 0x00, 0x08, 0x18, 0x10, 0x11, 0x11, 0x11, 0x19, 0x0f, 0x0e, | ||
| 53 | 0x00, 0x30, 0x30, 0x10, 0x10, 0xf0, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xf0, | ||
| 54 | 0x30, 0x10, 0x18, 0x18, 0x10, 0x70, 0xe0, 0x80, 0x00, 0x00, 0x00, 0x40, 0xf0, 0xb0, 0x10, 0x18, | ||
| 55 | 0x18, 0x10, 0x30, 0xf0, 0xe0, 0x00, 0x00, 0x00, 0x80, 0xe0, 0x70, 0x10, 0x18, 0x18, 0x10, 0x30, | ||
| 56 | 0xf0, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 57 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x10, 0x18, 0x18, 0x18, | ||
| 58 | 0x10, 0x30, 0xf0, 0xc0, 0x00, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0x30, 0x10, 0x18, 0x10, 0x30, 0xf0, | ||
| 59 | 0xe0, 0x00, 0x00, 0x00, 0x00, 0x30, 0x10, 0x10, 0x18, 0x18, 0x10, 0x30, 0xf0, 0xe0, 0x00, 0x00, | ||
| 60 | 0x00, 0x00, 0xc0, 0xe0, 0x30, 0x10, 0x18, 0x18, 0x10, 0x30, 0xe0, 0xc0, 0x00, 0x00, 0x00, 0x00, | ||
| 61 | 0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xff, 0xff, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc7, | ||
| 62 | 0xc4, 0x8c, 0x8c, 0xcc, 0xc4, 0x77, 0x3f, 0x0f, 0x00, 0x00, 0x00, 0x38, 0x7d, 0xc7, 0xc3, 0x82, | ||
| 63 | 0x82, 0xc3, 0xc7, 0x7d, 0x7c, 0x00, 0x00, 0x00, 0x0f, 0x3f, 0x70, 0xc0, 0x80, 0x80, 0xc0, 0xc0, | ||
| 64 | 0x7f, 0x3f, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x08, 0x08, 0x08, | ||
| 65 | 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xe0, 0xf0, 0xf0, 0xd8, 0xcc, | ||
| 66 | 0xc6, 0xc3, 0xc1, 0xc0, 0x00, 0x00, 0x00, 0x0f, 0x3f, 0x70, 0xc0, 0xc0, 0x80, 0xc0, 0xc0, 0x70, | ||
| 67 | 0x3f, 0x0f, 0x00, 0x00, 0x00, 0xc0, 0xe0, 0xf0, 0xd8, 0xcc, 0xcc, 0xc7, 0xc3, 0xc1, 0x00, 0x00, | ||
| 68 | 0x00, 0x00, 0x3f, 0x7f, 0xe0, 0xc0, 0x80, 0x80, 0xc0, 0x60, 0x7f, 0x1f, 0x00, 0x00, 0x00, 0x00 | ||
| 69 | }; | ||
| 70 | |||
| 71 | oled_write_raw_P(my_logo, sizeof(my_logo)); | ||
| 72 | } | ||
| 73 | |||
| 74 | void oled_task_user(void) { | ||
| 75 | render_RIP(); | ||
| 76 | } | ||
| 77 | |||
| 78 | #endif | ||
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/rules.mk b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/rules.mk new file mode 100644 index 000000000..c58266213 --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_mx/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| OLED_DRIVER_ENABLE = yes | |||
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c new file mode 100644 index 000000000..88fc47a1d --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/keymap.c | |||
| @@ -0,0 +1,78 @@ | |||
| 1 | /* Copyright 2020 boardsource | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | /* Base */ | ||
| 25 | [_BASE] = LAYOUT_ortho_2x3( | ||
| 26 | RGB_TOG, KC_1, KC_2, | ||
| 27 | RGB_MOD, KC_3,KC_4 | ||
| 28 | ), | ||
| 29 | }; | ||
| 30 | #ifdef OLED_DRIVER_ENABLE | ||
| 31 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 32 | return OLED_ROTATION_180; | ||
| 33 | } | ||
| 34 | |||
| 35 | static void render_RIP(void) { | ||
| 36 | static const char PROGMEM my_logo[] = { | ||
| 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x08, 0x04, | ||
| 39 | 0x04, 0x7c, 0xfc, 0xf0, 0x00, 0x00, 0x40, 0x20, 0xf0, 0x7c, 0x06, 0x00, 0x41, 0xc0, 0x00, 0x00, | ||
| 40 | 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x00, 0x00, 0xc0, 0x00, | ||
| 41 | 0x00, 0x00, 0xe0, 0x60, 0x00, 0x80, 0x40, 0x20, 0x20, 0xe0, 0x00, 0x00, 0x00, 0xf0, 0x3c, 0x02, | ||
| 42 | 0x01, 0xc1, 0xf8, 0x0e, 0x00, 0x01, 0xc0, 0x00, 0xe0, 0xe0, 0x00, 0x00, 0x00, 0xf0, 0x50, 0x00, | ||
| 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 44 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 45 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 46 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x10, 0x00, 0x08, | ||
| 47 | 0x03, 0x00, 0x00, 0x0f, 0x06, 0x01, 0x00, 0x1e, 0x1f, 0x10, 0x00, 0x00, 0x1e, 0x1f, 0x08, 0xc0, | ||
| 48 | 0x3e, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x1e, 0x11, 0x08, 0x04, 0x1e, 0x11, 0x00, | ||
| 49 | 0x08, 0x06, 0x01, 0x00, 0x1e, 0x19, 0x08, 0x00, 0x1e, 0x0b, 0x08, 0x00, 0x1f, 0x1b, 0x08, 0x00, | ||
| 50 | 0x18, 0x1f, 0x00, 0x00, 0x00, 0x1f, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x19, 0x08, 0x00, | ||
| 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, | ||
| 55 | 0x84, 0x84, 0x84, 0xcc, 0x38, 0x00, 0x00, 0x00, 0xf0, 0x18, 0x04, 0x05, 0x0f, 0x79, 0xe1, 0x00, | ||
| 56 | 0x00, 0x00, 0xc0, 0x78, 0x0c, 0x00, 0x00, 0x0c, 0x84, 0x84, 0xcc, 0xf8, 0x30, 0x00, 0x00, 0xe0, | ||
| 57 | 0xf8, 0x0c, 0x04, 0x04, 0x0c, 0xf8, 0x80, 0x00, 0x00, 0x00, 0xe0, 0x1c, 0x00, 0x00, 0x08, 0x0c, | ||
| 58 | 0x04, 0x04, 0xcc, 0x78, 0x00, 0x00, 0x00, 0xf0, 0x18, 0x0c, 0x04, 0x0c, 0x18, 0xf0, 0x00, 0x00, | ||
| 59 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, | ||
| 63 | 0x10, 0x10, 0x10, 0x19, 0x0f, 0x00, 0x00, 0x00, 0x0f, 0x18, 0x10, 0x10, 0x18, 0x0f, 0x07, 0x00, | ||
| 64 | 0x20, 0x1e, 0x03, 0x00, 0x00, 0x00, 0x18, 0x10, 0x10, 0x10, 0x10, 0x1d, 0x0f, 0x00, 0x00, 0x03, | ||
| 65 | 0x0f, 0x18, 0x10, 0x10, 0x18, 0x0f, 0x00, 0x00, 0x38, 0x0f, 0x01, 0x00, 0x00, 0x00, 0x18, 0x1c, | ||
| 66 | 0x16, 0x13, 0x10, 0x10, 0x00, 0x00, 0x00, 0x07, 0x1c, 0x10, 0x10, 0x10, 0x0c, 0x07, 0x00, 0x00, | ||
| 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 69 | }; | ||
| 70 | |||
| 71 | oled_write_raw_P(my_logo, sizeof(my_logo)); | ||
| 72 | } | ||
| 73 | |||
| 74 | void oled_task_user(void) { | ||
| 75 | render_RIP(); | ||
| 76 | } | ||
| 77 | |||
| 78 | #endif | ||
diff --git a/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/rules.mk b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/rules.mk new file mode 100644 index 000000000..c58266213 --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/keymaps/rip_my_wallet/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| OLED_DRIVER_ENABLE = yes | |||
diff --git a/keyboards/boardsource/holiday/spooky/readme.md b/keyboards/boardsource/holiday/spooky/readme.md new file mode 100644 index 000000000..a4b16595a --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # spooky | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | this is a limited edition macro pad for the spookiest time of year | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [boardsource](https://github.com/boardsource) | ||
| 8 | * Hardware Supported: spooky v1 PCB | ||
| 9 | * Hardware Availability: [From Boardsource store around halloween time](https://boardsource.xyz/store/5f783f6da2c1b43e37ca0795) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make boardsource/holiday/spooky:default | ||
| 14 | |||
| 15 | 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/boardsource/holiday/spooky/rules.mk b/keyboards/boardsource/holiday/spooky/rules.mk new file mode 100644 index 000000000..d23e95512 --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/boardsource/holiday/spooky/spooky.c b/keyboards/boardsource/holiday/spooky/spooky.c new file mode 100644 index 000000000..87fe02c1a --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/spooky.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 boardsource | ||
| 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 "spooky.h" | ||
diff --git a/keyboards/boardsource/holiday/spooky/spooky.h b/keyboards/boardsource/holiday/spooky/spooky.h new file mode 100644 index 000000000..42127b8f4 --- /dev/null +++ b/keyboards/boardsource/holiday/spooky/spooky.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2020 boardsource | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT_ortho_2x3( \ | ||
| 30 | k00, k01, k02, \ | ||
| 31 | k10, k11, k12 \ | ||
| 32 | ) { \ | ||
| 33 | { k00, k01, k02 }, \ | ||
| 34 | { k10, k11, k12 } \ | ||
| 35 | } | ||
