diff options
17 files changed, 440 insertions, 0 deletions
diff --git a/keyboards/handwired/minorca/Makefile b/keyboards/handwired/minorca/Makefile new file mode 100644 index 000000000..155c1f9a2 --- /dev/null +++ b/keyboards/handwired/minorca/Makefile | |||
@@ -0,0 +1,71 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1287 | ||
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 | # 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=512 | ||
48 | |||
49 | # Build Options | ||
50 | # change to "no" to disable the options, or define them in the Makefile in | ||
51 | # the appropriate keymap folder that will get included automatically | ||
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 ?= no # Console for debug(+400) | ||
57 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
58 | NKRO_ENABLE ?= yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
59 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality | ||
60 | MIDI_ENABLE ?= no # MIDI controls | ||
61 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
62 | UNICODE_ENABLE ?= no # Unicode | ||
63 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
64 | RGBLIGHT_ENABLE ?= yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
65 | |||
66 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
67 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
68 | |||
69 | ifndef QUANTUM_DIR | ||
70 | include ../../../Makefile | ||
71 | endif \ No newline at end of file | ||
diff --git a/keyboards/handwired/minorca/config.h b/keyboards/handwired/minorca/config.h new file mode 100644 index 000000000..4cdafcbd2 --- /dev/null +++ b/keyboards/handwired/minorca/config.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0x6660 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER ME | ||
28 | #define PRODUCT MinOrca | ||
29 | #define DESCRIPTION Tiny Whale | ||
30 | |||
31 | /* key matrix size */ | ||
32 | #define MATRIX_ROWS 4 | ||
33 | #define MATRIX_COLS 12 | ||
34 | |||
35 | /* MinOrca PCB default pin-out */ | ||
36 | #define MATRIX_COL_PINS { D4, D6, D7, B4, B5, B6, F7, F6, F5, F4, F1, F0 } | ||
37 | #define MATRIX_ROW_PINS { B0, B1, B2, B3 } | ||
38 | #define UNUSED_PINS | ||
39 | |||
40 | /* COL2ROW or ROW2COL */ | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
43 | /* define if matrix has ghost */ | ||
44 | //#define MATRIX_HAS_GHOST | ||
45 | |||
46 | /* number of backlight levels */ | ||
47 | #define BACKLIGHT_LEVELS 3 | ||
48 | |||
49 | /* Set 0 if debouncing isn't needed */ | ||
50 | #define DEBOUNCING_DELAY 5 | ||
51 | |||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
53 | #define LOCKING_SUPPORT_ENABLE | ||
54 | /* Locking resynchronize hack */ | ||
55 | #define LOCKING_RESYNC_ENABLE | ||
56 | |||
57 | /* key combination for command */ | ||
58 | #define IS_COMMAND() ( \ | ||
59 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
60 | ) | ||
61 | |||
62 | /* | ||
63 | * Feature disable options | ||
64 | * These options are also useful to firmware size reduction. | ||
65 | */ | ||
66 | |||
67 | /* disable debug print */ | ||
68 | //#define NO_DEBUG | ||
69 | |||
70 | /* disable print */ | ||
71 | //#define NO_PRINT | ||
72 | |||
73 | /* disable action features */ | ||
74 | //#define NO_ACTION_LAYER | ||
75 | //#define NO_ACTION_TAPPING | ||
76 | //#define NO_ACTION_ONESHOT | ||
77 | //#define NO_ACTION_MACRO | ||
78 | //#define NO_ACTION_FUNCTION | ||
79 | |||
80 | #endif | ||
diff --git a/keyboards/handwired/minorca/keymaps/default/Makefile b/keyboards/handwired/minorca/keymaps/default/Makefile new file mode 100644 index 000000000..a573488a5 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/default/Makefile | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | |||
3 | # Build Options | ||
4 | # change to "no" to disable the options, or define them in the Makefile in | ||
5 | # the appropriate keymap folder that will get included automatically | ||
6 | # | ||
7 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
8 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
9 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
10 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
11 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
12 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
14 | MIDI_ENABLE = no # MIDI controls | ||
15 | AUDIO_ENABLE = no # Audio output on port C6 | ||
16 | UNICODE_ENABLE = no # Unicode | ||
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
18 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
19 | |||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
22 | |||
23 | ifndef QUANTUM_DIR | ||
24 | include ../../../../../Makefile | ||
25 | endif | ||
diff --git a/keyboards/handwired/minorca/keymaps/default/config.h b/keyboards/handwired/minorca/keymaps/default/config.h new file mode 100644 index 000000000..bf40376c1 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/default/config.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #ifndef CONFIG_USER_H | ||
2 | #define CONFIG_USER_H | ||
3 | |||
4 | #include "../../config.h" | ||
5 | |||
6 | /* bootmagic salt key */ | ||
7 | #define BOOTMAGIC_KEY_SALT KC_ESC | ||
8 | |||
9 | /* skip bootmagic and eeconfig */ | ||
10 | #define BOOTMAGIC_KEY_SKIP KC_SPACE | ||
11 | |||
12 | #endif | ||
diff --git a/keyboards/handwired/minorca/keymaps/default/keymap.c b/keyboards/handwired/minorca/keymaps/default/keymap.c new file mode 100644 index 000000000..a55d578e4 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/default/keymap.c | |||
@@ -0,0 +1,44 @@ | |||
1 | // This is the canonical layout file for the Quantum project. If you want to add another keyboard, | ||
2 | // this is the style you want to emulate. | ||
3 | |||
4 | #include "minorca.h" | ||
5 | #include "action_layer.h" | ||
6 | #include "eeconfig.h" | ||
7 | |||
8 | extern keymap_config_t keymap_config; | ||
9 | |||
10 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
11 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
12 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
13 | // entirely and just use numbers. | ||
14 | |||
15 | // Fillers to make layering more clear | ||
16 | #define _______ KC_TRNS | ||
17 | #define XXXXXXX KC_NO | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = { /* Base */ | ||
21 | {KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC }, | ||
22 | {KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, XXXXXXX, KC_ENT }, | ||
23 | {KC_LCTRL,XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_QUOT, KC_FN1, KC_FN0 }, | ||
24 | {KC_NO, XXXXXXX, KC_NO, KC_LALT, KC_SPC, XXXXXXX, XXXXXXX, KC_SPC, XXXXXXX, KC_DOT, KC_SLSH, KC_NO } | ||
25 | }, | ||
26 | [1] = { /* First */ | ||
27 | {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELT }, | ||
28 | {KC_TAB, KC_MPRV, KC_MPLY, KC_MNXT, KC_PGUP, KC_HOME, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, XXXXXXX, KC_LGUI }, | ||
29 | {KC_LCTRL,XXXXXXX, KC_Z, KC_X, KC_C, KC_PGDN, KC_END, KC_L, KC_SCLN, KC_UP, KC_FN1, KC_FN0 }, | ||
30 | {KC_NO, XXXXXXX, KC_NO, KC_LALT, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, KC_DOWN, KC_RIGHT,KC_NO } | ||
31 | }, | ||
32 | [2] = { /* Second */ | ||
33 | {KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT }, | ||
34 | {KC_TAB, KC_MUTE, KC_VOLD, KC_VOLU, KC_TILD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, XXXXXXX, KC_ENT }, | ||
35 | {KC_CAPS, XXXXXXX, KC_LSFT, KC_RSFT, KC_PAUSE,KC_F10, KC_F11, KC_F12, KC_NO, KC_UP, KC_FN1, KC_FN0 }, | ||
36 | {KC_NO, XXXXXXX, KC_NO, KC_LALT, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, KC_DOWN, KC_RIGHT,KC_NO } | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | const uint16_t PROGMEM fn_actions[] = { | ||
41 | [0] = ACTION_LAYER_MOMENTARY(1), // to First overlay | ||
42 | [1] = ACTION_LAYER_MOMENTARY(2), // to Second overlay | ||
43 | |||
44 | }; \ No newline at end of file | ||
diff --git a/keyboards/handwired/minorca/keymaps/default/readme.md b/keyboards/handwired/minorca/keymaps/default/readme.md new file mode 100644 index 000000000..6ed31f82b --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/default/readme.md | |||
@@ -0,0 +1,5 @@ | |||
1 | # The Default Minorca Layout | ||
2 | |||
3 | Copied from https://github.com/pancinteractive/qmk_firmware/blob/master/keyboard/minorca_mkV/keymaps/default/keymap.c | ||
4 | |||
5 | It looks incomplete. \ No newline at end of file | ||
diff --git a/keyboards/handwired/minorca/keymaps/readme.md b/keyboards/handwired/minorca/keymaps/readme.md new file mode 100644 index 000000000..058923ba2 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/readme.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # How to add your own keymap | ||
2 | |||
3 | Folders can be named however you'd like (will be approved upon merging), or should follow the format with a preceding `_`: | ||
4 | |||
5 | _[ISO 3166-1 alpha-2 code*]_[layout variant]_[layout name/author] | ||
6 | |||
7 | \* See full list: https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements | ||
8 | |||
9 | and contain the following files: | ||
10 | |||
11 | * `keymap.c` | ||
12 | * `readme.md` *recommended* | ||
13 | * `config.h` *optional*, found automatically when compiling | ||
14 | * `Makefile` *optional*, found automatically when compling | ||
15 | |||
16 | When adding your keymap to this list, keep it organised alphabetically (select list, edit->sort lines), and use this format: | ||
17 | |||
18 | * **folder_name** description | ||
19 | |||
20 | # List of Minorca keymaps | ||
21 | |||
22 | * **default** default Minorca layout | ||
23 | * **rgb** layout with WS2812b control | ||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/Makefile b/keyboards/handwired/minorca/keymaps/rgb/Makefile new file mode 100644 index 000000000..2b2af1335 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/Makefile | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | |||
3 | # Build Options | ||
4 | # change to "no" to disable the options, or define them in the Makefile in | ||
5 | # the appropriate keymap folder that will get included automatically | ||
6 | # | ||
7 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | ||
8 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
9 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
10 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
11 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
12 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
14 | MIDI_ENABLE = no # MIDI controls | ||
15 | AUDIO_ENABLE = no # Audio output on port C6 | ||
16 | UNICODE_ENABLE = no # Unicode | ||
17 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
18 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
19 | |||
20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
22 | |||
23 | ifndef QUANTUM_DIR | ||
24 | include ../../../../../Makefile | ||
25 | endif | ||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/config.h b/keyboards/handwired/minorca/keymaps/rgb/config.h new file mode 100644 index 000000000..deaac2e26 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/config.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef CONFIG_USER_H | ||
2 | #define CONFIG_USER_H | ||
3 | |||
4 | #include "../../config.h" | ||
5 | |||
6 | /* bootmagic salt key */ | ||
7 | #define BOOTMAGIC_KEY_SALT KC_ESC | ||
8 | |||
9 | /* skip bootmagic and eeconfig */ | ||
10 | #define BOOTMAGIC_KEY_SKIP KC_SPACE | ||
11 | |||
12 | /* ws2812 RGB LED */ | ||
13 | #define RGB_DI_PIN D5 | ||
14 | #define RGBLIGHT_TIMER | ||
15 | #define RGBLED_NUM 13 // Number of LEDs | ||
16 | #define RGBLIGHT_HUE_STEP 10 | ||
17 | #define RGBLIGHT_SAT_STEP 17 | ||
18 | #define RGBLIGHT_VAL_STEP 17 | ||
19 | |||
20 | #endif | ||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/example.jpg b/keyboards/handwired/minorca/keymaps/rgb/example.jpg new file mode 100644 index 000000000..a04c8d37d --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/example.jpg | |||
Binary files differ | |||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/keymap.c b/keyboards/handwired/minorca/keymaps/rgb/keymap.c new file mode 100644 index 000000000..9002afbb8 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/keymap.c | |||
@@ -0,0 +1,65 @@ | |||
1 | // This is the canonical layout file for the Quantum project. If you want to add another keyboard, | ||
2 | // this is the style you want to emulate. | ||
3 | |||
4 | #include "minorca.h" | ||
5 | #include "action_layer.h" | ||
6 | #include "eeconfig.h" | ||
7 | |||
8 | extern keymap_config_t keymap_config; | ||
9 | |||
10 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
11 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
12 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
13 | // entirely and just use numbers. | ||
14 | #define _QWERTY 0 | ||
15 | #define _LOWER 1 | ||
16 | #define _RAISE 2 | ||
17 | #define _TB 3 | ||
18 | |||
19 | // Macro name shortcuts | ||
20 | #define QWERTY M(_QWERTY) | ||
21 | #define LOWER M(_LOWER) | ||
22 | #define RAISE M(_RAISE) | ||
23 | |||
24 | // Fillers to make layering more clear | ||
25 | #define _______ KC_TRNS | ||
26 | #define XXXXXXX KC_NO | ||
27 | |||
28 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
29 | |||
30 | [_QWERTY] = { /* Qwerty */ | ||
31 | {KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | ||
32 | {FUNC(0), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, XXXXXXX, KC_QUOT}, | ||
33 | {KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, FUNC(1)}, | ||
34 | {KC_LCTL, XXXXXXX, KC_LGUI, KC_LALT, FUNC(2), XXXXXXX, XXXXXXX, FUNC(3), XXXXXXX, KC_RALT, KC_APP, KC_RCTL} | ||
35 | }, | ||
36 | |||
37 | [_RAISE] = { | ||
38 | {S(KC_GRV), S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), S(KC_0), KC_BSPC}, | ||
39 | {KC_TRNS, KC_TRNS, KC_TRNS, KC_PAUSE, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_MINS), S(KC_EQL), S(KC_LBRC), XXXXXXX, S(KC_BSLS)}, | ||
40 | {KC_TRNS, XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_ENT}, | ||
41 | {KC_TRNS, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, XXXXXXX, XXXXXXX, KC_TRNS, XXXXXXX, KC_MNXT, KC_MUTE, KC_MPLY} | ||
42 | }, | ||
43 | |||
44 | [_LOWER] = { | ||
45 | {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DELETE}, | ||
46 | {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, XXXXXXX, KC_BSLS}, | ||
47 | {KC_TRNS, XXXXXXX, KC_F11, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_PGUP, KC_ENT}, | ||
48 | {KC_TRNS, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, XXXXXXX, XXXXXXX, KC_TRNS, XXXXXXX, KC_HOME, KC_PGDN, KC_END} | ||
49 | }, | ||
50 | |||
51 | [_TB] = { /* Tab */ | ||
52 | {KC_ESC, KC_CALC, KC_WHOM, KC_MAIL, KC_MYCM, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS}, | ||
53 | {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, XXXXXXX, KC_TRNS}, | ||
54 | {KC_TRNS, XXXXXXX, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_UP, KC_ENT}, | ||
55 | {BL_STEP, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, XXXXXXX, XXXXXXX, KC_TRNS, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT} | ||
56 | } | ||
57 | }; | ||
58 | |||
59 | |||
60 | const uint16_t PROGMEM fn_actions[] = { | ||
61 | [0] = ACTION_LAYER_TAP_KEY(_TB, KC_TAB), | ||
62 | [1] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_ENT), | ||
63 | [2] = ACTION_LAYER_TAP_KEY(_RAISE, KC_SPC), | ||
64 | [3] = ACTION_LAYER_TAP_KEY(_LOWER, KC_SPC), | ||
65 | }; | ||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/readme.md b/keyboards/handwired/minorca/keymaps/rgb/readme.md new file mode 100644 index 000000000..f50dfa546 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/readme.md | |||
@@ -0,0 +1,25 @@ | |||
1 | #RGB backlight for MinOrca | ||
2 | |||
3 |  | ||
4 | |||
5 | Example of adding WS2812b LEDs to a MinOrca. | ||
6 | |||
7 | http://www.40percent.club/2016/08/tiny-whale.html | ||
8 | |||
9 | The keymap is a work in progress. The RGB functions are accessed by holding down the TAB key. | ||
10 | |||
11 | * Tab + Z Toggle on/off | ||
12 | * Tab + X Mode | ||
13 | * Tab + C Hue+ | ||
14 | * Tab + V Hue- | ||
15 | * Tab + B Saturation+ | ||
16 | * Tab + N Saturation- | ||
17 | * Tab + M Brightness+ | ||
18 | * Tab + , Brightness- | ||
19 | |||
20 | Example wiring: | ||
21 | |||
22 | WS2812 data pin is connected to D5 | ||
23 | |||
24 |  | ||
25 |  | ||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/wiring1.jpg b/keyboards/handwired/minorca/keymaps/rgb/wiring1.jpg new file mode 100644 index 000000000..7dcbe80c5 --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/wiring1.jpg | |||
Binary files differ | |||
diff --git a/keyboards/handwired/minorca/keymaps/rgb/wiring2.jpg b/keyboards/handwired/minorca/keymaps/rgb/wiring2.jpg new file mode 100644 index 000000000..fd91d3e1c --- /dev/null +++ b/keyboards/handwired/minorca/keymaps/rgb/wiring2.jpg | |||
Binary files differ | |||
diff --git a/keyboards/handwired/minorca/minorca.c b/keyboards/handwired/minorca/minorca.c new file mode 100644 index 000000000..24e72c2a5 --- /dev/null +++ b/keyboards/handwired/minorca/minorca.c | |||
@@ -0,0 +1,6 @@ | |||
1 | #include "minorca.h" | ||
2 | |||
3 | void matrix_init_kb(void) { | ||
4 | |||
5 | matrix_init_user(); | ||
6 | } \ No newline at end of file | ||
diff --git a/keyboards/handwired/minorca/minorca.h b/keyboards/handwired/minorca/minorca.h new file mode 100644 index 000000000..158e5b4c5 --- /dev/null +++ b/keyboards/handwired/minorca/minorca.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef MINORCA_H | ||
2 | #define MINORCA_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | #endif | ||
diff --git a/keyboards/handwired/minorca/readme.md b/keyboards/handwired/minorca/readme.md new file mode 100644 index 000000000..93c767954 --- /dev/null +++ b/keyboards/handwired/minorca/readme.md | |||
@@ -0,0 +1,33 @@ | |||
1 | minorca keyboard firmware | ||
2 | ====================== | ||
3 | Handwired 40% keyboard | ||
4 | |||
5 | http://www.panc.co/blog/minorcasebright-information-page | ||
6 | |||
7 | ## Quantum MK Firmware | ||
8 | |||
9 | For the full Quantum feature list, see [the parent readme.md](/readme.md). | ||
10 | |||
11 | ## Building | ||
12 | |||
13 | Download or clone the whole firmware and navigate to the keyboards/planck folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use `make dfu` to program your PCB once you hit the reset button. | ||
14 | |||
15 | Depending on which keymap you would like to use, you will have to compile slightly differently. | ||
16 | |||
17 | ### Default | ||
18 | To build with the default keymap, simply run `make`. | ||
19 | |||
20 | ### Other Keymaps | ||
21 | Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create file named `<name>.c` in the keymaps folder, and see keymap document (you can find in top readme.md) and existent keymap files. | ||
22 | |||
23 | To build the firmware binary hex file with a keymap just do `make` with `KEYMAP` option like: | ||
24 | ``` | ||
25 | $ make KEYMAP=[default|jack|<name>] | ||
26 | ``` | ||
27 | Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. | ||
28 | |||
29 | ### Notable forks (which some of the keymap files are from) | ||
30 | - [Shane's Fork](https://github.com/shanecelis/tmk_keyboard/tree/master/keyboard/planck) | ||
31 | - [Pierre's Fork](https://github.com/pcarrier/tmk_keyboard/blob/pcarrier/planck/keyboard/gh60/keymap_planck.c) | ||
32 | - [Nathan's Fork](https://github.com/nathanrosspowell/tmk_keyboard/tree/planck-jack/keyboard/planck) | ||
33 | - [Matthew's Fork](https://github.com/pepers/tmk_keyboard/tree/master/keyboard/planck_grid) | ||