diff options
| author | kakunpc <15257475+kakunpc@users.noreply.github.com> | 2019-09-29 03:59:33 +0900 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-09-28 11:59:33 -0700 |
| commit | 20a16d29fe50f30b8309e68790c628832dc4906c (patch) | |
| tree | 050392591fea585703ddd1788b52004d9fdc8d8a /keyboards/angel17 | |
| parent | 17794e0b2502371eaf155328d4e4195aef703163 (diff) | |
| download | qmk_firmware-20a16d29fe50f30b8309e68790c628832dc4906c.tar.gz qmk_firmware-20a16d29fe50f30b8309e68790c628832dc4906c.zip | |
[Keyboard] update angel17 (#6831)
Diffstat (limited to 'keyboards/angel17')
| -rw-r--r-- | keyboards/angel17/alpha/alpha.c (renamed from keyboards/angel17/angel17.c) | 2 | ||||
| -rw-r--r-- | keyboards/angel17/alpha/alpha.h (renamed from keyboards/angel17/angel17.h) | 0 | ||||
| -rw-r--r-- | keyboards/angel17/alpha/config.h (renamed from keyboards/angel17/config.h) | 0 | ||||
| -rw-r--r-- | keyboards/angel17/alpha/rules.mk | 46 | ||||
| -rw-r--r-- | keyboards/angel17/keymaps/default/keymap.c | 24 | ||||
| -rw-r--r-- | keyboards/angel17/rev1/config.h | 244 | ||||
| -rw-r--r-- | keyboards/angel17/rev1/rev1.c | 51 | ||||
| -rw-r--r-- | keyboards/angel17/rev1/rev1.h | 40 | ||||
| -rw-r--r-- | keyboards/angel17/rev1/rules.mk | 46 | ||||
| -rw-r--r-- | keyboards/angel17/rules.mk | 2 |
10 files changed, 448 insertions, 7 deletions
diff --git a/keyboards/angel17/angel17.c b/keyboards/angel17/alpha/alpha.c index 80635a30e..3d2d1de77 100644 --- a/keyboards/angel17/angel17.c +++ b/keyboards/angel17/alpha/alpha.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 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/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "angel17.h" | 16 | #include "alpha.h" |
| 17 | 17 | ||
| 18 | // Optional override functions below. | 18 | // Optional override functions below. |
| 19 | // You can leave any or all of these undefined. | 19 | // You can leave any or all of these undefined. |
diff --git a/keyboards/angel17/angel17.h b/keyboards/angel17/alpha/alpha.h index 5b8600a20..5b8600a20 100644 --- a/keyboards/angel17/angel17.h +++ b/keyboards/angel17/alpha/alpha.h | |||
diff --git a/keyboards/angel17/config.h b/keyboards/angel17/alpha/config.h index 2bb74acc8..2bb74acc8 100644 --- a/keyboards/angel17/config.h +++ b/keyboards/angel17/alpha/config.h | |||
diff --git a/keyboards/angel17/alpha/rules.mk b/keyboards/angel17/alpha/rules.mk new file mode 100644 index 000000000..423ebddc5 --- /dev/null +++ b/keyboards/angel17/alpha/rules.mk | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | |||
| 5 | # Bootloader selection | ||
| 6 | # Teensy halfkay | ||
| 7 | # Pro Micro caterina | ||
| 8 | # Atmel DFU atmel-dfu | ||
| 9 | # LUFA DFU lufa-dfu | ||
| 10 | # QMK DFU qmk-dfu | ||
| 11 | # atmega32a bootloadHID | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | |||
| 15 | # If you don't know the bootloader type, then you can specify the | ||
| 16 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 17 | # Teensy halfKay 512 | ||
| 18 | # Teensy++ halfKay 1024 | ||
| 19 | # Atmel DFU loader 4096 | ||
| 20 | # LUFA bootloader 4096 | ||
| 21 | # USBaspLoader 2048 | ||
| 22 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 23 | |||
| 24 | |||
| 25 | # Build Options | ||
| 26 | # change yes to no to disable | ||
| 27 | # | ||
| 28 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 29 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 30 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 31 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 32 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 33 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 34 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 35 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 36 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 37 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 38 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 39 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 40 | UNICODE_ENABLE = no # Unicode | ||
| 41 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 42 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 43 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 44 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
| 45 | |||
| 46 | LAYOUTS = numpad_5x4 | ||
diff --git a/keyboards/angel17/keymaps/default/keymap.c b/keyboards/angel17/keymaps/default/keymap.c index 509bcf5e2..8f54b72b4 100644 --- a/keyboards/angel17/keymaps/default/keymap.c +++ b/keyboards/angel17/keymaps/default/keymap.c | |||
| @@ -15,13 +15,25 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | enum layers{ | ||
| 19 | BASE, | ||
| 20 | COMMAND, | ||
| 21 | }; | ||
| 22 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 19 | [0] = LAYOUT_numpad_5x4( /* Base */ | 24 | [BASE] = LAYOUT_numpad_5x4( /* Base */ |
| 20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | 25 | LT(COMMAND,KC_NLCK), KC_PSLS, KC_PAST, KC_PMNS, |
| 21 | KC_P7, KC_P8, KC_P9, | 26 | KC_P7, KC_P8, KC_P9, |
| 22 | KC_P4, KC_P5, KC_P6, KC_PPLS, | 27 | KC_P4, KC_P5, KC_P6, KC_PPLS, |
| 23 | KC_P1, KC_P2, KC_P3, | 28 | KC_P1, KC_P2, KC_P3, |
| 24 | KC_P0, KC_PDOT, KC_PENT | 29 | KC_P0, KC_PDOT, KC_PENT |
| 30 | ), | ||
| 31 | [COMMAND] = LAYOUT_numpad_5x4( /* Base */ | ||
| 32 | _______, KC_NO, KC_NO, RGB_RMOD, | ||
| 33 | KC_NO, KC_NO, KC_NO, | ||
| 34 | RGB_HUI, RGB_SAI, RGB_VAI, RGB_MOD, | ||
| 35 | RGB_HUD, RGB_SAD, RGB_VAD, | ||
| 36 | RGB_TOG, KC_NO, KC_NO | ||
| 25 | ), | 37 | ), |
| 26 | }; | 38 | }; |
| 27 | 39 | ||
diff --git a/keyboards/angel17/rev1/config.h b/keyboards/angel17/rev1/config.h new file mode 100644 index 000000000..3e5af362a --- /dev/null +++ b/keyboards/angel17/rev1/config.h | |||
| @@ -0,0 +1,244 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 kakunpc | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0x0000 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER kakunpc | ||
| 27 | #define PRODUCT angel17 | ||
| 28 | #define DESCRIPTION A custom keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 4 | ||
| 32 | #define MATRIX_COLS 5 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define MATRIX_ROW_PINS { D4, C6, D7, E6 } | ||
| 45 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL*/ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | // #define BACKLIGHT_PIN B7 | ||
| 52 | // #define BACKLIGHT_BREATHING | ||
| 53 | // #define BACKLIGHT_LEVELS 3 | ||
| 54 | |||
| 55 | #define RGB_DI_PIN D3 | ||
| 56 | #ifdef RGB_DI_PIN | ||
| 57 | #define RGBLED_NUM 17 | ||
| 58 | #define RGBLIGHT_HUE_STEP 8 | ||
| 59 | #define RGBLIGHT_SAT_STEP 8 | ||
| 60 | #define RGBLIGHT_VAL_STEP 8 | ||
| 61 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 62 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 63 | /*== all animations enable ==*/ | ||
| 64 | // #define RGBLIGHT_ANIMATIONS | ||
| 65 | // /*== or choose animations ==*/ | ||
| 66 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 67 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 68 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 69 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 70 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 71 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 72 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 73 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 74 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 75 | // /*== customize breathing effect ==*/ | ||
| 76 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 77 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 78 | // /*==== use exp() and sin() ====*/ | ||
| 79 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 80 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 81 | #endif | ||
| 82 | |||
| 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 84 | #define DEBOUNCE 5 | ||
| 85 | |||
| 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 87 | //#define MATRIX_HAS_GHOST | ||
| 88 | |||
| 89 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 90 | #define LOCKING_SUPPORT_ENABLE | ||
| 91 | /* Locking resynchronize hack */ | ||
| 92 | #define LOCKING_RESYNC_ENABLE | ||
| 93 | |||
| 94 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 95 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 96 | */ | ||
| 97 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 98 | |||
| 99 | /* | ||
| 100 | * Force NKRO | ||
| 101 | * | ||
| 102 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 103 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 104 | * makefile for this to work.) | ||
| 105 | * | ||
| 106 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 107 | * until the next keyboard reset. | ||
| 108 | * | ||
| 109 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 110 | * fully operational during normal computer usage. | ||
| 111 | * | ||
| 112 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 113 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 114 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 115 | * power-up. | ||
| 116 | * | ||
| 117 | */ | ||
| 118 | //#define FORCE_NKRO | ||
| 119 | |||
| 120 | /* | ||
| 121 | * Magic Key Options | ||
| 122 | * | ||
| 123 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 124 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 125 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 126 | * | ||
| 127 | * The options below allow the magic key functionality to be changed. This is | ||
| 128 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 129 | * | ||
| 130 | */ | ||
| 131 | |||
| 132 | /* key combination for magic key command */ | ||
| 133 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 134 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 135 | |||
| 136 | /* control how magic key switches layers */ | ||
| 137 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 138 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 139 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 140 | |||
| 141 | /* override magic key keymap */ | ||
| 142 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 143 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 144 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 145 | //#define MAGIC_KEY_HELP H | ||
| 146 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 147 | //#define MAGIC_KEY_DEBUG D | ||
| 148 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 149 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 150 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 151 | //#define MAGIC_KEY_VERSION V | ||
| 152 | //#define MAGIC_KEY_STATUS S | ||
| 153 | //#define MAGIC_KEY_CONSOLE C | ||
| 154 | //#define MAGIC_KEY_LAYER0 0 | ||
| 155 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 156 | //#define MAGIC_KEY_LAYER1 1 | ||
| 157 | //#define MAGIC_KEY_LAYER2 2 | ||
| 158 | //#define MAGIC_KEY_LAYER3 3 | ||
| 159 | //#define MAGIC_KEY_LAYER4 4 | ||
| 160 | //#define MAGIC_KEY_LAYER5 5 | ||
| 161 | //#define MAGIC_KEY_LAYER6 6 | ||
| 162 | //#define MAGIC_KEY_LAYER7 7 | ||
| 163 | //#define MAGIC_KEY_LAYER8 8 | ||
| 164 | //#define MAGIC_KEY_LAYER9 9 | ||
| 165 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 166 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 167 | //#define MAGIC_KEY_LOCK CAPS | ||
| 168 | //#define MAGIC_KEY_EEPROM E | ||
| 169 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 170 | //#define MAGIC_KEY_NKRO N | ||
| 171 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 172 | |||
| 173 | /* | ||
| 174 | * Feature disable options | ||
| 175 | * These options are also useful to firmware size reduction. | ||
| 176 | */ | ||
| 177 | |||
| 178 | /* disable debug print */ | ||
| 179 | //#define NO_DEBUG | ||
| 180 | |||
| 181 | /* disable print */ | ||
| 182 | //#define NO_PRINT | ||
| 183 | |||
| 184 | /* disable action features */ | ||
| 185 | //#define NO_ACTION_LAYER | ||
| 186 | //#define NO_ACTION_TAPPING | ||
| 187 | //#define NO_ACTION_ONESHOT | ||
| 188 | //#define NO_ACTION_MACRO | ||
| 189 | //#define NO_ACTION_FUNCTION | ||
| 190 | |||
| 191 | /* | ||
| 192 | * MIDI options | ||
| 193 | */ | ||
| 194 | |||
| 195 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 196 | //#define MIDI_ENABLE_STRICT 1 | ||
| 197 | |||
| 198 | /* enable basic MIDI features: | ||
| 199 | - MIDI notes can be sent when in Music mode is on | ||
| 200 | */ | ||
| 201 | //#define MIDI_BASIC | ||
| 202 | |||
| 203 | /* enable advanced MIDI features: | ||
| 204 | - MIDI notes can be added to the keymap | ||
| 205 | - Octave shift and transpose | ||
| 206 | - Virtual sustain, portamento, and modulation wheel | ||
| 207 | - etc. | ||
| 208 | */ | ||
| 209 | //#define MIDI_ADVANCED | ||
| 210 | |||
| 211 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 212 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 213 | |||
| 214 | /* | ||
| 215 | * HD44780 LCD Display Configuration | ||
| 216 | */ | ||
| 217 | /* | ||
| 218 | #define LCD_LINES 2 //< number of visible lines of the display | ||
| 219 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
| 220 | |||
| 221 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
| 222 | |||
| 223 | #if LCD_IO_MODE | ||
| 224 | #define LCD_PORT PORTB //< port for the LCD lines | ||
| 225 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
| 226 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
| 227 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
| 228 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
| 229 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
| 230 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
| 231 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
| 232 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
| 233 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
| 234 | #define LCD_RS_PIN 3 //< pin for RS line | ||
| 235 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
| 236 | #define LCD_RW_PIN 2 //< pin for RW line | ||
| 237 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
| 238 | #define LCD_E_PIN 1 //< pin for Enable line | ||
| 239 | #endif | ||
| 240 | */ | ||
| 241 | |||
| 242 | /* Bootmagic Lite key configuration */ | ||
| 243 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 244 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/angel17/rev1/rev1.c b/keyboards/angel17/rev1/rev1.c new file mode 100644 index 000000000..f97e6caed --- /dev/null +++ b/keyboards/angel17/rev1/rev1.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2019 kakunpc | ||
| 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 "rev1.h" | ||
| 17 | |||
| 18 | // Optional override functions below. | ||
| 19 | // You can leave any or all of these undefined. | ||
| 20 | // These are only required if you want to perform custom actions. | ||
| 21 | |||
| 22 | /* | ||
| 23 | |||
| 24 | void matrix_init_kb(void) { | ||
| 25 | // put your keyboard start-up code here | ||
| 26 | // runs once when the firmware starts up | ||
| 27 | |||
| 28 | matrix_init_user(); | ||
| 29 | } | ||
| 30 | |||
| 31 | void matrix_scan_kb(void) { | ||
| 32 | // put your looping keyboard code here | ||
| 33 | // runs every cycle (a lot) | ||
| 34 | |||
| 35 | matrix_scan_user(); | ||
| 36 | } | ||
| 37 | |||
| 38 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 39 | // put your per-action keyboard code here | ||
| 40 | // runs for every action, just before processing by the firmware | ||
| 41 | |||
| 42 | return process_record_user(keycode, record); | ||
| 43 | } | ||
| 44 | |||
| 45 | void led_set_kb(uint8_t usb_led) { | ||
| 46 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 47 | |||
| 48 | led_set_user(usb_led); | ||
| 49 | } | ||
| 50 | |||
| 51 | */ | ||
diff --git a/keyboards/angel17/rev1/rev1.h b/keyboards/angel17/rev1/rev1.h new file mode 100644 index 000000000..5b8600a20 --- /dev/null +++ b/keyboards/angel17/rev1/rev1.h | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | /* Copyright 2019 kakunpc | ||
| 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 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_numpad_5x4( \ | ||
| 29 | k00, k01, k02, k03, \ | ||
| 30 | k10, k11, k12, \ | ||
| 31 | k20, k21, k22, k13, \ | ||
| 32 | k30, k31, k32, \ | ||
| 33 | k40, k41, k33 \ | ||
| 34 | ) \ | ||
| 35 | { \ | ||
| 36 | { k00, k10, k20, k31, k41 }, \ | ||
| 37 | { k02, k12, k22, k33, KC_NO }, \ | ||
| 38 | { k01, k11, k21, k32, KC_NO }, \ | ||
| 39 | { k03, k13, k30, k40, KC_NO }, \ | ||
| 40 | } | ||
diff --git a/keyboards/angel17/rev1/rules.mk b/keyboards/angel17/rev1/rules.mk new file mode 100644 index 000000000..fe22b3ab8 --- /dev/null +++ b/keyboards/angel17/rev1/rules.mk | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | |||
| 5 | # Bootloader selection | ||
| 6 | # Teensy halfkay | ||
| 7 | # Pro Micro caterina | ||
| 8 | # Atmel DFU atmel-dfu | ||
| 9 | # LUFA DFU lufa-dfu | ||
| 10 | # QMK DFU qmk-dfu | ||
| 11 | # atmega32a bootloadHID | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | |||
| 15 | # If you don't know the bootloader type, then you can specify the | ||
| 16 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 17 | # Teensy halfKay 512 | ||
| 18 | # Teensy++ halfKay 1024 | ||
| 19 | # Atmel DFU loader 4096 | ||
| 20 | # LUFA bootloader 4096 | ||
| 21 | # USBaspLoader 2048 | ||
| 22 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 23 | |||
| 24 | |||
| 25 | # Build Options | ||
| 26 | # change yes to no to disable | ||
| 27 | # | ||
| 28 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 29 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 30 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 31 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 32 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 33 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 34 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 35 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 36 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 37 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 38 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 39 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 40 | UNICODE_ENABLE = no # Unicode | ||
| 41 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 42 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 43 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 44 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
| 45 | |||
| 46 | LAYOUTS = numpad_5x4 | ||
diff --git a/keyboards/angel17/rules.mk b/keyboards/angel17/rules.mk index 423ebddc5..dd54bd525 100644 --- a/keyboards/angel17/rules.mk +++ b/keyboards/angel17/rules.mk | |||
| @@ -44,3 +44,5 @@ FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | |||
| 44 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 44 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 45 | 45 | ||
| 46 | LAYOUTS = numpad_5x4 | 46 | LAYOUTS = numpad_5x4 |
| 47 | |||
| 48 | DEFAULT_FOLDER = angel17/rev1 | ||
