diff options
Diffstat (limited to 'keyboards/spaceman')
34 files changed, 727 insertions, 0 deletions
diff --git a/keyboards/spaceman/2_milk/2_milk.c b/keyboards/spaceman/2_milk/2_milk.c new file mode 100644 index 000000000..96071c2ad --- /dev/null +++ b/keyboards/spaceman/2_milk/2_milk.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 "2_milk.h" | ||
diff --git a/keyboards/spaceman/2_milk/2_milk.h b/keyboards/spaceman/2_milk/2_milk.h new file mode 100644 index 000000000..7d90d2064 --- /dev/null +++ b/keyboards/spaceman/2_milk/2_milk.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT( \ | ||
| 21 | K00, \ | ||
| 22 | K01 \ | ||
| 23 | ) { \ | ||
| 24 | { K00 }, \ | ||
| 25 | { K01 } \ | ||
| 26 | } | ||
diff --git a/keyboards/spaceman/2_milk/config.h b/keyboards/spaceman/2_milk/config.h new file mode 100644 index 000000000..49211535d --- /dev/null +++ b/keyboards/spaceman/2_milk/config.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0xFEED | ||
| 21 | #define PRODUCT_ID 0xB195 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER Spaceman | ||
| 24 | #define PRODUCT 2% Milk | ||
| 25 | #define DESCRIPTION A milk themed 2% Keyboard | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 2 | ||
| 29 | #define MATRIX_COLS 1 | ||
| 30 | |||
| 31 | /* Milk default pinout */ | ||
| 32 | #define DIRECT_PINS { \ | ||
| 33 | {D4}, \ | ||
| 34 | {C6} \ | ||
| 35 | } | ||
| 36 | #define UNUSED_PINS | ||
| 37 | |||
| 38 | #ifdef RGBLIGHT_ENABLE | ||
| 39 | #define RGB_DI_PIN B6 | ||
| 40 | #define RGBLED_NUM 1 | ||
| 41 | #endif | ||
diff --git a/keyboards/spaceman/2_milk/info.json b/keyboards/spaceman/2_milk/info.json new file mode 100644 index 000000000..6c2bd78b2 --- /dev/null +++ b/keyboards/spaceman/2_milk/info.json | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "2% Milk", | ||
| 3 | "keyboard_folder": "2_milk", | ||
| 4 | "url": "", | ||
| 5 | "maintainer": "Spaceman", | ||
| 6 | "width": 1, | ||
| 7 | "height": 2, | ||
| 8 | "layouts": { | ||
| 9 | "LAYOUT": { | ||
| 10 | "key_count": 2, | ||
| 11 | "layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }] | ||
| 12 | } | ||
| 13 | } | ||
| 14 | } | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/binary/keymap.c b/keyboards/spaceman/2_milk/keymaps/binary/keymap.c new file mode 100644 index 000000000..c8df8e9ff --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/binary/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_P0, | ||
| 6 | KC_P1 | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/binary/readme.md b/keyboards/spaceman/2_milk/keymaps/binary/readme.md new file mode 100644 index 000000000..5ebcbd3e5 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/binary/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Binary keymap | ||
| 2 | 0 and 1 that's it | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c b/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c new file mode 100644 index 000000000..c82a6ff21 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/copypasta/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | RCTL(KC_C), | ||
| 6 | RCTL(KC_V) | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md b/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md new file mode 100644 index 000000000..6c2f4e8fb --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/copypasta/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Copy/Paste Keymap | ||
| 2 |  | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/default/keymap.c b/keyboards/spaceman/2_milk/keymaps/default/keymap.c new file mode 100644 index 000000000..1f327eee9 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/default/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_Z, | ||
| 6 | KC_X | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/default/readme.md b/keyboards/spaceman/2_milk/keymaps/default/readme.md new file mode 100644 index 000000000..4482bce34 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/default/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Default keymap for 2% Milk | ||
| 2 |  | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/config.h b/keyboards/spaceman/2_milk/keymaps/emoji/config.h new file mode 100644 index 000000000..90e4d6310 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/emoji/config.h | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | #define UNICODE_SELECTED_MODES UC_LNX, UC_OSX, UC_WIN, UC_WINC | ||
| 2 | #define TAPPING_TERM 300 \ No newline at end of file | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c b/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c new file mode 100644 index 000000000..024a6a054 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum tapdance_keycodes { | ||
| 4 | TD_KEY_1, | ||
| 5 | TD_KEY_2, | ||
| 6 | }; | ||
| 7 | |||
| 8 | void dance_key_one (qk_tap_dance_state_t *state, void *user_data) { | ||
| 9 | if (state->count == 1) { | ||
| 10 | send_unicode_hex_string("00AF 005C 005F 0028 30C4 0029 005F 002F 00AF"); // ¯\_(ツ)_/¯ | ||
| 11 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 12 | reset_tap_dance (state); | ||
| 13 | } else if (state->count == 2) { | ||
| 14 | cycle_unicode_input_mode(+1); | ||
| 15 | reset_tap_dance (state); | ||
| 16 | } | ||
| 17 | } | ||
| 18 | |||
| 19 | void dance_key_two (qk_tap_dance_state_t *state, void *user_data) { | ||
| 20 | if (state->count == 1) { | ||
| 21 | send_unicode_hex_string("0CA0 005F 0CA0"); // ಠ_ಠ | ||
| 22 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 23 | reset_tap_dance (state); | ||
| 24 | } else if (state->count == 2) { | ||
| 25 | send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B"); // (ノಠ痊ಠ)ノ彡┻━┻ | ||
| 26 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 27 | reset_tap_dance (state); | ||
| 28 | } else if (state->count == 3) { | ||
| 29 | send_unicode_hex_string("256D 2229 256E 0028 002D 005F 002D 0029 256D 2229 256E"); // ╭∩╮(-_-)╭∩╮ | ||
| 30 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 31 | reset_tap_dance (state); | ||
| 32 | } else if (state->count == 4) { | ||
| 33 | send_unicode_hex_string("0028 3065 FFE3 0020 00B3 FFE3 0029 3065"); // (づ ̄ ³ ̄)づ | ||
| 34 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 35 | reset_tap_dance (state); | ||
| 36 | } else if (state->count == 5) { | ||
| 37 | send_unicode_hex_string("0028 FE3A FE39 FE3A 0029"); // (︺︹︺) | ||
| 38 | SEND_STRING(SS_TAP(X_ENTER)); | ||
| 39 | reset_tap_dance (state); | ||
| 40 | } | ||
| 41 | } | ||
| 42 | |||
| 43 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 44 | [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one), | ||
| 45 | [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two), | ||
| 46 | }; | ||
| 47 | |||
| 48 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 49 | [0] = LAYOUT( | ||
| 50 | TD(TD_KEY_1), | ||
| 51 | TD(TD_KEY_2) | ||
| 52 | ), | ||
| 53 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/readme.md b/keyboards/spaceman/2_milk/keymaps/emoji/readme.md new file mode 100644 index 000000000..1d5a08730 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/emoji/readme.md | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | # Emoji Keymap | ||
| 2 |  | ||
| 3 | |||
| 4 | # Unicode Setup | ||
| 5 | |||
| 6 | Unicode input in QMK works by inputting a sequence of characters to the | ||
| 7 | OS, sort of like a macro. Unfortunately, the way this is done differs | ||
| 8 | for each platform. Specifically, each platform requires a different | ||
| 9 | combination of keys to trigger Unicode input. Therefore, a | ||
| 10 | corresponding input mode has to be set in QMK. | ||
| 11 | |||
| 12 | Documentation: [Feature Unicode](https://beta.docs.qmk.fm/features/feature_unicode#input-modes) | ||
| 13 | |||
| 14 | On this keymap the default unicode mode it's `UC_LNX`. | ||
| 15 | You can change it permanently tapping 2 times the KeyOne to select the next mode. | ||
| 16 | |||
| 17 | ## Unicode Mode List | ||
| 18 | - UC_LNX | ||
| 19 | - UC_OSX | ||
| 20 | - UC_WIN | ||
| 21 | - UC_WINC | ||
| 22 | |||
| 23 | # Keymap | ||
| 24 | To add more functionality to this Minimal Keyboard, | ||
| 25 | it's implemented the tap dance feature, so pressing the same key | ||
| 26 | multiples times will produce different emojis. | ||
| 27 | |||
| 28 | ## Key One | ||
| 29 | |||
| 30 | - 1 Tap: `¯\_(ツ)_/¯` | ||
| 31 | - 2 Taps: Switch Unicode Input Type | ||
| 32 | |||
| 33 | ## Key Two | ||
| 34 | |||
| 35 | - 1 Tap: `ಠ_ಠ` | ||
| 36 | - 2 Taps: `(ノಠ痊ಠ)ノ彡┻━┻` | ||
| 37 | - 3 Taps: `╭∩╮(-_-)╭∩╮` | ||
| 38 | - 4 Taps: `(づ ̄ ³ ̄)づ` | ||
| 39 | - 5 Taps: `(︺︹︺)` \ No newline at end of file | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/rules.mk b/keyboards/spaceman/2_milk/keymaps/emoji/rules.mk new file mode 100644 index 000000000..7a64eb902 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/emoji/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | UNICODE_ENABLE = yes # Unicode | ||
| 2 | TAP_DANCE_ENABLE = yes # Tap Dance \ No newline at end of file | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c b/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c new file mode 100644 index 000000000..a01b47f27 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/excessbread/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_LGUI, | ||
| 6 | KC_F11 | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md b/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md new file mode 100644 index 000000000..a6535e62c --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/excessbread/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # ExcessBread's keymap | ||
| 2 | requested by excessbread | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/mikethetiger/keymap.c b/keyboards/spaceman/2_milk/keymaps/mikethetiger/keymap.c new file mode 100644 index 000000000..20e2292f0 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/mikethetiger/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_VOLU, | ||
| 6 | KC_VOLD | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/mikethetiger/readme.md b/keyboards/spaceman/2_milk/keymaps/mikethetiger/readme.md new file mode 100644 index 000000000..677732b05 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/mikethetiger/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # mikethetiger's keymap for 2% Milk | |||
diff --git a/keyboards/spaceman/2_milk/keymaps/mikethetiger/rules.mk b/keyboards/spaceman/2_milk/keymaps/mikethetiger/rules.mk new file mode 100644 index 000000000..b5f038ef2 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/mikethetiger/rules.mk | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Build Options | ||
| 2 | # comment out to disable the options. | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 5 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 7 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 8 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 9 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 10 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled | ||
| 12 | AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below | ||
| 13 | RGBLIGHT_ENABLE = yes # This can be enabled if a ws2812 strip is connected to the expansion port. | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/mouse/keymap.c b/keyboards/spaceman/2_milk/keymaps/mouse/keymap.c new file mode 100644 index 000000000..a8ba44fb4 --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/mouse/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | [0] = LAYOUT( | ||
| 5 | KC_BTN1, | ||
| 6 | KC_BTN2 | ||
| 7 | ) | ||
| 8 | }; | ||
diff --git a/keyboards/spaceman/2_milk/keymaps/mouse/readme.md b/keyboards/spaceman/2_milk/keymaps/mouse/readme.md new file mode 100644 index 000000000..8ecb99edd --- /dev/null +++ b/keyboards/spaceman/2_milk/keymaps/mouse/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # left and right mouse buttons | ||
| 2 | requested by WanderingVagrant | ||
diff --git a/keyboards/spaceman/2_milk/readme.md b/keyboards/spaceman/2_milk/readme.md new file mode 100644 index 000000000..6745aa65c --- /dev/null +++ b/keyboards/spaceman/2_milk/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # 2% Milk | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 2% Meme board themed around a milk carton | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Spaceman](https://github.com/Spaceman) | ||
| 8 | Hardware Availability: [Open Source](https://github.com/Spaceman/Spaceboards/tree/master/Keyboards/2%25%20Milk) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make spaceman/2_milk:default | ||
| 13 | |||
| 14 | 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). | ||
| 15 | |||
| 16 | ### Credits | ||
| 17 | + Case design by Soft | ||
| 18 | + PCB by PyroL | ||
| 19 | + Name by jetpacktuxedo | ||
diff --git a/keyboards/spaceman/2_milk/rules.mk b/keyboards/spaceman/2_milk/rules.mk new file mode 100644 index 000000000..4e6c5f703 --- /dev/null +++ b/keyboards/spaceman/2_milk/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # comment out to disable the options. | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug | ||
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 24 | BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled | ||
| 25 | AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below | ||
| 26 | RGBLIGHT_ENABLE = yes # This can be enabled if a ws2812 strip is connected to the expansion port. | ||
diff --git a/keyboards/spaceman/pancake/config.h b/keyboards/spaceman/pancake/config.h new file mode 100644 index 000000000..5a01a572e --- /dev/null +++ b/keyboards/spaceman/pancake/config.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0xFEED | ||
| 21 | #define PRODUCT_ID 0xB195 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER Spaceman | ||
| 24 | #define PRODUCT Pancake | ||
| 25 | #define DESCRIPTION Choc Ortho Keyboard | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 4 | ||
| 29 | #define MATRIX_COLS 12 | ||
| 30 | |||
| 31 | #define DIODE_DIRECTION COL2ROW \ No newline at end of file | ||
diff --git a/keyboards/spaceman/pancake/feather/config.h b/keyboards/spaceman/pancake/feather/config.h new file mode 100644 index 000000000..eac91a5ad --- /dev/null +++ b/keyboards/spaceman/pancake/feather/config.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* Pancake default pinout */ | ||
| 20 | #define MATRIX_ROW_PINS { B5, D7, C6, D0 } | ||
| 21 | #define MATRIX_COL_PINS { C7, D6, B7, B6, F0, D2, D3, F1, F4, F5, F6, F7 } | ||
| 22 | #define UNUSED_PINS | ||
| 23 | |||
| 24 | #define AdafruitBleResetPin D4 | ||
| 25 | #define AdafruitBleCSPin B4 | ||
| 26 | #define AdafruitBleIRQPin E6 \ No newline at end of file | ||
diff --git a/keyboards/spaceman/pancake/feather/rules.mk b/keyboards/spaceman/pancake/feather/rules.mk new file mode 100644 index 000000000..c54fbf06e --- /dev/null +++ b/keyboards/spaceman/pancake/feather/rules.mk | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 8000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | # Teensy halfkay | ||
| 9 | # Pro Micro caterina | ||
| 10 | # Atmel DFU atmel-dfu | ||
| 11 | # LUFA DFU lufa-dfu | ||
| 12 | # QMK DFU qmk-dfu | ||
| 13 | # ATmega32A bootloadHID | ||
| 14 | # ATmega328P USBasp | ||
| 15 | BOOTLOADER = caterina | ||
| 16 | |||
| 17 | # Build Options | ||
| 18 | # comment out to disable the options. | ||
| 19 | # | ||
| 20 | BLUETOOTH = AdafruitBLE | ||
| 21 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | ||
| 22 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 23 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
| 24 | CONSOLE_ENABLE = yes # Console for debug | ||
| 25 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 26 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 27 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 28 | BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled | ||
| 29 | AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below | ||
| 30 | RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. | ||
| 31 | |||
| 32 | LAYOUTS = ortho_4x12 planck_mit | ||
diff --git a/keyboards/spaceman/pancake/info.json b/keyboards/spaceman/pancake/info.json new file mode 100644 index 000000000..9a21f09e1 --- /dev/null +++ b/keyboards/spaceman/pancake/info.json | |||
| @@ -0,0 +1,113 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Pancake", | ||
| 3 | "keyboard_folder": "Pancake", | ||
| 4 | "url": "", | ||
| 5 | "maintainer": "Spaceman", | ||
| 6 | "width": 12, | ||
| 7 | "height": 4, | ||
| 8 | "layouts": { | ||
| 9 | "LAYOUT_planck_mit": { | ||
| 10 | "key_count": 47, | ||
| 11 | "layout": [ | ||
| 12 | { "w": 1, "x": 0, "y": 0 }, | ||
| 13 | { "w": 1, "x": 1, "y": 0 }, | ||
| 14 | { "w": 1, "x": 2, "y": 0 }, | ||
| 15 | { "w": 1, "x": 3, "y": 0 }, | ||
| 16 | { "w": 1, "x": 4, "y": 0 }, | ||
| 17 | { "w": 1, "x": 5, "y": 0 }, | ||
| 18 | { "w": 1, "x": 6, "y": 0 }, | ||
| 19 | { "w": 1, "x": 7, "y": 0 }, | ||
| 20 | { "w": 1, "x": 8, "y": 0 }, | ||
| 21 | { "w": 1, "x": 9, "y": 0 }, | ||
| 22 | { "w": 1, "x": 10, "y": 0 }, | ||
| 23 | { "w": 1, "x": 11, "y": 0 }, | ||
| 24 | { "w": 1, "x": 0, "y": 1 }, | ||
| 25 | { "w": 1, "x": 1, "y": 1 }, | ||
| 26 | { "w": 1, "x": 2, "y": 1 }, | ||
| 27 | { "w": 1, "x": 3, "y": 1 }, | ||
| 28 | { "w": 1, "x": 4, "y": 1 }, | ||
| 29 | { "w": 1, "x": 5, "y": 1 }, | ||
| 30 | { "w": 1, "x": 6, "y": 1 }, | ||
| 31 | { "w": 1, "x": 7, "y": 1 }, | ||
| 32 | { "w": 1, "x": 8, "y": 1 }, | ||
| 33 | { "w": 1, "x": 9, "y": 1 }, | ||
| 34 | { "w": 1, "x": 10, "y": 1 }, | ||
| 35 | { "w": 1, "x": 11, "y": 1 }, | ||
| 36 | { "w": 1, "x": 0, "y": 2 }, | ||
| 37 | { "w": 1, "x": 1, "y": 2 }, | ||
| 38 | { "w": 1, "x": 2, "y": 2 }, | ||
| 39 | { "w": 1, "x": 3, "y": 2 }, | ||
| 40 | { "w": 1, "x": 4, "y": 2 }, | ||
| 41 | { "w": 1, "x": 5, "y": 2 }, | ||
| 42 | { "w": 1, "x": 6, "y": 2 }, | ||
| 43 | { "w": 1, "x": 7, "y": 2 }, | ||
| 44 | { "w": 1, "x": 8, "y": 2 }, | ||
| 45 | { "w": 1, "x": 9, "y": 2 }, | ||
| 46 | { "w": 1, "x": 10, "y": 2 }, | ||
| 47 | { "w": 1, "x": 11, "y": 2 }, | ||
| 48 | { "w": 1, "x": 0, "y": 3 }, | ||
| 49 | { "w": 1, "x": 1, "y": 3 }, | ||
| 50 | { "w": 1, "x": 2, "y": 3 }, | ||
| 51 | { "w": 1, "x": 3, "y": 3 }, | ||
| 52 | { "w": 1, "x": 4, "y": 3 }, | ||
| 53 | { "w": 2, "x": 5, "y": 3 }, | ||
| 54 | { "w": 1, "x": 7, "y": 3 }, | ||
| 55 | { "w": 1, "x": 8, "y": 3 }, | ||
| 56 | { "w": 1, "x": 9, "y": 3 }, | ||
| 57 | { "w": 1, "x": 10, "y": 3 }, | ||
| 58 | { "w": 1, "x": 11, "y": 3 } ] | ||
| 59 | }, | ||
| 60 | "LAYOUT_ortho_4x12": { | ||
| 61 | "key_count": 48, | ||
| 62 | "layout": [ | ||
| 63 | { "w": 1, "x": 0, "y": 0 }, | ||
| 64 | { "w": 1, "x": 1, "y": 0 }, | ||
| 65 | { "w": 1, "x": 2, "y": 0 }, | ||
| 66 | { "w": 1, "x": 3, "y": 0 }, | ||
| 67 | { "w": 1, "x": 4, "y": 0 }, | ||
| 68 | { "w": 1, "x": 5, "y": 0 }, | ||
| 69 | { "w": 1, "x": 6, "y": 0 }, | ||
| 70 | { "w": 1, "x": 7, "y": 0 }, | ||
| 71 | { "w": 1, "x": 8, "y": 0 }, | ||
| 72 | { "w": 1, "x": 9, "y": 0 }, | ||
| 73 | { "w": 1, "x": 10, "y": 0 }, | ||
| 74 | { "w": 1, "x": 11, "y": 0 }, | ||
| 75 | { "w": 1, "x": 0, "y": 1 }, | ||
| 76 | { "w": 1, "x": 1, "y": 1 }, | ||
| 77 | { "w": 1, "x": 2, "y": 1 }, | ||
| 78 | { "w": 1, "x": 3, "y": 1 }, | ||
| 79 | { "w": 1, "x": 4, "y": 1 }, | ||
| 80 | { "w": 1, "x": 5, "y": 1 }, | ||
| 81 | { "w": 1, "x": 6, "y": 1 }, | ||
| 82 | { "w": 1, "x": 7, "y": 1 }, | ||
| 83 | { "w": 1, "x": 8, "y": 1 }, | ||
| 84 | { "w": 1, "x": 9, "y": 1 }, | ||
| 85 | { "w": 1, "x": 10, "y": 1 }, | ||
| 86 | { "w": 1, "x": 11, "y": 1 }, | ||
| 87 | { "w": 1, "x": 0, "y": 2 }, | ||
| 88 | { "w": 1, "x": 1, "y": 2 }, | ||
| 89 | { "w": 1, "x": 2, "y": 2 }, | ||
| 90 | { "w": 1, "x": 3, "y": 2 }, | ||
| 91 | { "w": 1, "x": 4, "y": 2 }, | ||
| 92 | { "w": 1, "x": 5, "y": 2 }, | ||
| 93 | { "w": 1, "x": 6, "y": 2 }, | ||
| 94 | { "w": 1, "x": 7, "y": 2 }, | ||
| 95 | { "w": 1, "x": 8, "y": 2 }, | ||
| 96 | { "w": 1, "x": 9, "y": 2 }, | ||
| 97 | { "w": 1, "x": 10, "y": 2 }, | ||
| 98 | { "w": 1, "x": 11, "y": 2 }, | ||
| 99 | { "w": 1, "x": 0, "y": 3 }, | ||
| 100 | { "w": 1, "x": 1, "y": 3 }, | ||
| 101 | { "w": 1, "x": 2, "y": 3 }, | ||
| 102 | { "w": 1, "x": 3, "y": 3 }, | ||
| 103 | { "w": 1, "x": 4, "y": 3 }, | ||
| 104 | { "w": 1, "x": 5, "y": 3 }, | ||
| 105 | { "w": 1, "x": 6, "y": 3 }, | ||
| 106 | { "w": 1, "x": 7, "y": 3 }, | ||
| 107 | { "w": 1, "x": 8, "y": 3 }, | ||
| 108 | { "w": 1, "x": 9, "y": 3 }, | ||
| 109 | { "w": 1, "x": 10, "y": 3 }, | ||
| 110 | { "w": 1, "x": 11, "y": 3 } ] | ||
| 111 | } | ||
| 112 | } | ||
| 113 | } | ||
diff --git a/keyboards/spaceman/pancake/keymaps/default/keymap.c b/keyboards/spaceman/pancake/keymaps/default/keymap.c new file mode 100644 index 000000000..cebc6fccb --- /dev/null +++ b/keyboards/spaceman/pancake/keymaps/default/keymap.c | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | enum layers { | ||
| 3 | _DEFAULT, | ||
| 4 | _LOWER, | ||
| 5 | _RAISE, | ||
| 6 | _FN | ||
| 7 | }; | ||
| 8 | |||
| 9 | #define LOWER MO(_LOWER) | ||
| 10 | #define RAISE MO(_RAISE) | ||
| 11 | #define FN MO(_FN) | ||
| 12 | |||
| 13 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 14 | |||
| 15 | /* Default | ||
| 16 | * ,-----------------------------------------------------------------------------------. | ||
| 17 | * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 18 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 19 | * | Tab | A | S | D | F | G | H | J | K | L | " | ; | | ||
| 20 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 21 | * | Shift| Z | X | C | V | B | N | M | , | . | Up |Enter | | ||
| 22 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 23 | * | Ctrl | Alt | GUI | FN | Lower| Space |Raise | / | Left | Down |Right | | ||
| 24 | * `-----------------------------------------------------------------------------------' | ||
| 25 | */ | ||
| 26 | [_DEFAULT] = LAYOUT_ortho_4x12( | ||
| 27 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 28 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_SCLN, | ||
| 29 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT , | ||
| 30 | KC_LCTL, KC_LALT, KC_LGUI, FN, LOWER, KC_SPC, KC_SPC, RAISE, KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 31 | ), | ||
| 32 | |||
| 33 | |||
| 34 | /* Lower | ||
| 35 | * ,-----------------------------------------------------------------------------------. | ||
| 36 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 37 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 38 | * | | | | | | | | | _ | + | | | | ||
| 39 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 40 | * | | | | | | | | | { | } | Vol+ | | | ||
| 41 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 42 | * | | | | | | | | ? | | Vol- | | | ||
| 43 | * `-----------------------------------------------------------------------------------' | ||
| 44 | */ | ||
| 45 | [_LOWER] = LAYOUT_ortho_4x12( | ||
| 46 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, _______, KC_PIPE, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, KC_LCBR, KC_RCBR, KC_VOLU, _______, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______, _______, KC_QUES, _______, KC_VOLD, _______ | ||
| 50 | ), | ||
| 51 | |||
| 52 | /* Raise | ||
| 53 | * ,-----------------------------------------------------------------------------------. | ||
| 54 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 55 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 56 | * | | | | | | | | | - | = | | \ | | ||
| 57 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 58 | * | | | | | | | | | [ | ] | Vol- | | | ||
| 59 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 60 | * | | | | | | | | | | Vol+ | | | ||
| 61 | * `-----------------------------------------------------------------------------------' | ||
| 62 | */ | ||
| 63 | [_RAISE] = LAYOUT_ortho_4x12( | ||
| 64 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, KC_BSLS, | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_VOLU, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD, _______ | ||
| 68 | ), | ||
| 69 | |||
| 70 | /* FN | ||
| 71 | * ,-----------------------------------------------------------------------------------. | ||
| 72 | * | Reset| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | | | ||
| 73 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 74 | * | | | | | | | | | | F11 | F12 | | | ||
| 75 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 76 | * | | | | | | | | | | | | | | ||
| 77 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 78 | * | | | | TRNS | | | | | | | | | ||
| 79 | * `-----------------------------------------------------------------------------------' | ||
| 80 | */ | ||
| 81 | [_FN] = LAYOUT_ortho_4x12( | ||
| 82 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, | ||
| 83 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, | ||
| 84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 86 | ), | ||
| 87 | |||
| 88 | |||
| 89 | }; | ||
| 90 | |||
diff --git a/keyboards/spaceman/pancake/keymaps/default/readme.md b/keyboards/spaceman/pancake/keymaps/default/readme.md new file mode 100644 index 000000000..7eb8cc6d8 --- /dev/null +++ b/keyboards/spaceman/pancake/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # Default keymap for Pancake | ||
| 2 | |||
| 3 | designed by: Spaceman | ||
diff --git a/keyboards/spaceman/pancake/pancake.c b/keyboards/spaceman/pancake/pancake.c new file mode 100644 index 000000000..d77dbfbe0 --- /dev/null +++ b/keyboards/spaceman/pancake/pancake.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 "pancake.h" | ||
diff --git a/keyboards/spaceman/pancake/pancake.h b/keyboards/spaceman/pancake/pancake.h new file mode 100644 index 000000000..312d789b4 --- /dev/null +++ b/keyboards/spaceman/pancake/pancake.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT_planck_mit( \ | ||
| 21 | k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, \ | ||
| 22 | k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, \ | ||
| 23 | k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, \ | ||
| 24 | k300, k301, k302, k303, k304, k305, k307, k308, k309, k310, k311 \ | ||
| 25 | ) \ | ||
| 26 | { \ | ||
| 27 | { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011 }, \ | ||
| 28 | { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111 }, \ | ||
| 29 | { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211 }, \ | ||
| 30 | { k300, k301, k302, k303, k304, k305, k305, k307, k308, k309, k310, k311 } \ | ||
| 31 | } | ||
| 32 | |||
| 33 | #define LAYOUT_ortho_4x12( \ | ||
| 34 | k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, \ | ||
| 35 | k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, \ | ||
| 36 | k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, \ | ||
| 37 | k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311 \ | ||
| 38 | ) \ | ||
| 39 | { \ | ||
| 40 | { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011 }, \ | ||
| 41 | { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111 }, \ | ||
| 42 | { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211 }, \ | ||
| 43 | { k300, k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311 } \ | ||
| 44 | } | ||
diff --git a/keyboards/spaceman/pancake/promicro/config.h b/keyboards/spaceman/pancake/promicro/config.h new file mode 100644 index 000000000..ee02bff2b --- /dev/null +++ b/keyboards/spaceman/pancake/promicro/config.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* Copyright 2019 Spaceman | ||
| 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 | #pragma once | ||
| 17 | #include "config_common.h" | ||
| 18 | |||
| 19 | /* Pancake default pinout */ | ||
| 20 | #define MATRIX_ROW_PINS { B1, B3, B2, B6 } | ||
| 21 | #define MATRIX_COL_PINS { F4, F5, F6, F7, E6, B4, B5, D7, C6, D4, D0, D1 } | ||
| 22 | #define UNUSED_PINS \ No newline at end of file | ||
diff --git a/keyboards/spaceman/pancake/promicro/rules.mk b/keyboards/spaceman/pancake/promicro/rules.mk new file mode 100644 index 000000000..6ed9e88e9 --- /dev/null +++ b/keyboards/spaceman/pancake/promicro/rules.mk | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # comment out to disable the options. | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug | ||
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 22 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 24 | BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled | ||
| 25 | AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below | ||
| 26 | RGBLIGHT_ENABLE = no # This can be enabled if a ws2812 strip is connected to the expansion port. | ||
| 27 | |||
| 28 | LAYOUTS = ortho_4x12 planck_mit | ||
diff --git a/keyboards/spaceman/pancake/readme.md b/keyboards/spaceman/pancake/readme.md new file mode 100644 index 000000000..34cf6382b --- /dev/null +++ b/keyboards/spaceman/pancake/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # Pancake | ||
| 2 | |||
| 3 | Ortho 40% Ortho Keyboard with an option for the adafruit feather | ||
| 4 | |||
| 5 | Keyboard Maintainer: [Spaceman](https://github.com/Spaceman) | ||
| 6 | Hardware Availability: [GB](https://geekhack.org/index.php?topic=101371.0) | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make spaceman/pancake:default | ||
| 11 | |||
| 12 | 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). | ||
