diff options
| -rw-r--r-- | keyboards/draytronics/scarlet/config.h | 96 | ||||
| -rw-r--r-- | keyboards/draytronics/scarlet/keymaps/default/keymap.c | 28 | ||||
| -rw-r--r-- | keyboards/draytronics/scarlet/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/draytronics/scarlet/rules.mk | 27 | ||||
| -rw-r--r-- | keyboards/draytronics/scarlet/scarlet.c | 19 | ||||
| -rw-r--r-- | keyboards/draytronics/scarlet/scarlet.h | 35 |
6 files changed, 224 insertions, 0 deletions
diff --git a/keyboards/draytronics/scarlet/config.h b/keyboards/draytronics/scarlet/config.h new file mode 100644 index 000000000..f7b50dee7 --- /dev/null +++ b/keyboards/draytronics/scarlet/config.h | |||
| @@ -0,0 +1,96 @@ | |||
| 1 | /*Copyright 2020 Blake Drayson / Draytronics | ||
| 2 | |||
| 3 | Contact info@draytronics.co.uk | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | #define VENDOR_ID 0x4454 //DT for DrayTronics | ||
| 24 | #define PRODUCT_ID 0x5343 //SC for Scarlet | ||
| 25 | #define DEVICE_VER 0x0001 //Version 1 | ||
| 26 | #define MANUFACTURER Draytronics | ||
| 27 | #define PRODUCT SCARLET | ||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 4 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | |||
| 43 | #define MATRIX_ROW_PINS { A0, A1, A2, A3, A4 } | ||
| 44 | #define MATRIX_COL_PINS { A5, A6, A7, C7 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 51 | #define DEBOUNCE 5 | ||
| 52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 53 | //#define MATRIX_HAS_GHOST | ||
| 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 55 | #define LOCKING_SUPPORT_ENABLE | ||
| 56 | /* Locking resynchronize hack */ | ||
| 57 | #define LOCKING_RESYNC_ENABLE | ||
| 58 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 59 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 60 | */ | ||
| 61 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 62 | /* | ||
| 63 | * Force NKRO | ||
| 64 | * | ||
| 65 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 66 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 67 | * makefile for this to work.) | ||
| 68 | * | ||
| 69 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 70 | * until the next keyboard reset. | ||
| 71 | * | ||
| 72 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 73 | * fully operational during normal computer usage. | ||
| 74 | * | ||
| 75 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 76 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 77 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 78 | * power-up. | ||
| 79 | * | ||
| 80 | */ | ||
| 81 | //#define FORCE_NKRO | ||
| 82 | /* | ||
| 83 | * Feature disable options | ||
| 84 | * These options are also useful to firmware size reduction. | ||
| 85 | */ | ||
| 86 | /* disable debug print */ | ||
| 87 | //#define NO_DEBUG | ||
| 88 | /* disable print */ | ||
| 89 | //#define NO_PRINT | ||
| 90 | /* disable action features */ | ||
| 91 | //#define NO_ACTION_LAYER | ||
| 92 | //#define NO_ACTION_TAPPING | ||
| 93 | //#define NO_ACTION_ONESHOT | ||
| 94 | /* disable these deprecated features by default */ | ||
| 95 | #define NO_ACTION_MACRO | ||
| 96 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/draytronics/scarlet/keymaps/default/keymap.c b/keyboards/draytronics/scarlet/keymaps/default/keymap.c new file mode 100644 index 000000000..950ec6172 --- /dev/null +++ b/keyboards/draytronics/scarlet/keymaps/default/keymap.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /*Copyright 2020 Blake Drayson / Draytronics | ||
| 2 | |||
| 3 | Contact info@draytronics.co.uk | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #include QMK_KEYBOARD_H | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | [0] = LAYOUT_numpad_5x4( | ||
| 23 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 24 | KC_P7, KC_P8, KC_P9, | ||
| 25 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
| 26 | KC_P1, KC_P2, KC_P3, | ||
| 27 | KC_P0, KC_PDOT, KC_PENT) | ||
| 28 | }; | ||
diff --git a/keyboards/draytronics/scarlet/readme.md b/keyboards/draytronics/scarlet/readme.md new file mode 100644 index 000000000..4f1c5e0f5 --- /dev/null +++ b/keyboards/draytronics/scarlet/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # SCARLET | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A open source 17 key numpad keyboard, designed to be easily built at home with through hole components. More info / kits / PCB designs available at [draytronics.co.uk/scarlet](draytronics.co.uk) | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Blake Drayson](https://github.com/ghostseven) | ||
| 8 | * Hardware Supported: SCARLET PCB / ATMega32A | ||
| 9 | * Hardware Availability: [draytronics.co.uk](draytronics.co.uk) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make draytronics/scarlet:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make draytronics/scarlet:default:flash | ||
| 18 | |||
| 19 | 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/draytronics/scarlet/rules.mk b/keyboards/draytronics/scarlet/rules.mk new file mode 100644 index 000000000..43f524034 --- /dev/null +++ b/keyboards/draytronics/scarlet/rules.mk | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 16000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | BOOTLOADER = USBasp | ||
| 9 | |||
| 10 | # Build Options | ||
| 11 | # change yes to no to disable | ||
| 12 | # | ||
| 13 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 16 | CONSOLE_ENABLE = no # Console for debug | ||
| 17 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 25 | AUDIO_ENABLE = no # Audio output | ||
| 26 | |||
| 27 | LAYOUTS = numpad_5x4 | ||
diff --git a/keyboards/draytronics/scarlet/scarlet.c b/keyboards/draytronics/scarlet/scarlet.c new file mode 100644 index 000000000..fdcc811d5 --- /dev/null +++ b/keyboards/draytronics/scarlet/scarlet.c | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /*Copyright 2020 Blake Drayson / Draytronics | ||
| 2 | |||
| 3 | Contact info@draytronics.co.uk | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #include "scarlet.h" | ||
diff --git a/keyboards/draytronics/scarlet/scarlet.h b/keyboards/draytronics/scarlet/scarlet.h new file mode 100644 index 000000000..d96f198db --- /dev/null +++ b/keyboards/draytronics/scarlet/scarlet.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /*Copyright 2020 Blake Drayson / Draytronics | ||
| 2 | |||
| 3 | Contact info@draytronics.co.uk | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #include "quantum.h" | ||
| 22 | |||
| 23 | #define LAYOUT_numpad_5x4( \ | ||
| 24 | K00, K01, K02, K03, \ | ||
| 25 | K10, K11, K12, \ | ||
| 26 | K20, K21, K22, K13, \ | ||
| 27 | K30, K31, K32, \ | ||
| 28 | K40, K42, K33 \ | ||
| 29 | ) { \ | ||
| 30 | { K00, K01, K02, K03, }, \ | ||
| 31 | { K10, K11, K12, K13, }, \ | ||
| 32 | { K20, K21, K22, KC_NO, }, \ | ||
| 33 | { K30, K31, K32, K33, }, \ | ||
| 34 | { K40, KC_NO, K42, KC_NO, }, \ | ||
| 35 | } | ||
