forked from jasonhazel/qmk_hazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
1 parent
e7bb975
commit 8350d7e
Showing
8 changed files
with
401 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,4 +64,4 @@ util/Win_Check_Output.txt | |
# things travis sees | ||
secrets.tar | ||
id_rsa_* | ||
/.vs | ||
/.vs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
/* Copyright 2018 Yiancar | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef CONFIG_H | ||
#define CONFIG_H | ||
|
||
#include "config_common.h" | ||
|
||
/* USB Device descriptor parameter */ | ||
#define VENDOR_ID 0xFEED | ||
#define PRODUCT_ID 0x0000 | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER Yiancar/CapsUnlocked | ||
#define PRODUCT CU24 | ||
#define DESCRIPTION A luxurious fully customisable numpad | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 6 | ||
#define MATRIX_COLS 4 | ||
|
||
/* | ||
* Keyboard Matrix Assignments | ||
* | ||
* Change this to how you wired your keyboard | ||
* COLS: AVR pins used for columns, left to right | ||
* ROWS: AVR pins used for rows, top to bottom | ||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
* | ||
*/ | ||
#define MATRIX_ROW_PINS { E6, F5, B4, B6, C6, C7 } | ||
#define MATRIX_COL_PINS { F0, F1, D0, D1 } | ||
#define UNUSED_PINS | ||
|
||
/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
#define DIODE_DIRECTION ROW2COL | ||
|
||
/* Backlight */ | ||
#define BACKLIGHT_PIN B5 | ||
#define BACKLIGHT_BREATHING | ||
#define BACKLIGHT_LEVELS 5 | ||
|
||
/* RGB Glow */ | ||
#define RGB_DI_PIN F4 // The pin the LED strip is connected to | ||
#define RGBLED_NUM 5 // Number of LEDs in your strip | ||
#define RGBLIGHT_ANIMATIONS | ||
|
||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
#define DEBOUNCING_DELAY 5 | ||
|
||
/* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
//#define MATRIX_HAS_GHOST | ||
|
||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
#define LOCKING_SUPPORT_ENABLE | ||
/* Locking resynchronize hack */ | ||
#define LOCKING_RESYNC_ENABLE | ||
|
||
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
* This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
*/ | ||
// #define GRAVE_ESC_CTRL_OVERRIDE | ||
|
||
/* | ||
* Force NKRO | ||
* | ||
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
* makefile for this to work.) | ||
* | ||
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
* until the next keyboard reset. | ||
* | ||
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
* fully operational during normal computer usage. | ||
* | ||
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
* bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
* power-up. | ||
* | ||
*/ | ||
//#define FORCE_NKRO | ||
|
||
/* | ||
* Magic Key Options | ||
* | ||
* Magic keys are hotkey commands that allow control over firmware functions of | ||
* the keyboard. They are best used in combination with the HID Listen program, | ||
* found here: https://www.pjrc.com/teensy/hid_listen.html | ||
* | ||
* The options below allow the magic key functionality to be changed. This is | ||
* useful if your keyboard/keypad is missing keys and you want magic key support. | ||
* | ||
*/ | ||
|
||
/* key combination for magic key command */ | ||
#define IS_COMMAND() ( \ | ||
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
) | ||
|
||
/* control how magic key switches layers */ | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
|
||
/* override magic key keymap */ | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
//#define MAGIC_KEY_HELP1 H | ||
//#define MAGIC_KEY_HELP2 SLASH | ||
//#define MAGIC_KEY_DEBUG D | ||
//#define MAGIC_KEY_DEBUG_MATRIX X | ||
//#define MAGIC_KEY_DEBUG_KBD K | ||
//#define MAGIC_KEY_DEBUG_MOUSE M | ||
//#define MAGIC_KEY_VERSION V | ||
//#define MAGIC_KEY_STATUS S | ||
//#define MAGIC_KEY_CONSOLE C | ||
//#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
//#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
//#define MAGIC_KEY_LAYER0 0 | ||
//#define MAGIC_KEY_LAYER1 1 | ||
//#define MAGIC_KEY_LAYER2 2 | ||
//#define MAGIC_KEY_LAYER3 3 | ||
//#define MAGIC_KEY_LAYER4 4 | ||
//#define MAGIC_KEY_LAYER5 5 | ||
//#define MAGIC_KEY_LAYER6 6 | ||
//#define MAGIC_KEY_LAYER7 7 | ||
//#define MAGIC_KEY_LAYER8 8 | ||
//#define MAGIC_KEY_LAYER9 9 | ||
//#define MAGIC_KEY_BOOTLOADER PAUSE | ||
//#define MAGIC_KEY_LOCK CAPS | ||
//#define MAGIC_KEY_EEPROM E | ||
//#define MAGIC_KEY_NKRO N | ||
//#define MAGIC_KEY_SLEEP_LED Z | ||
|
||
/* | ||
* Feature disable options | ||
* These options are also useful to firmware size reduction. | ||
*/ | ||
|
||
/* disable debug print */ | ||
//#define NO_DEBUG | ||
|
||
/* disable print */ | ||
//#define NO_PRINT | ||
|
||
/* disable action features */ | ||
//#define NO_ACTION_LAYER | ||
//#define NO_ACTION_TAPPING | ||
//#define NO_ACTION_ONESHOT | ||
//#define NO_ACTION_MACRO | ||
//#define NO_ACTION_FUNCTION | ||
|
||
/* | ||
* MIDI options | ||
*/ | ||
|
||
/* Prevent use of disabled MIDI features in the keymap */ | ||
//#define MIDI_ENABLE_STRICT 1 | ||
|
||
/* enable basic MIDI features: | ||
- MIDI notes can be sent when in Music mode is on | ||
*/ | ||
//#define MIDI_BASIC | ||
|
||
/* enable advanced MIDI features: | ||
- MIDI notes can be added to the keymap | ||
- Octave shift and transpose | ||
- Virtual sustain, portamento, and modulation wheel | ||
- etc. | ||
*/ | ||
//#define MIDI_ADVANCED | ||
|
||
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
//#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright 2018 Yiancar | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#include "cu24.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* Copyright 2018 Yiancar | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#ifndef CU24_H | ||
#define CU24_H | ||
|
||
#include "quantum.h" | ||
|
||
// This a shortcut to help you visually see your layout. | ||
// The following is an example using the Planck MIT layout | ||
// The first section contains all of the arguments | ||
// The second converts the arguments into a two-dimensional array | ||
#define KEYMAP( \ | ||
k00, k01, k02, k03, \ | ||
k10, k11, k12, k13, \ | ||
k20, k21, k22, k23, \ | ||
k30, k31, k32, k33, \ | ||
k40, k41, k42, k43, \ | ||
k50, k51, k52, k53 \ | ||
) \ | ||
{ \ | ||
{ k00, k01, k02, k03 }, \ | ||
{ k10, k11, k12, k13 }, \ | ||
{ k20, k21, k22, k23 }, \ | ||
{ k30, k31, k32, k33 }, \ | ||
{ k40, k41, k42, k43 }, \ | ||
{ k50, k51, k52, k53 } \ | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* Copyright 2018 Yiancar | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#include "cu24.h" | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[0] = KEYMAP( /* Base */ | ||
KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, \ | ||
MO(1) , KC_PSLS, KC_PAST, KC_PMNS, \ | ||
KC_P7 , KC_P8 , KC_P9 , KC_PPLS, \ | ||
KC_P4 , KC_P5 , KC_P6 , KC_PPLS, \ | ||
KC_P1 , KC_P2 , KC_P3 , KC_PENT, \ | ||
KC_P0 , KC_P0 , KC_PDOT, KC_PENT | ||
), | ||
|
||
[1] = KEYMAP( /* FN */ | ||
RGB_TOG, RGB_MOD, BL_STEP, BL_BRTG, \ | ||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, \ | ||
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS, \ | ||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
KC_TRNS, KC_TRNS, RESET , KC_TRNS | ||
), | ||
}; | ||
|
||
/* Use this function to add macros */ | ||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
{ | ||
// MACRODOWN only works in this function | ||
switch(id) { | ||
case 0: | ||
if (record->event.pressed) { | ||
register_code(KC_RSFT); | ||
} else { | ||
unregister_code(KC_RSFT); | ||
} | ||
break; | ||
} | ||
return MACRO_NONE; | ||
}; | ||
|
||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
https://imgur.com/a/vpHFj | ||
|
||
![CU24 Layout Image](https://imgur.com/X1c1qeY) | ||
|
||
# Default CU24 Layout | ||
|
||
This is the default layout that comes flashed on every CU24. It is like a normal numpad, | ||
with all the led customization on the Fn layer. | ||
|
||
See [All Layouts](https://imgur.com/trwO7dN) for all supported configurations! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# CU24 | ||
|
||
![CU24](https://geekhack.org/index.php?action=dlattach;topic=93289.0;attach=185492;image) | ||
|
||
A luxurious 24 key keypad with various layouts. Includes RGB underglow, backlight and an aluminium, brass and nylon case. | ||
|
||
Keyboard Maintainer: [Yiancar](https://github.com/yiancar) | ||
Hardware Supported: PCB v1.0 (uses a 32u4) | ||
Hardware Availability: http://caps-unlocked.com/ | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make CU24:default | ||
|
||
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. |
Oops, something went wrong.