diff options
| author | alittlepeace <mandyskittie@Gmail.com> | 2019-11-14 02:04:57 -0600 |
|---|---|---|
| committer | fauxpark <fauxpark@gmail.com> | 2019-11-14 19:04:57 +1100 |
| commit | d50d6f678f49de7e3626827052876283b84c927f (patch) | |
| tree | 23066967bad89ea2860445ee1c71987a1288c6cb | |
| parent | 28d3f03e431f368fdae83a16b868b3102cc56927 (diff) | |
| download | qmk_firmware-d50d6f678f49de7e3626827052876283b84c927f.tar.gz qmk_firmware-d50d6f678f49de7e3626827052876283b84c927f.zip | |
Adding verd layout to RSII (#7296)
* verd
verd
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update keymap.c
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update rules.mk
* Update rules.mk
* Delete tests.txt
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update config.h
* Update verd.h
* Update keymap.c
* Update keymap.c
* Update readme.md
* Update matrix.c
* Update readme.md
* Update verd.h
* Update verd.c
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/config.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/config.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update verd.h
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update verd.c
* Update config.h
* Update verd.h
added regular non split 0
* Update keymap.c
* Update keyboards/redscarf_iiplus/verd/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update rules.mk
* Update rules.mk
* Update rules.mk
* Update keymap.c
* Update keymap.c
* Update keymap.c
* Update rules.mk
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keymap.c
* Update keymap.c
* Update keyboards/redscarf_iiplus/verd/readme.md
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/matrix.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update info.json
* Update info.json
* Update info.json
* Update keyboards/redscarf_iiplus/verd/verd.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/verd.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/config.h | 251 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/info.json | 190 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c | 81 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c | 37 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/matrix.c | 391 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/readme.md | 24 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/rules.mk | 36 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/verd.c | 42 | ||||
| -rw-r--r-- | keyboards/redscarf_iiplus/verd/verd.h | 55 |
10 files changed, 1108 insertions, 0 deletions
diff --git a/keyboards/redscarf_iiplus/verd/config.h b/keyboards/redscarf_iiplus/verd/config.h new file mode 100644 index 000000000..5c19f2abe --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/config.h | |||
| @@ -0,0 +1,251 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | ||
| 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 "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x7778 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER RedScarf | ||
| 26 | #define PRODUCT RedScarfII+ | ||
| 27 | #define DESCRIPTION QMK Firmware for the RedScarf II+ | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 18 | ||
| 32 | |||
| 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 { } | ||
| 45 | #define MATRIX_COL_PINS { F4, F1, F0, B3, D0, D1, D4, D5, D6, D7, F7, F6, D2, D3, B6, B5, B4, F5 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL*/ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | /* | ||
| 52 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 53 | */ | ||
| 54 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 55 | |||
| 56 | #define BACKLIGHT_PIN B7 | ||
| 57 | // #define BACKLIGHT_BREATHING | ||
| 58 | #define BACKLIGHT_LEVELS 3 | ||
| 59 | |||
| 60 | // #define RGB_DI_PIN E2 | ||
| 61 | // #ifdef RGB_DI_PIN | ||
| 62 | // #define RGBLED_NUM 16 | ||
| 63 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 64 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 65 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 66 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 67 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 68 | // /*== all animations enable ==*/ | ||
| 69 | // #define RGBLIGHT_ANIMATIONS | ||
| 70 | // /*== or choose animations ==*/ | ||
| 71 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 72 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 73 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 74 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 75 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 76 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 78 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 79 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 80 | // /*== customize breathing effect ==*/ | ||
| 81 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 82 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 83 | // /*==== use exp() and sin() ====*/ | ||
| 84 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 85 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 86 | // #endif | ||
| 87 | |||
| 88 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 89 | #define DEBOUNCE 5 | ||
| 90 | |||
| 91 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 92 | //#define MATRIX_HAS_GHOST | ||
| 93 | |||
| 94 | /* number of backlight levels */ | ||
| 95 | |||
| 96 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 97 | #define LOCKING_SUPPORT_ENABLE | ||
| 98 | /* Locking resynchronize hack */ | ||
| 99 | #define LOCKING_RESYNC_ENABLE | ||
| 100 | |||
| 101 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 102 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 103 | */ | ||
| 104 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 105 | |||
| 106 | /* | ||
| 107 | * Force NKRO | ||
| 108 | * | ||
| 109 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 110 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 111 | * makefile for this to work.) | ||
| 112 | * | ||
| 113 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 114 | * until the next keyboard reset. | ||
| 115 | * | ||
| 116 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 117 | * fully operational during normal computer usage. | ||
| 118 | * | ||
| 119 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 120 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 121 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 122 | * power-up. | ||
| 123 | * | ||
| 124 | */ | ||
| 125 | //#define FORCE_NKRO | ||
| 126 | |||
| 127 | /* | ||
| 128 | * Magic Key Options | ||
| 129 | * | ||
| 130 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 131 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 132 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 133 | * | ||
| 134 | * The options below allow the magic key functionality to be changed. This is | ||
| 135 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 136 | * | ||
| 137 | */ | ||
| 138 | |||
| 139 | /* key combination for magic key command */ | ||
| 140 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 141 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 142 | |||
| 143 | /* control how magic key switches layers */ | ||
| 144 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 145 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 146 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 147 | |||
| 148 | /* override magic key keymap */ | ||
| 149 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 150 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 151 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 152 | //#define MAGIC_KEY_HELP H | ||
| 153 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 154 | //#define MAGIC_KEY_DEBUG D | ||
| 155 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 156 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 157 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 158 | //#define MAGIC_KEY_VERSION V | ||
| 159 | //#define MAGIC_KEY_STATUS S | ||
| 160 | //#define MAGIC_KEY_CONSOLE C | ||
| 161 | //#define MAGIC_KEY_LAYER0 0 | ||
| 162 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 163 | //#define MAGIC_KEY_LAYER1 1 | ||
| 164 | //#define MAGIC_KEY_LAYER2 2 | ||
| 165 | //#define MAGIC_KEY_LAYER3 3 | ||
| 166 | //#define MAGIC_KEY_LAYER4 4 | ||
| 167 | //#define MAGIC_KEY_LAYER5 5 | ||
| 168 | //#define MAGIC_KEY_LAYER6 6 | ||
| 169 | //#define MAGIC_KEY_LAYER7 7 | ||
| 170 | //#define MAGIC_KEY_LAYER8 8 | ||
| 171 | //#define MAGIC_KEY_LAYER9 9 | ||
| 172 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 173 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 174 | //#define MAGIC_KEY_LOCK CAPS | ||
| 175 | //#define MAGIC_KEY_EEPROM E | ||
| 176 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 177 | //#define MAGIC_KEY_NKRO N | ||
| 178 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 179 | |||
| 180 | /* | ||
| 181 | * Feature disable options | ||
| 182 | * These options are also useful to firmware size reduction. | ||
| 183 | */ | ||
| 184 | |||
| 185 | /* disable debug print */ | ||
| 186 | //#define NO_DEBUG | ||
| 187 | |||
| 188 | /* disable print */ | ||
| 189 | //#define NO_PRINT | ||
| 190 | |||
| 191 | /* disable action features */ | ||
| 192 | //#define NO_ACTION_LAYER | ||
| 193 | //#define NO_ACTION_TAPPING | ||
| 194 | //#define NO_ACTION_ONESHOT | ||
| 195 | //#define NO_ACTION_MACRO | ||
| 196 | //#define NO_ACTION_FUNCTION | ||
| 197 | |||
| 198 | /* | ||
| 199 | * MIDI options | ||
| 200 | */ | ||
| 201 | |||
| 202 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 203 | //#define MIDI_ENABLE_STRICT 1 | ||
| 204 | |||
| 205 | /* enable basic MIDI features: | ||
| 206 | - MIDI notes can be sent when in Music mode is on | ||
| 207 | */ | ||
| 208 | //#define MIDI_BASIC | ||
| 209 | |||
| 210 | /* enable advanced MIDI features: | ||
| 211 | - MIDI notes can be added to the keymap | ||
| 212 | - Octave shift and transpose | ||
| 213 | - Virtual sustain, portamento, and modulation wheel | ||
| 214 | - etc. | ||
| 215 | */ | ||
| 216 | //#define MIDI_ADVANCED | ||
| 217 | |||
| 218 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 219 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 220 | |||
| 221 | /* | ||
| 222 | * HD44780 LCD Display Configuration | ||
| 223 | */ | ||
| 224 | /* | ||
| 225 | #define LCD_LINES 2 //< number of visible lines of the display | ||
| 226 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
| 227 | |||
| 228 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
| 229 | |||
| 230 | #if LCD_IO_MODE | ||
| 231 | #define LCD_PORT PORTB //< port for the LCD lines | ||
| 232 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
| 233 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
| 234 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
| 235 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
| 236 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
| 237 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
| 238 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
| 239 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
| 240 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
| 241 | #define LCD_RS_PIN 3 //< pin for RS line | ||
| 242 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
| 243 | #define LCD_RW_PIN 2 //< pin for RW line | ||
| 244 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
| 245 | #define LCD_E_PIN 1 //< pin for Enable line | ||
| 246 | #endif | ||
| 247 | */ | ||
| 248 | |||
| 249 | /* Bootmagic Lite key configuration */ | ||
| 250 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 251 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/redscarf_iiplus/verd/info.json b/keyboards/redscarf_iiplus/verd/info.json new file mode 100644 index 000000000..e0ea3f134 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/info.json | |||
| @@ -0,0 +1,190 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Red Scarf II+ Ver D", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 19, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_60_ansi_numpad_split0": { | ||
| 9 | "key_count": 79, | ||
| 10 | "layout": [ | ||
| 11 | |||
| 12 | {"label":"~", "x":0, "y":0}, | ||
| 13 | {"label":"!", "x":1, "y":0}, | ||
| 14 | {"label":"@", "x":2, "y":0}, | ||
| 15 | {"label":"#", "x":3, "y":0}, | ||
| 16 | {"label":"$", "x":4, "y":0}, | ||
| 17 | {"label":"%", "x":5, "y":0}, | ||
| 18 | {"label":"^", "x":6, "y":0}, | ||
| 19 | {"label":"&", "x":7, "y":0}, | ||
| 20 | {"label":"*", "x":8, "y":0}, | ||
| 21 | {"label":"(", "x":9, "y":0}, | ||
| 22 | {"label":")", "x":10, "y":0}, | ||
| 23 | {"label":"_", "x":11, "y":0}, | ||
| 24 | {"label":"+", "x":12, "y":0}, | ||
| 25 | {"label":"Backspace", "x":13, "y":0, "w":2}, | ||
| 26 | {"label":"Num Lock", "x":15, "y":0}, | ||
| 27 | {"label":"/", "x":16, "y":0}, | ||
| 28 | {"label":"*", "x":17, "y":0}, | ||
| 29 | {"label":"-", "x":18, "y":0}, | ||
| 30 | |||
| 31 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
| 32 | {"label":"Q", "x":1.5, "y":1}, | ||
| 33 | {"label":"W", "x":2.5, "y":1}, | ||
| 34 | {"label":"E", "x":3.5, "y":1}, | ||
| 35 | {"label":"R", "x":4.5, "y":1}, | ||
| 36 | {"label":"T", "x":5.5, "y":1}, | ||
| 37 | {"label":"Y", "x":6.5, "y":1}, | ||
| 38 | {"label":"U", "x":7.5, "y":1}, | ||
| 39 | {"label":"I", "x":8.5, "y":1}, | ||
| 40 | {"label":"O", "x":9.5, "y":1}, | ||
| 41 | {"label":"P", "x":10.5, "y":1}, | ||
| 42 | {"label":"{", "x":11.5, "y":1}, | ||
| 43 | {"label":"}", "x":12.5, "y":1}, | ||
| 44 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | ||
| 45 | {"label":"7", "x":15, "y":1}, | ||
| 46 | {"label":"8", "x":16, "y":1}, | ||
| 47 | {"label":"9", "x":17, "y":1}, | ||
| 48 | |||
| 49 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
| 50 | {"label":"A", "x":1.75, "y":2}, | ||
| 51 | {"label":"S", "x":2.75, "y":2}, | ||
| 52 | {"label":"D", "x":3.75, "y":2}, | ||
| 53 | {"label":"F", "x":4.75, "y":2}, | ||
| 54 | {"label":"G", "x":5.75, "y":2}, | ||
| 55 | {"label":"H", "x":6.75, "y":2}, | ||
| 56 | {"label":"J", "x":7.75, "y":2}, | ||
| 57 | {"label":"K", "x":8.75, "y":2}, | ||
| 58 | {"label":"L", "x":9.75, "y":2}, | ||
| 59 | {"label":":", "x":10.75, "y":2}, | ||
| 60 | {"label":"\"", "x":11.75, "y":2}, | ||
| 61 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
| 62 | {"label":"4", "x":15, "y":2}, | ||
| 63 | {"label":"5", "x":16, "y":2}, | ||
| 64 | {"label":"6", "x":17, "y":2}, | ||
| 65 | {"label":"+", "x":18, "y":1, "h":2}, | ||
| 66 | |||
| 67 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
| 68 | {"label":"Z", "x":2.25, "y":3}, | ||
| 69 | {"label":"X", "x":3.25, "y":3}, | ||
| 70 | {"label":"C", "x":4.25, "y":3}, | ||
| 71 | {"label":"V", "x":5.25, "y":3}, | ||
| 72 | {"label":"B", "x":6.25, "y":3}, | ||
| 73 | {"label":"N", "x":7.25, "y":3}, | ||
| 74 | {"label":"M", "x":8.25, "y":3}, | ||
| 75 | {"label":"<", "x":9.25, "y":3}, | ||
| 76 | {"label":">", "x":10.25, "y":3}, | ||
| 77 | {"label":"?", "x":11.25, "y":3}, | ||
| 78 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, | ||
| 79 | {"label":"1", "x":15, "y":3}, | ||
| 80 | {"label":"2", "x":16, "y":3}, | ||
| 81 | {"label":"3", "x":17, "y":3}, | ||
| 82 | |||
| 83 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
| 84 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | ||
| 85 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
| 86 | {"x":3.75, "y":4, "w":6.25}, | ||
| 87 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | ||
| 88 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | ||
| 89 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | ||
| 90 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, | ||
| 91 | |||
| 92 | {"label":"0", "x":15, "y":4}, | ||
| 93 | {"label":"0", "x":16, "y":4}, | ||
| 94 | {"label":".", "x":17, "y":4}, | ||
| 95 | {"label":"Enter", "x":18, "y":3, "h":2} | ||
| 96 | ] | ||
| 97 | |||
| 98 | }, | ||
| 99 | "LAYOUT_60_ansi_numpad": { | ||
| 100 | "key_count": 78, | ||
| 101 | "layout": [ | ||
| 102 | |||
| 103 | {"label":"~", "x":0, "y":0}, | ||
| 104 | {"label":"!", "x":1, "y":0}, | ||
| 105 | {"label":"@", "x":2, "y":0}, | ||
| 106 | {"label":"#", "x":3, "y":0}, | ||
| 107 | {"label":"$", "x":4, "y":0}, | ||
| 108 | {"label":"%", "x":5, "y":0}, | ||
| 109 | {"label":"^", "x":6, "y":0}, | ||
| 110 | {"label":"&", "x":7, "y":0}, | ||
| 111 | {"label":"*", "x":8, "y":0}, | ||
| 112 | {"label":"(", "x":9, "y":0}, | ||
| 113 | {"label":")", "x":10, "y":0}, | ||
| 114 | {"label":"_", "x":11, "y":0}, | ||
| 115 | {"label":"+", "x":12, "y":0}, | ||
| 116 | {"label":"Backspace", "x":13, "y":0, "w":2}, | ||
| 117 | {"label":"Num Lock", "x":15, "y":0}, | ||
| 118 | {"label":"/", "x":16, "y":0}, | ||
| 119 | {"label":"*", "x":17, "y":0}, | ||
| 120 | {"label":"-", "x":18, "y":0}, | ||
| 121 | |||
| 122 | {"label":"Tab", "x":0, "y":1, "w":1.5}, | ||
| 123 | {"label":"Q", "x":1.5, "y":1}, | ||
| 124 | {"label":"W", "x":2.5, "y":1}, | ||
| 125 | {"label":"E", "x":3.5, "y":1}, | ||
| 126 | {"label":"R", "x":4.5, "y":1}, | ||
| 127 | {"label":"T", "x":5.5, "y":1}, | ||
| 128 | {"label":"Y", "x":6.5, "y":1}, | ||
| 129 | {"label":"U", "x":7.5, "y":1}, | ||
| 130 | {"label":"I", "x":8.5, "y":1}, | ||
| 131 | {"label":"O", "x":9.5, "y":1}, | ||
| 132 | {"label":"P", "x":10.5, "y":1}, | ||
| 133 | {"label":"{", "x":11.5, "y":1}, | ||
| 134 | {"label":"}", "x":12.5, "y":1}, | ||
| 135 | {"label":"|", "x":13.5, "y":1, "w":1.5}, | ||
| 136 | {"label":"7", "x":15, "y":1}, | ||
| 137 | {"label":"8", "x":16, "y":1}, | ||
| 138 | {"label":"9", "x":17, "y":1}, | ||
| 139 | |||
| 140 | {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, | ||
| 141 | {"label":"A", "x":1.75, "y":2}, | ||
| 142 | {"label":"S", "x":2.75, "y":2}, | ||
| 143 | {"label":"D", "x":3.75, "y":2}, | ||
| 144 | {"label":"F", "x":4.75, "y":2}, | ||
| 145 | {"label":"G", "x":5.75, "y":2}, | ||
| 146 | {"label":"H", "x":6.75, "y":2}, | ||
| 147 | {"label":"J", "x":7.75, "y":2}, | ||
| 148 | {"label":"K", "x":8.75, "y":2}, | ||
| 149 | {"label":"L", "x":9.75, "y":2}, | ||
| 150 | {"label":":", "x":10.75, "y":2}, | ||
| 151 | {"label":"\"", "x":11.75, "y":2}, | ||
| 152 | {"label":"Enter", "x":12.75, "y":2, "w":2.25}, | ||
| 153 | {"label":"4", "x":15, "y":2}, | ||
| 154 | {"label":"5", "x":16, "y":2}, | ||
| 155 | {"label":"6", "x":17, "y":2}, | ||
| 156 | {"label":"+", "x":18, "y":1, "h":2}, | ||
| 157 | |||
| 158 | {"label":"Shift", "x":0, "y":3, "w":2.25}, | ||
| 159 | {"label":"Z", "x":2.25, "y":3}, | ||
| 160 | {"label":"X", "x":3.25, "y":3}, | ||
| 161 | {"label":"C", "x":4.25, "y":3}, | ||
| 162 | {"label":"V", "x":5.25, "y":3}, | ||
| 163 | {"label":"B", "x":6.25, "y":3}, | ||
| 164 | {"label":"N", "x":7.25, "y":3}, | ||
| 165 | {"label":"M", "x":8.25, "y":3}, | ||
| 166 | {"label":"<", "x":9.25, "y":3}, | ||
| 167 | {"label":">", "x":10.25, "y":3}, | ||
| 168 | {"label":"?", "x":11.25, "y":3}, | ||
| 169 | {"label":"Shift", "x":12.25, "y":3, "w":2.75}, | ||
| 170 | {"label":"1", "x":15, "y":3}, | ||
| 171 | {"label":"2", "x":16, "y":3}, | ||
| 172 | {"label":"3", "x":17, "y":3}, | ||
| 173 | |||
| 174 | {"label":"Ctrl", "x":0, "y":4, "w":1.25}, | ||
| 175 | {"label":"Win", "x":1.25, "y":4, "w":1.25}, | ||
| 176 | {"label":"Alt", "x":2.5, "y":4, "w":1.25}, | ||
| 177 | {"x":3.75, "y":4, "w":6.25}, | ||
| 178 | {"label":"Alt", "x":10, "y":4, "w":1.25}, | ||
| 179 | {"label":"Win", "x":11.25, "y":4, "w":1.25}, | ||
| 180 | {"label":"Menu", "x":12.5, "y":4, "w":1.25}, | ||
| 181 | {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}, | ||
| 182 | |||
| 183 | {"label":"0", "x":15, "y":4, "w":2}, | ||
| 184 | {"label":".", "x":17, "y":4}, | ||
| 185 | {"label":"Enter", "x":18, "y":3, "h":2} | ||
| 186 | ] | ||
| 187 | } | ||
| 188 | |||
| 189 | } | ||
| 190 | } | ||
diff --git a/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c b/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c new file mode 100644 index 000000000..9c4fee8a6 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/keymaps/alittlepeace/keymap.c | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | ||
| 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 the keycodes used by our macros in process_record_user | ||
| 19 | enum custom_keycodes { | ||
| 20 | KC_P00 = SAFE_RANGE, | ||
| 21 | |||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | |||
| 26 | [0] = LAYOUT_60_ansi_numpad_split0( | ||
| 27 | KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, TG(1), KC_PSLS, KC_PAST, KC_PMNS, | ||
| 28 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_INS, KC_HOME, KC_PGUP, | ||
| 29 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_PPLS, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, C(S(KC_TAB)), KC_UP, LCTL(KC_TAB), | ||
| 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_PENT | ||
| 32 | ), | ||
| 33 | |||
| 34 | [1] = LAYOUT_60_ansi_numpad_split0( | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_P00, KC_DOT, _______ | ||
| 40 | ), | ||
| 41 | |||
| 42 | [2] = LAYOUT_60_ansi_numpad_split0( | ||
| 43 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | }; | ||
| 50 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 51 | switch (keycode) { | ||
| 52 | case KC_P00: | ||
| 53 | if (record->event.pressed) { | ||
| 54 | SEND_STRING("00"); | ||
| 55 | } | ||
| 56 | break; | ||
| 57 | case TG(1): | ||
| 58 | if (record->event.pressed) { | ||
| 59 | tap_code(KC_NUMLOCK); | ||
| 60 | return true; | ||
| 61 | } | ||
| 62 | break; | ||
| 63 | |||
| 64 | } | ||
| 65 | return true; | ||
| 66 | } | ||
| 67 | |||
| 68 | void matrix_init_user (void) { | ||
| 69 | if (!host_keyboard_led_state ().num_lock) { | ||
| 70 | tap_code(KC_NUMLOCK); | ||
| 71 | } | ||
| 72 | } | ||
| 73 | |||
| 74 | bool led_update_user(led_t led_state) { | ||
| 75 | if (led_state.num_lock) { | ||
| 76 | layer_on(1); | ||
| 77 | } else { | ||
| 78 | layer_off(1); | ||
| 79 | } | ||
| 80 | return true; | ||
| 81 | } | ||
diff --git a/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c b/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c new file mode 100644 index 000000000..b0bbeeea0 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/keymaps/default/keymap.c | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | ||
| 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 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | |||
| 21 | [0] = LAYOUT_60_ansi_numpad( | ||
| 22 | KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_P7, KC_P8, KC_P9, | ||
| 24 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
| 25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_P1, KC_P2, KC_P3, | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_P0, KC_PDOT, KC_PENT | ||
| 27 | ), | ||
| 28 | |||
| 29 | [1] = LAYOUT_60_ansi_numpad( | ||
| 30 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 35 | ), | ||
| 36 | }; | ||
| 37 | |||
diff --git a/keyboards/redscarf_iiplus/verd/keymaps/default/readme.md b/keyboards/redscarf_iiplus/verd/keymaps/default/readme.md new file mode 100644 index 000000000..cf396a425 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for the Red Scarf II+ ver D. | |||
diff --git a/keyboards/redscarf_iiplus/verd/matrix.c b/keyboards/redscarf_iiplus/verd/matrix.c new file mode 100644 index 000000000..28568653c --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/matrix.c | |||
| @@ -0,0 +1,391 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012-2018 Jun Wako, Jack Humbert, Yiancar | ||
| 3 | Port done by Andy Lee <alee@alittlepeacemusic.com> | ||
| 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 | #include <stdint.h> | ||
| 18 | #include <stdbool.h> | ||
| 19 | #include "wait.h" | ||
| 20 | #include "print.h" | ||
| 21 | #include "debug.h" | ||
| 22 | #include "util.h" | ||
| 23 | #include "matrix.h" | ||
| 24 | #include "debounce.h" | ||
| 25 | #include "quantum.h" | ||
| 26 | |||
| 27 | #if (MATRIX_COLS <= 8) | ||
| 28 | # define print_matrix_header() print("\nr/c 01234567\n") | ||
| 29 | # define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row)) | ||
| 30 | # define matrix_bitpop(i) bitpop(matrix[i]) | ||
| 31 | # define ROW_SHIFTER ((uint8_t)1) | ||
| 32 | #elif (MATRIX_COLS <= 16) | ||
| 33 | # define print_matrix_header() print("\nr/c 0123456789ABCDEF\n") | ||
| 34 | # define print_matrix_row(row) print_bin_reverse16(matrix_get_row(row)) | ||
| 35 | # define matrix_bitpop(i) bitpop16(matrix[i]) | ||
| 36 | # define ROW_SHIFTER ((uint16_t)1) | ||
| 37 | #elif (MATRIX_COLS <= 32) | ||
| 38 | # define print_matrix_header() print("\nr/c 0123456789ABCDEF0123456789ABCDEF\n") | ||
| 39 | # define print_matrix_row(row) print_bin_reverse32(matrix_get_row(row)) | ||
| 40 | # define matrix_bitpop(i) bitpop32(matrix[i]) | ||
| 41 | # define ROW_SHIFTER ((uint32_t)1) | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifdef MATRIX_MASKED | ||
| 45 | extern const matrix_row_t matrix_mask[]; | ||
| 46 | #endif | ||
| 47 | |||
| 48 | #ifdef DIRECT_PINS | ||
| 49 | static pin_t direct_pins[MATRIX_ROWS][MATRIX_COLS] = DIRECT_PINS; | ||
| 50 | #elif (DIODE_DIRECTION == ROW2COL) || (DIODE_DIRECTION == COL2ROW) | ||
| 51 | // static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; | ||
| 52 | static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; | ||
| 53 | #endif | ||
| 54 | |||
| 55 | /* matrix state(1:on, 0:off) */ | ||
| 56 | static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values | ||
| 57 | static matrix_row_t matrix[MATRIX_ROWS]; //debounced values | ||
| 58 | |||
| 59 | __attribute__ ((weak)) | ||
| 60 | void matrix_init_quantum(void) { | ||
| 61 | matrix_init_kb(); | ||
| 62 | } | ||
| 63 | |||
| 64 | __attribute__ ((weak)) | ||
| 65 | void matrix_scan_quantum(void) { | ||
| 66 | matrix_scan_kb(); | ||
| 67 | } | ||
| 68 | |||
| 69 | __attribute__ ((weak)) | ||
| 70 | void matrix_init_kb(void) { | ||
| 71 | matrix_init_user(); | ||
| 72 | } | ||
| 73 | |||
| 74 | __attribute__ ((weak)) | ||
| 75 | void matrix_scan_kb(void) { | ||
| 76 | matrix_scan_user(); | ||
| 77 | } | ||
| 78 | |||
| 79 | __attribute__ ((weak)) | ||
| 80 | void matrix_init_user(void) { | ||
| 81 | } | ||
| 82 | |||
| 83 | __attribute__ ((weak)) | ||
| 84 | void matrix_scan_user(void) { | ||
| 85 | } | ||
| 86 | |||
| 87 | inline | ||
| 88 | uint8_t matrix_rows(void) { | ||
| 89 | return MATRIX_ROWS; | ||
| 90 | } | ||
| 91 | |||
| 92 | inline | ||
| 93 | uint8_t matrix_cols(void) { | ||
| 94 | return MATRIX_COLS; | ||
| 95 | } | ||
| 96 | |||
| 97 | //Deprecated. | ||
| 98 | bool matrix_is_modified(void) | ||
| 99 | { | ||
| 100 | if (debounce_active()) return false; | ||
| 101 | return true; | ||
| 102 | } | ||
| 103 | |||
| 104 | inline | ||
| 105 | bool matrix_is_on(uint8_t row, uint8_t col) | ||
| 106 | { | ||
| 107 | return (matrix[row] & ((matrix_row_t)1<<col)); | ||
| 108 | } | ||
| 109 | |||
| 110 | inline | ||
| 111 | matrix_row_t matrix_get_row(uint8_t row) | ||
| 112 | { | ||
| 113 | // Matrix mask lets you disable switches in the returned matrix data. For example, if you have a | ||
| 114 | // switch blocker installed and the switch is always pressed. | ||
| 115 | #ifdef MATRIX_MASKED | ||
| 116 | return matrix[row] & matrix_mask[row]; | ||
| 117 | #else | ||
| 118 | return matrix[row]; | ||
| 119 | #endif | ||
| 120 | } | ||
| 121 | |||
| 122 | void matrix_print(void) | ||
| 123 | { | ||
| 124 | print_matrix_header(); | ||
| 125 | |||
| 126 | for (uint8_t row = 0; row < MATRIX_ROWS; row++) { | ||
| 127 | phex(row); print(": "); | ||
| 128 | print_matrix_row(row); | ||
| 129 | print("\n"); | ||
| 130 | } | ||
| 131 | } | ||
| 132 | |||
| 133 | uint8_t matrix_key_count(void) | ||
| 134 | { | ||
| 135 | uint8_t count = 0; | ||
| 136 | for (uint8_t i = 0; i < MATRIX_ROWS; i++) { | ||
| 137 | count += matrix_bitpop(i); | ||
| 138 | } | ||
| 139 | return count; | ||
| 140 | } | ||
| 141 | |||
| 142 | |||
| 143 | #ifdef DIRECT_PINS | ||
| 144 | |||
| 145 | static void init_pins(void) { | ||
| 146 | for (int row = 0; row < MATRIX_ROWS; row++) { | ||
| 147 | for (int col = 0; col < MATRIX_COLS; col++) { | ||
| 148 | pin_t pin = direct_pins[row][col]; | ||
| 149 | if (pin != NO_PIN) { | ||
| 150 | setPinInputHigh(pin); | ||
| 151 | } | ||
| 152 | } | ||
| 153 | } | ||
| 154 | } | ||
| 155 | |||
| 156 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) { | ||
| 157 | matrix_row_t last_row_value = current_matrix[current_row]; | ||
| 158 | current_matrix[current_row] = 0; | ||
| 159 | |||
| 160 | for (uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { | ||
| 161 | pin_t pin = direct_pins[current_row][col_index]; | ||
| 162 | if (pin != NO_PIN) { | ||
| 163 | current_matrix[current_row] |= readPin(pin) ? 0 : (ROW_SHIFTER << col_index); | ||
| 164 | } | ||
| 165 | } | ||
| 166 | |||
| 167 | return (last_row_value != current_matrix[current_row]); | ||
| 168 | } | ||
| 169 | |||
| 170 | #elif (DIODE_DIRECTION == COL2ROW) | ||
| 171 | /* Rows 0 - 5 | ||
| 172 | * These rows use a 74HC138 3-to-8 demultiplexer. | ||
| 173 | * C B A | ||
| 174 | * row / pin: PB0 PB1 PB2 | ||
| 175 | * 0: 0 0 0 | ||
| 176 | * 1: 0 0 1 | ||
| 177 | * 2: 0 1 0 | ||
| 178 | * 3: 0 1 1 | ||
| 179 | * 4: 1 0 0 | ||
| 180 | * 5: 1 0 1 | ||
| 181 | */ | ||
| 182 | static void select_row(uint8_t col) | ||
| 183 | { | ||
| 184 | switch (col) { | ||
| 185 | case 0: | ||
| 186 | writePinLow(B0); | ||
| 187 | writePinLow(B1); | ||
| 188 | writePinLow(B2); | ||
| 189 | break; | ||
| 190 | case 1: | ||
| 191 | writePinLow(B0); | ||
| 192 | writePinLow(B1); | ||
| 193 | break; | ||
| 194 | case 2: | ||
| 195 | writePinLow(B0); | ||
| 196 | writePinLow(B2); | ||
| 197 | break; | ||
| 198 | case 3: | ||
| 199 | writePinLow(B0); | ||
| 200 | break; | ||
| 201 | case 4: | ||
| 202 | writePinLow(B1); | ||
| 203 | writePinLow(B2); | ||
| 204 | break; | ||
| 205 | case 5: | ||
| 206 | writePinLow(B1); | ||
| 207 | break; | ||
| 208 | } | ||
| 209 | } | ||
| 210 | |||
| 211 | static void unselect_row(uint8_t col) | ||
| 212 | { | ||
| 213 | switch (col) { | ||
| 214 | case 0: | ||
| 215 | writePinHigh(B0); | ||
| 216 | writePinHigh(B1); | ||
| 217 | writePinHigh(B2); | ||
| 218 | break; | ||
| 219 | case 1: | ||
| 220 | writePinHigh(B0); | ||
| 221 | writePinHigh(B1); | ||
| 222 | break; | ||
| 223 | case 2: | ||
| 224 | writePinHigh(B0); | ||
| 225 | writePinHigh(B2); | ||
| 226 | break; | ||
| 227 | case 3: | ||
| 228 | writePinHigh(B0); | ||
| 229 | break; | ||
| 230 | case 4: | ||
| 231 | writePinHigh(B1); | ||
| 232 | writePinHigh(B2); | ||
| 233 | break; | ||
| 234 | case 5: | ||
| 235 | writePinHigh(B1); | ||
| 236 | break; | ||
| 237 | } | ||
| 238 | } | ||
| 239 | |||
| 240 | static void unselect_rows(void) | ||
| 241 | { | ||
| 242 | setPinOutput(B0); | ||
| 243 | setPinOutput(B1); | ||
| 244 | setPinOutput(B2); | ||
| 245 | // make all pins high to select Y7, nothing is connected to that (otherwise the first row will act weird) | ||
| 246 | writePinHigh(B0); | ||
| 247 | writePinHigh(B1); | ||
| 248 | writePinHigh(B2); | ||
| 249 | } | ||
| 250 | |||
| 251 | static void init_pins(void) { | ||
| 252 | unselect_rows(); | ||
| 253 | for (uint8_t x = 0; x < MATRIX_COLS; x++) { | ||
| 254 | setPinInputHigh(col_pins[x]); | ||
| 255 | } | ||
| 256 | } | ||
| 257 | |||
| 258 | static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) | ||
| 259 | { | ||
| 260 | // Store last value of row prior to reading | ||
| 261 | matrix_row_t last_row_value = current_matrix[current_row]; | ||
| 262 | |||
| 263 | // Clear data in matrix row | ||
| 264 | current_matrix[current_row] = 0; | ||
| 265 | |||
| 266 | // Select row and wait for row selecton to stabilize | ||
| 267 | select_row(current_row); | ||
| 268 | wait_us(30); | ||
| 269 | |||
| 270 | // For each col... | ||
| 271 | for(uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) { | ||
| 272 | |||
| 273 | // Select the col pin to read (active low) | ||
| 274 | uint8_t pin_state = readPin(col_pins[col_index]); | ||
| 275 | |||
| 276 | // Populate the matrix row with the state of the col pin | ||
| 277 | current_matrix[current_row] |= pin_state ? 0 : (ROW_SHIFTER << col_index); | ||
| 278 | } | ||
| 279 | |||
| 280 | // Unselect row | ||
| 281 | unselect_row(current_row); | ||
| 282 | |||
| 283 | return (last_row_value != current_matrix[current_row]); | ||
| 284 | } | ||
| 285 | |||
| 286 | #elif (DIODE_DIRECTION == ROW2COL) | ||
| 287 | |||
| 288 | static void select_col(uint8_t col) | ||
| 289 | { | ||
| 290 | setPinOutput(col_pins[col]); | ||
| 291 | writePinLow(col_pins[col]); | ||
| 292 | } | ||
| 293 | |||
| 294 | static void unselect_col(uint8_t col) | ||
| 295 | { | ||
| 296 | setPinInputHigh(col_pins[col]); | ||
| 297 | } | ||
| 298 | |||
| 299 | static void unselect_cols(void) | ||
| 300 | { | ||
| 301 | for(uint8_t x = 0; x < MATRIX_COLS; x++) { | ||
| 302 | setPinInputHigh(col_pins[x]); | ||
| 303 | } | ||
| 304 | } | ||
| 305 | |||
| 306 | static void init_pins(void) { | ||
| 307 | unselect_cols(); | ||
| 308 | for (uint8_t x = 0; x < MATRIX_ROWS; x++) { | ||
| 309 | setPinInputHigh(row_pins[x]); | ||
| 310 | } | ||
| 311 | } | ||
| 312 | |||
| 313 | static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) | ||
| 314 | { | ||
| 315 | bool matrix_changed = false; | ||
| 316 | |||
| 317 | // Select col and wait for col selecton to stabilize | ||
| 318 | select_col(current_col); | ||
| 319 | wait_us(30); | ||
| 320 | |||
| 321 | // For each row... | ||
| 322 | for(uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) | ||
| 323 | { | ||
| 324 | |||
| 325 | // Store last value of row prior to reading | ||
| 326 | matrix_row_t last_row_value = current_matrix[row_index]; | ||
| 327 | |||
| 328 | // Check row pin state | ||
| 329 | if (readPin(row_pins[row_index]) == 0) | ||
| 330 | { | ||
| 331 | // Pin LO, set col bit | ||
| 332 | current_matrix[row_index] |= (ROW_SHIFTER << current_col); | ||
| 333 | } | ||
| 334 | else | ||
| 335 | { | ||
| 336 | // Pin HI, clear col bit | ||
| 337 | current_matrix[row_index] &= ~(ROW_SHIFTER << current_col); | ||
| 338 | } | ||
| 339 | |||
| 340 | // Determine if the matrix changed state | ||
| 341 | if ((last_row_value != current_matrix[row_index]) && !(matrix_changed)) | ||
| 342 | { | ||
| 343 | matrix_changed = true; | ||
| 344 | } | ||
| 345 | } | ||
| 346 | |||
| 347 | // Unselect col | ||
| 348 | unselect_col(current_col); | ||
| 349 | |||
| 350 | return matrix_changed; | ||
| 351 | } | ||
| 352 | |||
| 353 | #endif | ||
| 354 | |||
| 355 | void matrix_init(void) { | ||
| 356 | |||
| 357 | // initialize key pins | ||
| 358 | init_pins(); | ||
| 359 | |||
| 360 | // initialize matrix state: all keys off | ||
| 361 | for (uint8_t i=0; i < MATRIX_ROWS; i++) { | ||
| 362 | raw_matrix[i] = 0; | ||
| 363 | matrix[i] = 0; | ||
| 364 | } | ||
| 365 | |||
| 366 | debounce_init(MATRIX_ROWS); | ||
| 367 | |||
| 368 | matrix_init_quantum(); | ||
| 369 | } | ||
| 370 | |||
| 371 | uint8_t matrix_scan(void) | ||
| 372 | { | ||
| 373 | bool changed = false; | ||
| 374 | |||
| 375 | #if defined(DIRECT_PINS) || (DIODE_DIRECTION == COL2ROW) | ||
| 376 | // Set row, read cols | ||
| 377 | for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { | ||
| 378 | changed |= read_cols_on_row(raw_matrix, current_row); | ||
| 379 | } | ||
| 380 | #elif (DIODE_DIRECTION == ROW2COL) | ||
| 381 | // Set col, read rows | ||
| 382 | for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) { | ||
| 383 | changed |= read_rows_on_col(raw_matrix, current_col); | ||
| 384 | } | ||
| 385 | #endif | ||
| 386 | |||
| 387 | debounce(raw_matrix, matrix, MATRIX_ROWS, changed); | ||
| 388 | |||
| 389 | matrix_scan_quantum(); | ||
| 390 | return 1; | ||
| 391 | } | ||
diff --git a/keyboards/redscarf_iiplus/verd/readme.md b/keyboards/redscarf_iiplus/verd/readme.md new file mode 100644 index 000000000..37ca69a66 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/readme.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # Red Scarf II+ Ver.D (RS78) | ||
| 2 | |||
| 3 | A 60% keyboard with a numpad on the right | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [Andy Lee](https://github.com/alittlepeace) | ||
| 6 | * Hardware Supported: Ver.D (RS77) | ||
| 7 | * Hardware Availability: [Drop](https://drop.com/buy/red-scarf-ii-plus-ver-d-custom-mechanical-keyboard-kit) | ||
| 8 | |||
| 9 | |||
| 10 | Please note that QMK Firmware does not currently support controlling the underglow LEDs; however, if your board came with the remote, it can still be used to change the colour. | ||
| 11 | |||
| 12 | ## Flashing | ||
| 13 | |||
| 14 | The flashing is sub-optimal. | ||
| 15 | |||
| 16 | Flashing the Red Scarf involves using Google Chrome, downloading an extension, and then flashing. For more detailed instructions please refer to [kairyu.gitbooks.io](https://kairyu.gitbooks.io/red-scarf-ii-plus-user-guide-how-to-custom-layout/content/online_reflash.html) | ||
| 17 | |||
| 18 | --- | ||
| 19 | |||
| 20 | Make example for this keyboard (after setting up your build environment): | ||
| 21 | |||
| 22 | make redscarf_iiplus/verd:default | ||
| 23 | |||
| 24 | 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/redscarf_iiplus/verd/rules.mk b/keyboards/redscarf_iiplus/verd/rules.mk new file mode 100644 index 000000000..89b1a5989 --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/rules.mk | |||
| @@ -0,0 +1,36 @@ | |||
| 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 = halfkay | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | ||
| 27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | UNICODE_ENABLE = no # Unicode | ||
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 31 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 33 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 34 | |||
| 35 | CUSTOM_MATRIX = yes | ||
| 36 | SRC += matrix.c | ||
diff --git a/keyboards/redscarf_iiplus/verd/verd.c b/keyboards/redscarf_iiplus/verd/verd.c new file mode 100644 index 000000000..6d2a8c97c --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/verd.c | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | ||
| 2 | * This program is free software: you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation, either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 14 | */ | ||
| 15 | #include "verd.h" | ||
| 16 | |||
| 17 | // Optional override functions below. | ||
| 18 | // You can leave any or all of these undefined. | ||
| 19 | // These are only required if you want to perform custom actions. | ||
| 20 | |||
| 21 | void matrix_init_kb(void) { | ||
| 22 | // put your keyboard start-up code here | ||
| 23 | // runs once when the firmware starts up | ||
| 24 | |||
| 25 | matrix_init_user(); | ||
| 26 | led_init_ports(); | ||
| 27 | } | ||
| 28 | |||
| 29 | void led_init_ports(void) { | ||
| 30 | setPinOutput(C7); | ||
| 31 | writePinHigh(C7); | ||
| 32 | setPinOutput(E6); | ||
| 33 | writePinHigh(E6); | ||
| 34 | } | ||
| 35 | |||
| 36 | bool led_update_kb(led_t led_state) { | ||
| 37 | if (led_update_user(led_state)) { | ||
| 38 | writePin(C7, !led_state.caps_lock); | ||
| 39 | writePin(E6, !led_state.num_lock); | ||
| 40 | } | ||
| 41 | return true; | ||
| 42 | } | ||
diff --git a/keyboards/redscarf_iiplus/verd/verd.h b/keyboards/redscarf_iiplus/verd/verd.h new file mode 100644 index 000000000..b96dd0f6b --- /dev/null +++ b/keyboards/redscarf_iiplus/verd/verd.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* Copyright 2019 Andy Lee <alee@alittlepeacemusic.com> | ||
| 2 | * This program is free software: you can redistribute it and/or modify | ||
| 3 | * it under the terms of the GNU General Public License as published by | ||
| 4 | * the Free Software Foundation, either version 2 of the License, or | ||
| 5 | * (at your option) any later version. | ||
| 6 | * | ||
| 7 | * This program is distributed in the hope that it will be useful, | ||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 10 | * GNU General Public License for more details. | ||
| 11 | * | ||
| 12 | * You should have received a copy of the GNU General Public License | ||
| 13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 14 | */ | ||
| 15 | #pragma once | ||
| 16 | |||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 19 | #define ____ KC_NO | ||
| 20 | |||
| 21 | /* This 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_60_ansi_numpad_split0( \ | ||
| 30 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017, \ | ||
| 31 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
| 32 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, K215, K216, K217, \ | ||
| 33 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, K315, K316, \ | ||
| 34 | K400, K401, K402, K409, K410, K411, K412, K413, K414, K415, K416, K417 \ | ||
| 35 | ) { \ | ||
| 36 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017 }, \ | ||
| 37 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K217 }, \ | ||
| 38 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, ____, K213, K214, K215, K216, ____ }, \ | ||
| 39 | { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____, K314, K315, K316, ____ }, \ | ||
| 40 | { K400, K401, K402, ____, ____, ____, ____, ____, ____, K409, K410, K411, K412, K413, K414, K415, K416, K417 } \ | ||
| 41 | } | ||
| 42 | |||
| 43 | #define LAYOUT_60_ansi_numpad( \ | ||
| 44 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017, \ | ||
| 45 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
| 46 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, K215, K216, K217, \ | ||
| 47 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K314, K315, K316, \ | ||
| 48 | K400, K401, K402, K409, K410, K411, K412, K413, K414, K416, K417 \ | ||
| 49 | ) { \ | ||
| 50 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, K017 }, \ | ||
| 51 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K217 }, \ | ||
| 52 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, ____, K213, K214, K215, K216, ____ }, \ | ||
| 53 | { K300, ____, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, ____, K314, K315, K316, ____ }, \ | ||
| 54 | { K400, K401, K402, ____, ____, ____, ____, ____, ____, K409, K410, K411, K412, K413, K414, ____, K416, K417 } \ | ||
| 55 | } | ||
