diff options
| author | yiancar <yiangosyiangou@cytanet.com.cy> | 2018-02-03 20:21:24 +0000 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-03 15:21:24 -0500 |
| commit | 8350d7e607704d6736271256f20640e8f3deae75 (patch) | |
| tree | 6d72272fead1c54375ca02189566c1bdc8612008 | |
| parent | e7bb9754823ae7a09f7ba3bf4ecd7b45663ae382 (diff) | |
| download | qmk_firmware-8350d7e607704d6736271256f20640e8f3deae75.tar.gz qmk_firmware-8350d7e607704d6736271256f20640e8f3deae75.zip | |
Cu24 keyboard addition (#2330)
* Added Modular keyboards L,R and NUM
Created code modules for the 3 modules of the modular keyboard.
Original idea by MechboardsUK. Uses i2c implementation similar to lets
split
* CU24 Support
Addes Support for the upcoming CU24 keyboard sold by CapsUnlocked
* Removed modular keyboards to make stuff clear
* Lower Case folders
* Remove CU24 - Rename Folder
* Add CU24 - Renamed
* Fixed ignore list
I am stupid
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | keyboards/cu24/config.h | 192 | ||||
| -rw-r--r-- | keyboards/cu24/cu24.c | 16 | ||||
| -rw-r--r-- | keyboards/cu24/cu24.h | 42 | ||||
| -rw-r--r-- | keyboards/cu24/keymaps/default/keymap.c | 56 | ||||
| -rw-r--r-- | keyboards/cu24/keymaps/default/readme.md | 10 | ||||
| -rw-r--r-- | keyboards/cu24/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/cu24/rules.mk | 69 |
8 files changed, 401 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore index 90f29a297..226f11868 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -64,4 +64,4 @@ util/Win_Check_Output.txt | |||
| 64 | # things travis sees | 64 | # things travis sees |
| 65 | secrets.tar | 65 | secrets.tar |
| 66 | id_rsa_* | 66 | id_rsa_* |
| 67 | /.vs | 67 | /.vs \ No newline at end of file |
diff --git a/keyboards/cu24/config.h b/keyboards/cu24/config.h new file mode 100644 index 000000000..df009c953 --- /dev/null +++ b/keyboards/cu24/config.h | |||
| @@ -0,0 +1,192 @@ | |||
| 1 | /* Copyright 2018 Yiancar | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef CONFIG_H | ||
| 18 | #define CONFIG_H | ||
| 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 Yiancar/CapsUnlocked | ||
| 27 | #define PRODUCT CU24 | ||
| 28 | #define DESCRIPTION A luxurious fully customisable numpad | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 6 | ||
| 32 | #define MATRIX_COLS 4 | ||
| 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 { E6, F5, B4, B6, C6, C7 } | ||
| 45 | #define MATRIX_COL_PINS { F0, F1, D0, D1 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
| 49 | #define DIODE_DIRECTION ROW2COL | ||
| 50 | |||
| 51 | /* Backlight */ | ||
| 52 | #define BACKLIGHT_PIN B5 | ||
| 53 | #define BACKLIGHT_BREATHING | ||
| 54 | #define BACKLIGHT_LEVELS 5 | ||
| 55 | |||
| 56 | /* RGB Glow */ | ||
| 57 | #define RGB_DI_PIN F4 // The pin the LED strip is connected to | ||
| 58 | #define RGBLED_NUM 5 // Number of LEDs in your strip | ||
| 59 | #define RGBLIGHT_ANIMATIONS | ||
| 60 | |||
| 61 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 62 | #define DEBOUNCING_DELAY 5 | ||
| 63 | |||
| 64 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 65 | //#define MATRIX_HAS_GHOST | ||
| 66 | |||
| 67 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 68 | #define LOCKING_SUPPORT_ENABLE | ||
| 69 | /* Locking resynchronize hack */ | ||
| 70 | #define LOCKING_RESYNC_ENABLE | ||
| 71 | |||
| 72 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 73 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 74 | */ | ||
| 75 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 76 | |||
| 77 | /* | ||
| 78 | * Force NKRO | ||
| 79 | * | ||
| 80 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 81 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 82 | * makefile for this to work.) | ||
| 83 | * | ||
| 84 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 85 | * until the next keyboard reset. | ||
| 86 | * | ||
| 87 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 88 | * fully operational during normal computer usage. | ||
| 89 | * | ||
| 90 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 91 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 92 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 93 | * power-up. | ||
| 94 | * | ||
| 95 | */ | ||
| 96 | //#define FORCE_NKRO | ||
| 97 | |||
| 98 | /* | ||
| 99 | * Magic Key Options | ||
| 100 | * | ||
| 101 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 102 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 103 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 104 | * | ||
| 105 | * The options below allow the magic key functionality to be changed. This is | ||
| 106 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 107 | * | ||
| 108 | */ | ||
| 109 | |||
| 110 | /* key combination for magic key command */ | ||
| 111 | #define IS_COMMAND() ( \ | ||
| 112 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 113 | ) | ||
| 114 | |||
| 115 | /* control how magic key switches layers */ | ||
| 116 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 117 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 119 | |||
| 120 | /* override magic key keymap */ | ||
| 121 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 122 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 123 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 124 | //#define MAGIC_KEY_HELP1 H | ||
| 125 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 126 | //#define MAGIC_KEY_DEBUG D | ||
| 127 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 128 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 129 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 130 | //#define MAGIC_KEY_VERSION V | ||
| 131 | //#define MAGIC_KEY_STATUS S | ||
| 132 | //#define MAGIC_KEY_CONSOLE C | ||
| 133 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 134 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 135 | //#define MAGIC_KEY_LAYER0 0 | ||
| 136 | //#define MAGIC_KEY_LAYER1 1 | ||
| 137 | //#define MAGIC_KEY_LAYER2 2 | ||
| 138 | //#define MAGIC_KEY_LAYER3 3 | ||
| 139 | //#define MAGIC_KEY_LAYER4 4 | ||
| 140 | //#define MAGIC_KEY_LAYER5 5 | ||
| 141 | //#define MAGIC_KEY_LAYER6 6 | ||
| 142 | //#define MAGIC_KEY_LAYER7 7 | ||
| 143 | //#define MAGIC_KEY_LAYER8 8 | ||
| 144 | //#define MAGIC_KEY_LAYER9 9 | ||
| 145 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 146 | //#define MAGIC_KEY_LOCK CAPS | ||
| 147 | //#define MAGIC_KEY_EEPROM E | ||
| 148 | //#define MAGIC_KEY_NKRO N | ||
| 149 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 150 | |||
| 151 | /* | ||
| 152 | * Feature disable options | ||
| 153 | * These options are also useful to firmware size reduction. | ||
| 154 | */ | ||
| 155 | |||
| 156 | /* disable debug print */ | ||
| 157 | //#define NO_DEBUG | ||
| 158 | |||
| 159 | /* disable print */ | ||
| 160 | //#define NO_PRINT | ||
| 161 | |||
| 162 | /* disable action features */ | ||
| 163 | //#define NO_ACTION_LAYER | ||
| 164 | //#define NO_ACTION_TAPPING | ||
| 165 | //#define NO_ACTION_ONESHOT | ||
| 166 | //#define NO_ACTION_MACRO | ||
| 167 | //#define NO_ACTION_FUNCTION | ||
| 168 | |||
| 169 | /* | ||
| 170 | * MIDI options | ||
| 171 | */ | ||
| 172 | |||
| 173 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 174 | //#define MIDI_ENABLE_STRICT 1 | ||
| 175 | |||
| 176 | /* enable basic MIDI features: | ||
| 177 | - MIDI notes can be sent when in Music mode is on | ||
| 178 | */ | ||
| 179 | //#define MIDI_BASIC | ||
| 180 | |||
| 181 | /* enable advanced MIDI features: | ||
| 182 | - MIDI notes can be added to the keymap | ||
| 183 | - Octave shift and transpose | ||
| 184 | - Virtual sustain, portamento, and modulation wheel | ||
| 185 | - etc. | ||
| 186 | */ | ||
| 187 | //#define MIDI_ADVANCED | ||
| 188 | |||
| 189 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 190 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 191 | |||
| 192 | #endif | ||
diff --git a/keyboards/cu24/cu24.c b/keyboards/cu24/cu24.c new file mode 100644 index 000000000..0c976f076 --- /dev/null +++ b/keyboards/cu24/cu24.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2018 Yiancar | ||
| 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 "cu24.h" | ||
diff --git a/keyboards/cu24/cu24.h b/keyboards/cu24/cu24.h new file mode 100644 index 000000000..e8e6b46ec --- /dev/null +++ b/keyboards/cu24/cu24.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* Copyright 2018 Yiancar | ||
| 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 | #ifndef CU24_H | ||
| 17 | #define CU24_H | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | // This a shortcut to help you visually see your layout. | ||
| 22 | // The following is an example using the Planck MIT layout | ||
| 23 | // The first section contains all of the arguments | ||
| 24 | // The second converts the arguments into a two-dimensional array | ||
| 25 | #define KEYMAP( \ | ||
| 26 | k00, k01, k02, k03, \ | ||
| 27 | k10, k11, k12, k13, \ | ||
| 28 | k20, k21, k22, k23, \ | ||
| 29 | k30, k31, k32, k33, \ | ||
| 30 | k40, k41, k42, k43, \ | ||
| 31 | k50, k51, k52, k53 \ | ||
| 32 | ) \ | ||
| 33 | { \ | ||
| 34 | { k00, k01, k02, k03 }, \ | ||
| 35 | { k10, k11, k12, k13 }, \ | ||
| 36 | { k20, k21, k22, k23 }, \ | ||
| 37 | { k30, k31, k32, k33 }, \ | ||
| 38 | { k40, k41, k42, k43 }, \ | ||
| 39 | { k50, k51, k52, k53 } \ | ||
| 40 | } | ||
| 41 | |||
| 42 | #endif | ||
diff --git a/keyboards/cu24/keymaps/default/keymap.c b/keyboards/cu24/keymaps/default/keymap.c new file mode 100644 index 000000000..8e2f65632 --- /dev/null +++ b/keyboards/cu24/keymaps/default/keymap.c | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2018 Yiancar | ||
| 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 "cu24.h" | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = KEYMAP( /* Base */ | ||
| 20 | KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, \ | ||
| 21 | MO(1) , KC_PSLS, KC_PAST, KC_PMNS, \ | ||
| 22 | KC_P7 , KC_P8 , KC_P9 , KC_PPLS, \ | ||
| 23 | KC_P4 , KC_P5 , KC_P6 , KC_PPLS, \ | ||
| 24 | KC_P1 , KC_P2 , KC_P3 , KC_PENT, \ | ||
| 25 | KC_P0 , KC_P0 , KC_PDOT, KC_PENT | ||
| 26 | ), | ||
| 27 | |||
| 28 | [1] = KEYMAP( /* FN */ | ||
| 29 | RGB_TOG, RGB_MOD, BL_STEP, BL_BRTG, \ | ||
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 31 | RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, \ | ||
| 32 | RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS, \ | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 34 | KC_TRNS, KC_TRNS, RESET , KC_TRNS | ||
| 35 | ), | ||
| 36 | }; | ||
| 37 | |||
| 38 | /* Use this function to add macros */ | ||
| 39 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 40 | { | ||
| 41 | // MACRODOWN only works in this function | ||
| 42 | switch(id) { | ||
| 43 | case 0: | ||
| 44 | if (record->event.pressed) { | ||
| 45 | register_code(KC_RSFT); | ||
| 46 | } else { | ||
| 47 | unregister_code(KC_RSFT); | ||
| 48 | } | ||
| 49 | break; | ||
| 50 | } | ||
| 51 | return MACRO_NONE; | ||
| 52 | }; | ||
| 53 | |||
| 54 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 55 | return true; | ||
| 56 | } | ||
diff --git a/keyboards/cu24/keymaps/default/readme.md b/keyboards/cu24/keymaps/default/readme.md new file mode 100644 index 000000000..5528d6c0d --- /dev/null +++ b/keyboards/cu24/keymaps/default/readme.md | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | https://imgur.com/a/vpHFj | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | # Default CU24 Layout | ||
| 6 | |||
| 7 | This is the default layout that comes flashed on every CU24. It is like a normal numpad, | ||
| 8 | with all the led customization on the Fn layer. | ||
| 9 | |||
| 10 | See [All Layouts](https://imgur.com/trwO7dN) for all supported configurations! \ No newline at end of file | ||
diff --git a/keyboards/cu24/readme.md b/keyboards/cu24/readme.md new file mode 100644 index 000000000..a017cd665 --- /dev/null +++ b/keyboards/cu24/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # CU24 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A luxurious 24 key keypad with various layouts. Includes RGB underglow, backlight and an aluminium, brass and nylon case. | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Yiancar](https://github.com/yiancar) | ||
| 8 | Hardware Supported: PCB v1.0 (uses a 32u4) | ||
| 9 | Hardware Availability: http://caps-unlocked.com/ | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make CU24:default | ||
| 14 | |||
| 15 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. | ||
diff --git a/keyboards/cu24/rules.mk b/keyboards/cu24/rules.mk new file mode 100644 index 000000000..86f1a8479 --- /dev/null +++ b/keyboards/cu24/rules.mk | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1286 | ||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | |||
| 19 | # | ||
| 20 | # LUFA specific | ||
| 21 | # | ||
| 22 | # Target architecture (see library "Board Types" documentation). | ||
| 23 | ARCH = AVR8 | ||
| 24 | |||
| 25 | # Input clock frequency. | ||
| 26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 32 | # source code. | ||
| 33 | # | ||
| 34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 36 | F_USB = $(F_CPU) | ||
| 37 | |||
| 38 | # Interrupt driven control endpoint task(+60) | ||
| 39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 40 | |||
| 41 | |||
| 42 | # Boot Section Size in *bytes* | ||
| 43 | # Teensy halfKay 512 | ||
| 44 | # Teensy++ halfKay 1024 | ||
| 45 | # Atmel DFU loader 4096 | ||
| 46 | # LUFA bootloader 4096 | ||
| 47 | # USBaspLoader 2048 | ||
| 48 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 49 | |||
| 50 | |||
| 51 | # Build Options | ||
| 52 | # change yes to no to disable | ||
| 53 | # | ||
| 54 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 55 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 56 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 57 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 58 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 60 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 62 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 63 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | ||
| 64 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 65 | UNICODE_ENABLE = no # Unicode | ||
| 66 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 67 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 68 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 69 | RGBLIGHT_ENABLE = yes # RGB drivers | ||
