diff options
author | Ryan <fauxpark@gmail.com> | 2021-02-22 11:49:13 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 00:49:13 +0000 |
commit | 316dcf49605be88b24e81ed61e6a7659a6c3892f (patch) | |
tree | c95b2dcddf088630ac43ae1da86f736ec9b107b2 /keyboards/gh60 | |
parent | c1e6febef74936584bf0e3a7ab17480ced13419c (diff) | |
download | qmk_firmware-316dcf49605be88b24e81ed61e6a7659a6c3892f.tar.gz qmk_firmware-316dcf49605be88b24e81ed61e6a7659a6c3892f.zip |
Clean up some user keymaps specifying MCU (#11966)
Diffstat (limited to 'keyboards/gh60')
-rw-r--r-- | keyboards/gh60/revc/keymaps/bluezio/rules.mk | 69 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/dbroqua/config.h | 153 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/dbroqua/rules.mk | 109 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/dbroqua_7U/rules.mk | 108 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/robotmaxtron/config.h | 156 | ||||
-rw-r--r-- | keyboards/gh60/revc/keymaps/robotmaxtron/rules.mk | 108 |
6 files changed, 9 insertions, 694 deletions
diff --git a/keyboards/gh60/revc/keymaps/bluezio/rules.mk b/keyboards/gh60/revc/keymaps/bluezio/rules.mk index 4b820c974..116d505b7 100644 --- a/keyboards/gh60/revc/keymaps/bluezio/rules.mk +++ b/keyboards/gh60/revc/keymaps/bluezio/rules.mk | |||
@@ -1,68 +1 @@ | |||
1 | # MCU name | KEY_LOCK_ENABLE = yes | |
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Boot Section Size in *bytes* | ||
42 | # Teensy halfKay 512 | ||
43 | # Teensy++ halfKay 1024 | ||
44 | # Atmel DFU loader 4096 | ||
45 | # LUFA bootloader 4096 | ||
46 | # USBaspLoader 2048 | ||
47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
48 | |||
49 | |||
50 | # Build Options | ||
51 | # comment out to disable the options. | ||
52 | # | ||
53 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
54 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
55 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
56 | # CONSOLE_ENABLE = yes # Console for debug(+400) | ||
57 | # COMMAND_ENABLE = yes # Commands for debug and configuration | ||
58 | KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key | ||
59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
60 | # SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
61 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
62 | # BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
63 | # MIDI_ENABLE = YES # MIDI controls | ||
64 | # UNICODE_ENABLE = YES # Unicode | ||
65 | # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID | ||
66 | KEY_LOCK_ENABLE = yes # KC_LOCK | ||
67 | |||
68 | LAYOUTS = 60_ansi 60_iso 60_ansi_split_bs_rshift | ||
diff --git a/keyboards/gh60/revc/keymaps/dbroqua/config.h b/keyboards/gh60/revc/keymaps/dbroqua/config.h index 5d1a777a4..38e5bb0de 100644 --- a/keyboards/gh60/revc/keymaps/dbroqua/config.h +++ b/keyboards/gh60/revc/keymaps/dbroqua/config.h | |||
@@ -15,160 +15,11 @@ 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/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef CONFIG_USER_H | 18 | #pragma once |
19 | #define CONFIG_USER_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x6060 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER geekhack | ||
28 | #define PRODUCT GH60 | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 14 | ||
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 { D0, D1, D2, D3, D5 } | ||
45 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 } | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW or ROW2COL */ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
52 | #define DEBOUNCE 5 | ||
53 | |||
54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
55 | //#define MATRIX_HAS_GHOST | ||
56 | |||
57 | /* number of backlight levels */ | ||
58 | #define BACKLIGHT_LEVELS 3 | ||
59 | |||
60 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
61 | #define LOCKING_SUPPORT_ENABLE | ||
62 | /* Locking resynchronize hack */ | ||
63 | #define LOCKING_RESYNC_ENABLE | ||
64 | |||
65 | /* | ||
66 | * Force NKRO | ||
67 | * | ||
68 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
69 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
70 | * makefile for this to work.) | ||
71 | * | ||
72 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
73 | * until the next keyboard reset. | ||
74 | * | ||
75 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
76 | * fully operational during normal computer usage. | ||
77 | * | ||
78 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
79 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
80 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
81 | * power-up. | ||
82 | * | ||
83 | */ | ||
84 | //#define FORCE_NKRO | ||
85 | |||
86 | /* | ||
87 | * Magic Key Options | ||
88 | * | ||
89 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
90 | * the keyboard. They are best used in combination with the HID Listen program, | ||
91 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
92 | * | ||
93 | * The options below allow the magic key functionality to be changed. This is | ||
94 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
95 | * | ||
96 | */ | ||
97 | |||
98 | /* control how magic key switches layers */ | ||
99 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
100 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
101 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
102 | |||
103 | /* override magic key keymap */ | ||
104 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
105 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
106 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
107 | //#define MAGIC_KEY_HELP1 H | ||
108 | //#define MAGIC_KEY_HELP2 SLASH | ||
109 | //#define MAGIC_KEY_DEBUG D | ||
110 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
111 | //#define MAGIC_KEY_DEBUG_KBD K | ||
112 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
113 | //#define MAGIC_KEY_VERSION V | ||
114 | //#define MAGIC_KEY_STATUS S | ||
115 | //#define MAGIC_KEY_CONSOLE C | ||
116 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
117 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
118 | //#define MAGIC_KEY_LAYER0 0 | ||
119 | //#define MAGIC_KEY_LAYER1 1 | ||
120 | //#define MAGIC_KEY_LAYER2 2 | ||
121 | //#define MAGIC_KEY_LAYER3 3 | ||
122 | //#define MAGIC_KEY_LAYER4 4 | ||
123 | //#define MAGIC_KEY_LAYER5 5 | ||
124 | //#define MAGIC_KEY_LAYER6 6 | ||
125 | //#define MAGIC_KEY_LAYER7 7 | ||
126 | //#define MAGIC_KEY_LAYER8 8 | ||
127 | //#define MAGIC_KEY_LAYER9 9 | ||
128 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
129 | //#define MAGIC_KEY_LOCK CAPS | ||
130 | //#define MAGIC_KEY_EEPROM E | ||
131 | //#define MAGIC_KEY_NKRO N | ||
132 | //#define MAGIC_KEY_SLEEP_LED Z | ||
133 | |||
134 | /* | ||
135 | * Feature disable options | ||
136 | * These options are also useful to firmware size reduction. | ||
137 | */ | ||
138 | |||
139 | /* disable debug print */ | ||
140 | //#define NO_DEBUG | ||
141 | |||
142 | /* disable print */ | ||
143 | //#define NO_PRINT | ||
144 | |||
145 | /* disable action features */ | ||
146 | //#define NO_ACTION_LAYER | ||
147 | //#define NO_ACTION_TAPPING | ||
148 | //#define NO_ACTION_ONESHOT | ||
149 | //#define NO_ACTION_MACRO | ||
150 | //#define NO_ACTION_FUNCTION | ||
151 | |||
152 | /* | ||
153 | * RGB Underglow | ||
154 | * These settings are for the F4 by default: | ||
155 | * | ||
156 | * | ||
157 | * #define ws2812_pin PF4 | ||
158 | * #define RGBLED_NUM 14 // Number of LEDs | ||
159 | * #define RGBLIGHT_HUE_STEP 10 | ||
160 | * #define RGBLIGHT_SAT_STEP 17 | ||
161 | * #define RGBLIGHT_VAL_STEP 17 | ||
162 | * | ||
163 | * The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects. | ||
164 | * To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations. | ||
165 | * For details, please check this keymap. keyboard/planck/keymaps/yang/keymap.c | ||
166 | */ | ||
167 | 19 | ||
168 | #define RGB_DI_PIN F4 | 20 | #define RGB_DI_PIN F4 |
21 | #define RGBLED_NUM 11 | ||
169 | #define RGBLIGHT_ANIMATIONS | 22 | #define RGBLIGHT_ANIMATIONS |
170 | #define RGBLED_NUM 11 // Number of LEDs | ||
171 | #define RGBLIGHT_HUE_STEP 8 | 23 | #define RGBLIGHT_HUE_STEP 8 |
172 | #define RGBLIGHT_SAT_STEP 8 | 24 | #define RGBLIGHT_SAT_STEP 8 |
173 | #define RGBLIGHT_VAL_STEP 8 | 25 | #define RGBLIGHT_VAL_STEP 8 |
174 | #endif | ||
diff --git a/keyboards/gh60/revc/keymaps/dbroqua/rules.mk b/keyboards/gh60/revc/keymaps/dbroqua/rules.mk index 21d4b60d9..b56ad10c5 100644 --- a/keyboards/gh60/revc/keymaps/dbroqua/rules.mk +++ b/keyboards/gh60/revc/keymaps/dbroqua/rules.mk | |||
@@ -1,107 +1,2 @@ | |||
1 | #---------------------------------------------------------------------------- | 1 | SLEEP_LED_ENABLE = yes |
2 | # On command line: | 2 | RGBLIGHT_ENABLE = yes |
3 | # | ||
4 | # make all = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # make coff = Convert ELF to AVR COFF. | ||
9 | # | ||
10 | # make extcoff = Convert ELF to AVR Extended COFF. | ||
11 | # | ||
12 | # make program = Download the hex file to the device. | ||
13 | # Please customize your programmer settings(PROGRAM_CMD) | ||
14 | # | ||
15 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
16 | # (must have teensy_loader_cli installed). | ||
17 | # | ||
18 | # make dfu = Download the hex file to the device, using dfu-programmer (must | ||
19 | # have dfu-programmer installed). | ||
20 | # | ||
21 | # make flip = Download the hex file to the device, using Atmel FLIP (must | ||
22 | # have Atmel FLIP installed). | ||
23 | # | ||
24 | # make dfu-ee = Download the eeprom file to the device, using dfu-programmer | ||
25 | # (must have dfu-programmer installed). | ||
26 | # | ||
27 | # make flip-ee = Download the eeprom file to the device, using Atmel FLIP | ||
28 | # (must have Atmel FLIP installed). | ||
29 | # | ||
30 | # make debug = Start either simulavr or avarice as specified for debugging, | ||
31 | # with avr-gdb or avr-insight as the front end for debugging. | ||
32 | # | ||
33 | # make filename.s = Just compile filename.c into the assembler code only. | ||
34 | # | ||
35 | # make filename.i = Create a preprocessed source file for use in submitting | ||
36 | # bug reports to the GCC project. | ||
37 | # | ||
38 | # To rebuild project do "make clean" then "make all". | ||
39 | #---------------------------------------------------------------------------- | ||
40 | |||
41 | # MCU name | ||
42 | MCU = atmega32u4 | ||
43 | |||
44 | # Processor frequency. | ||
45 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
46 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
47 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
48 | # automatically to create a 32-bit value in your source code. | ||
49 | # | ||
50 | # This will be an integer division of F_USB below, as it is sourced by | ||
51 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
52 | # does not *change* the processor frequency - it should merely be updated to | ||
53 | # reflect the processor speed set externally so that the code can use accurate | ||
54 | # software delays. | ||
55 | F_CPU = 16000000 | ||
56 | |||
57 | |||
58 | # | ||
59 | # LUFA specific | ||
60 | # | ||
61 | # Target architecture (see library "Board Types" documentation). | ||
62 | ARCH = AVR8 | ||
63 | |||
64 | # Input clock frequency. | ||
65 | # This will define a symbol, F_USB, in all source code files equal to the | ||
66 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
67 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
68 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
69 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
70 | # at the end, this will be done automatically to create a 32-bit value in your | ||
71 | # source code. | ||
72 | # | ||
73 | # If no clock division is performed on the input clock inside the AVR (via the | ||
74 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
75 | F_USB = $(F_CPU) | ||
76 | |||
77 | # Interrupt driven control endpoint task(+60) | ||
78 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
79 | |||
80 | |||
81 | # Boot Section Size in *bytes* | ||
82 | # Teensy halfKay 512 | ||
83 | # Teensy++ halfKay 1024 | ||
84 | # Atmel DFU loader 4096 | ||
85 | # LUFA bootloader 4096 | ||
86 | # USBaspLoader 2048 | ||
87 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
88 | |||
89 | |||
90 | # Build Options | ||
91 | # comment out to disable the options. | ||
92 | # | ||
93 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
94 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
95 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
96 | # CONSOLE_ENABLE = yes # Console for debug(+400) | ||
97 | # COMMAND_ENABLE = yes # Commands for debug and configuration | ||
98 | KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key | ||
99 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
100 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
101 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
102 | # BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
103 | # MIDI_ENABLE = YES # MIDI controls | ||
104 | # UNICODE_ENABLE = YES # Unicode | ||
105 | # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID | ||
106 | RGBLIGHT_ENABLE = yes # Enable RGB Underglow | ||
107 | |||
diff --git a/keyboards/gh60/revc/keymaps/dbroqua_7U/rules.mk b/keyboards/gh60/revc/keymaps/dbroqua_7U/rules.mk index 21192b179..9e00b7531 100644 --- a/keyboards/gh60/revc/keymaps/dbroqua_7U/rules.mk +++ b/keyboards/gh60/revc/keymaps/dbroqua_7U/rules.mk | |||
@@ -1,107 +1 @@ | |||
1 | #---------------------------------------------------------------------------- | SLEEP_LED_ENABLE = yes | |
2 | # On command line: | ||
3 | # | ||
4 | # make all = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # make coff = Convert ELF to AVR COFF. | ||
9 | # | ||
10 | # make extcoff = Convert ELF to AVR Extended COFF. | ||
11 | # | ||
12 | # make program = Download the hex file to the device. | ||
13 | # Please customize your programmer settings(PROGRAM_CMD) | ||
14 | # | ||
15 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
16 | # (must have teensy_loader_cli installed). | ||
17 | # | ||
18 | # make dfu = Download the hex file to the device, using dfu-programmer (must | ||
19 | # have dfu-programmer installed). | ||
20 | # | ||
21 | # make flip = Download the hex file to the device, using Atmel FLIP (must | ||
22 | # have Atmel FLIP installed). | ||
23 | # | ||
24 | # make dfu-ee = Download the eeprom file to the device, using dfu-programmer | ||
25 | # (must have dfu-programmer installed). | ||
26 | # | ||
27 | # make flip-ee = Download the eeprom file to the device, using Atmel FLIP | ||
28 | # (must have Atmel FLIP installed). | ||
29 | # | ||
30 | # make debug = Start either simulavr or avarice as specified for debugging, | ||
31 | # with avr-gdb or avr-insight as the front end for debugging. | ||
32 | # | ||
33 | # make filename.s = Just compile filename.c into the assembler code only. | ||
34 | # | ||
35 | # make filename.i = Create a preprocessed source file for use in submitting | ||
36 | # bug reports to the GCC project. | ||
37 | # | ||
38 | # To rebuild project do "make clean" then "make all". | ||
39 | #---------------------------------------------------------------------------- | ||
40 | |||
41 | # MCU name | ||
42 | MCU = atmega32u4 | ||
43 | |||
44 | # Processor frequency. | ||
45 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
46 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
47 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
48 | # automatically to create a 32-bit value in your source code. | ||
49 | # | ||
50 | # This will be an integer division of F_USB below, as it is sourced by | ||
51 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
52 | # does not *change* the processor frequency - it should merely be updated to | ||
53 | # reflect the processor speed set externally so that the code can use accurate | ||
54 | # software delays. | ||
55 | F_CPU = 16000000 | ||
56 | |||
57 | |||
58 | # | ||
59 | # LUFA specific | ||
60 | # | ||
61 | # Target architecture (see library "Board Types" documentation). | ||
62 | ARCH = AVR8 | ||
63 | |||
64 | # Input clock frequency. | ||
65 | # This will define a symbol, F_USB, in all source code files equal to the | ||
66 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
67 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
68 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
69 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
70 | # at the end, this will be done automatically to create a 32-bit value in your | ||
71 | # source code. | ||
72 | # | ||
73 | # If no clock division is performed on the input clock inside the AVR (via the | ||
74 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
75 | F_USB = $(F_CPU) | ||
76 | |||
77 | # Interrupt driven control endpoint task(+60) | ||
78 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
79 | |||
80 | |||
81 | # Boot Section Size in *bytes* | ||
82 | # Teensy halfKay 512 | ||
83 | # Teensy++ halfKay 1024 | ||
84 | # Atmel DFU loader 4096 | ||
85 | # LUFA bootloader 4096 | ||
86 | # USBaspLoader 2048 | ||
87 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
88 | |||
89 | |||
90 | # Build Options | ||
91 | # comment out to disable the options. | ||
92 | # | ||
93 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
94 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
95 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
96 | # CONSOLE_ENABLE = yes # Console for debug(+400) | ||
97 | # COMMAND_ENABLE = yes # Commands for debug and configuration | ||
98 | KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key | ||
99 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
100 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
101 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
102 | # BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
103 | # MIDI_ENABLE = YES # MIDI controls | ||
104 | # UNICODE_ENABLE = YES # Unicode | ||
105 | # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID | ||
106 | RGBLIGHT_ENABLE = no # Enable RGB Underglow | ||
107 | |||
diff --git a/keyboards/gh60/revc/keymaps/robotmaxtron/config.h b/keyboards/gh60/revc/keymaps/robotmaxtron/config.h index 7cfcf8d45..955ead1ba 100644 --- a/keyboards/gh60/revc/keymaps/robotmaxtron/config.h +++ b/keyboards/gh60/revc/keymaps/robotmaxtron/config.h | |||
@@ -15,163 +15,11 @@ 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/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #ifndef CONFIG_USER_H | 18 | #pragma once |
19 | #define CONFIG_USER_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x6060 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER geekhack | ||
28 | #define PRODUCT GH60 | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 14 | ||
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 { D0, D1, D2, D3, D5 } | ||
45 | // Rev A | ||
46 | // #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B0, B5, B4, D7, D6, B3 } | ||
47 | // Rev B/C | ||
48 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 } | ||
49 | #define UNUSED_PINS | ||
50 | |||
51 | /* COL2ROW or ROW2COL */ | ||
52 | #define DIODE_DIRECTION COL2ROW | ||
53 | |||
54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
55 | #define DEBOUNCE 5 | ||
56 | |||
57 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
58 | //#define MATRIX_HAS_GHOST | ||
59 | |||
60 | /* number of backlight levels */ | ||
61 | #define BACKLIGHT_LEVELS 3 | ||
62 | |||
63 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
64 | #define LOCKING_SUPPORT_ENABLE | ||
65 | /* Locking resynchronize hack */ | ||
66 | #define LOCKING_RESYNC_ENABLE | ||
67 | |||
68 | /* | ||
69 | * Force NKRO | ||
70 | * | ||
71 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
72 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
73 | * makefile for this to work.) | ||
74 | * | ||
75 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
76 | * until the next keyboard reset. | ||
77 | * | ||
78 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
79 | * fully operational during normal computer usage. | ||
80 | * | ||
81 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
82 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
83 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
84 | * power-up. | ||
85 | * | ||
86 | */ | ||
87 | //#define FORCE_NKRO | ||
88 | |||
89 | /* | ||
90 | * Magic Key Options | ||
91 | * | ||
92 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
93 | * the keyboard. They are best used in combination with the HID Listen program, | ||
94 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
95 | * | ||
96 | * The options below allow the magic key functionality to be changed. This is | ||
97 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
98 | * | ||
99 | */ | ||
100 | |||
101 | /* control how magic key switches layers */ | ||
102 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
103 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
104 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
105 | |||
106 | /* override magic key keymap */ | ||
107 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
108 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
109 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
110 | //#define MAGIC_KEY_HELP1 H | ||
111 | //#define MAGIC_KEY_HELP2 SLASH | ||
112 | //#define MAGIC_KEY_DEBUG D | ||
113 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
114 | //#define MAGIC_KEY_DEBUG_KBD K | ||
115 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
116 | //#define MAGIC_KEY_VERSION V | ||
117 | //#define MAGIC_KEY_STATUS S | ||
118 | //#define MAGIC_KEY_CONSOLE C | ||
119 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
120 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
121 | //#define MAGIC_KEY_LAYER0 0 | ||
122 | //#define MAGIC_KEY_LAYER1 1 | ||
123 | //#define MAGIC_KEY_LAYER2 2 | ||
124 | //#define MAGIC_KEY_LAYER3 3 | ||
125 | //#define MAGIC_KEY_LAYER4 4 | ||
126 | //#define MAGIC_KEY_LAYER5 5 | ||
127 | //#define MAGIC_KEY_LAYER6 6 | ||
128 | //#define MAGIC_KEY_LAYER7 7 | ||
129 | //#define MAGIC_KEY_LAYER8 8 | ||
130 | //#define MAGIC_KEY_LAYER9 9 | ||
131 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
132 | //#define MAGIC_KEY_LOCK CAPS | ||
133 | //#define MAGIC_KEY_EEPROM E | ||
134 | //#define MAGIC_KEY_NKRO N | ||
135 | //#define MAGIC_KEY_SLEEP_LED Z | ||
136 | |||
137 | /* | ||
138 | * Feature disable options | ||
139 | * These options are also useful to firmware size reduction. | ||
140 | */ | ||
141 | |||
142 | /* disable debug print */ | ||
143 | //#define NO_DEBUG | ||
144 | |||
145 | /* disable print */ | ||
146 | //#define NO_PRINT | ||
147 | |||
148 | /* disable action features */ | ||
149 | //#define NO_ACTION_LAYER | ||
150 | //#define NO_ACTION_TAPPING | ||
151 | //#define NO_ACTION_ONESHOT | ||
152 | //#define NO_ACTION_MACRO | ||
153 | //#define NO_ACTION_FUNCTION | ||
154 | |||
155 | /* | ||
156 | * RGB Underglow | ||
157 | * These settings are for the F4 by default: | ||
158 | * | ||
159 | * | ||
160 | * #define ws2812_pin PF4 | ||
161 | * #define RGBLED_NUM 14 // Number of LEDs | ||
162 | * #define RGBLIGHT_HUE_STEP 10 | ||
163 | * #define RGBLIGHT_SAT_STEP 17 | ||
164 | * #define RGBLIGHT_VAL_STEP 17 | ||
165 | * | ||
166 | * The firmware supports 5 different light effects, and the color (hue, saturation, brightness) can be customized in most effects. | ||
167 | * To control the underglow, you need to modify your keymap file to assign those functions to some keys/key combinations. | ||
168 | * For details, please check this keymap. keyboard/planck/keymaps/yang/keymap.c | ||
169 | */ | ||
170 | 19 | ||
171 | #define RGB_DI_PIN F4 | 20 | #define RGB_DI_PIN F4 |
21 | #define RGBLED_NUM 8 | ||
172 | #define RGBLIGHT_ANIMATIONS | 22 | #define RGBLIGHT_ANIMATIONS |
173 | #define RGBLED_NUM 8 // Number of LEDs | ||
174 | #define RGBLIGHT_HUE_STEP 8 | 23 | #define RGBLIGHT_HUE_STEP 8 |
175 | #define RGBLIGHT_SAT_STEP 8 | 24 | #define RGBLIGHT_SAT_STEP 8 |
176 | #define RGBLIGHT_VAL_STEP 8 | 25 | #define RGBLIGHT_VAL_STEP 8 |
177 | #endif | ||
diff --git a/keyboards/gh60/revc/keymaps/robotmaxtron/rules.mk b/keyboards/gh60/revc/keymaps/robotmaxtron/rules.mk index b6761ac9f..1e3cebb14 100644 --- a/keyboards/gh60/revc/keymaps/robotmaxtron/rules.mk +++ b/keyboards/gh60/revc/keymaps/robotmaxtron/rules.mk | |||
@@ -1,107 +1 @@ | |||
1 | #---------------------------------------------------------------------------- | RGBLIGHT_ENABLE = yes | |
2 | # On command line: | ||
3 | # | ||
4 | # make all = Make software. | ||
5 | # | ||
6 | # make clean = Clean out built project files. | ||
7 | # | ||
8 | # make coff = Convert ELF to AVR COFF. | ||
9 | # | ||
10 | # make extcoff = Convert ELF to AVR Extended COFF. | ||
11 | # | ||
12 | # make program = Download the hex file to the device. | ||
13 | # Please customize your programmer settings(PROGRAM_CMD) | ||
14 | # | ||
15 | # make teensy = Download the hex file to the device, using teensy_loader_cli. | ||
16 | # (must have teensy_loader_cli installed). | ||
17 | # | ||
18 | # make dfu = Download the hex file to the device, using dfu-programmer (must | ||
19 | # have dfu-programmer installed). | ||
20 | # | ||
21 | # make flip = Download the hex file to the device, using Atmel FLIP (must | ||
22 | # have Atmel FLIP installed). | ||
23 | # | ||
24 | # make dfu-ee = Download the eeprom file to the device, using dfu-programmer | ||
25 | # (must have dfu-programmer installed). | ||
26 | # | ||
27 | # make flip-ee = Download the eeprom file to the device, using Atmel FLIP | ||
28 | # (must have Atmel FLIP installed). | ||
29 | # | ||
30 | # make debug = Start either simulavr or avarice as specified for debugging, | ||
31 | # with avr-gdb or avr-insight as the front end for debugging. | ||
32 | # | ||
33 | # make filename.s = Just compile filename.c into the assembler code only. | ||
34 | # | ||
35 | # make filename.i = Create a preprocessed source file for use in submitting | ||
36 | # bug reports to the GCC project. | ||
37 | # | ||
38 | # To rebuild project do "make clean" then "make all". | ||
39 | #---------------------------------------------------------------------------- | ||
40 | |||
41 | # MCU name | ||
42 | MCU = atmega32u4 | ||
43 | |||
44 | # Processor frequency. | ||
45 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
46 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
47 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
48 | # automatically to create a 32-bit value in your source code. | ||
49 | # | ||
50 | # This will be an integer division of F_USB below, as it is sourced by | ||
51 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
52 | # does not *change* the processor frequency - it should merely be updated to | ||
53 | # reflect the processor speed set externally so that the code can use accurate | ||
54 | # software delays. | ||
55 | F_CPU = 16000000 | ||
56 | |||
57 | |||
58 | # | ||
59 | # LUFA specific | ||
60 | # | ||
61 | # Target architecture (see library "Board Types" documentation). | ||
62 | ARCH = AVR8 | ||
63 | |||
64 | # Input clock frequency. | ||
65 | # This will define a symbol, F_USB, in all source code files equal to the | ||
66 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
67 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
68 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
69 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
70 | # at the end, this will be done automatically to create a 32-bit value in your | ||
71 | # source code. | ||
72 | # | ||
73 | # If no clock division is performed on the input clock inside the AVR (via the | ||
74 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
75 | F_USB = $(F_CPU) | ||
76 | |||
77 | # Interrupt driven control endpoint task(+60) | ||
78 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
79 | |||
80 | |||
81 | # Boot Section Size in *bytes* | ||
82 | # Teensy halfKay 512 | ||
83 | # Teensy++ halfKay 1024 | ||
84 | # Atmel DFU loader 4096 | ||
85 | # LUFA bootloader 4096 | ||
86 | # USBaspLoader 2048 | ||
87 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
88 | |||
89 | |||
90 | # Build Options | ||
91 | # comment out to disable the options. | ||
92 | # | ||
93 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
94 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
95 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
96 | # CONSOLE_ENABLE = yes # Console for debug(+400) | ||
97 | # COMMAND_ENABLE = yes # Commands for debug and configuration | ||
98 | KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key | ||
99 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
100 | # SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
101 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
102 | # BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
103 | # MIDI_ENABLE = YES # MIDI controls | ||
104 | # UNICODE_ENABLE = YES # Unicode | ||
105 | # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID | ||
106 | RGBLIGHT_ENABLE = yes # Enable RGB Underglow | ||
107 | |||