diff options
Diffstat (limited to 'keyboards')
| -rwxr-xr-x | keyboards/alu84/alu84.c | 29 | ||||
| -rwxr-xr-x | keyboards/alu84/alu84.h | 34 | ||||
| -rwxr-xr-x | keyboards/alu84/config.h | 42 | ||||
| -rw-r--r-- | keyboards/alu84/info.json | 111 | ||||
| -rwxr-xr-x | keyboards/alu84/keymaps/default/keymap.c | 131 | ||||
| -rw-r--r-- | keyboards/alu84/keymaps/turbomech/config.h | 9 | ||||
| -rw-r--r-- | keyboards/alu84/keymaps/turbomech/keymap.c | 103 | ||||
| -rw-r--r-- | keyboards/alu84/keymaps/turbomech/rules.mk | 14 | ||||
| -rw-r--r-- | keyboards/alu84/readme.md | 21 | ||||
| -rwxr-xr-x | keyboards/alu84/rules.mk | 34 |
10 files changed, 227 insertions, 301 deletions
diff --git a/keyboards/alu84/alu84.c b/keyboards/alu84/alu84.c index 46e510efb..3e058d3ed 100755 --- a/keyboards/alu84/alu84.c +++ b/keyboards/alu84/alu84.c | |||
| @@ -14,33 +14,4 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | |||
| 18 | #include "alu84.h" | 17 | #include "alu84.h" |
| 19 | #include "rgblight.h" | ||
| 20 | #include "action_layer.h" | ||
| 21 | #include "quantum.h" | ||
| 22 | #include "action.h" | ||
| 23 | |||
| 24 | |||
| 25 | void matrix_scan_kb(void) { | ||
| 26 | // put your looping keyboard code here | ||
| 27 | // runs every cycle (a lot) | ||
| 28 | |||
| 29 | matrix_scan_user(); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 33 | // put your per-action keyboard code here | ||
| 34 | // runs for every action, just before processing by the firmware | ||
| 35 | |||
| 36 | return process_record_user(keycode, record); | ||
| 37 | } | ||
| 38 | |||
| 39 | void led_set_kb(uint8_t usb_led) { | ||
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 41 | |||
| 42 | led_set_user(usb_led); | ||
| 43 | } | ||
| 44 | |||
| 45 | |||
| 46 | |||
diff --git a/keyboards/alu84/alu84.h b/keyboards/alu84/alu84.h index c171e4c1d..dc263eb8d 100755 --- a/keyboards/alu84/alu84.h +++ b/keyboards/alu84/alu84.h | |||
| @@ -14,28 +14,24 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | 17 | #pragma once | |
| 18 | #ifndef ALU84_H | ||
| 19 | #define ALU84_H | ||
| 20 | 18 | ||
| 21 | #include "quantum.h" | 19 | #include "quantum.h" |
| 22 | 20 | ||
| 21 | #define ___ KC_NO | ||
| 23 | 22 | ||
| 24 | 23 | #define LAYOUT_75_ansi( \ | |
| 25 | #define LAYOUT( \ | 24 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, \ |
| 26 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, \ | 25 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, K1F, \ |
| 27 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K114, K115, \ | 26 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, \ |
| 28 | K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, \ | 27 | K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, \ |
| 29 | K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K315, \ | 28 | K40, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4D, K4E, K4F, \ |
| 30 | K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K414, K415, \ | 29 | K50, K51, K53, K56, K5A, K5B, K5C, K5D, K5E, K5F \ |
| 31 | K500, K501, K503, K506, K510, K511, K512, K513, K514, K515 \ | ||
| 32 | ) { \ | 30 | ) { \ |
| 33 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015 }, \ | 31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \ |
| 34 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, KC_NO, K114, K115 }, \ | 32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, ___, K1E, K1F }, \ |
| 35 | { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215 }, \ | 33 | { K20, ___, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F }, \ |
| 36 | { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO, K315 }, \ | 34 | { K30, ___, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, ___, K3F }, \ |
| 37 | { K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, KC_NO, K413, K414, K415 }, \ | 35 | { K40, ___, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, ___, K4D, K4E, K4F }, \ |
| 38 | { K500, K501, KC_NO, K503, KC_NO, KC_NO, K506, KC_NO, KC_NO, KC_NO, K510, K511, K512, K513, K514, K515 } \ | 36 | { K50, K51, ___, K53, ___, ___, K56, ___, ___, ___, K5A, K5B, K5C, K5D, K5E, K5F } \ |
| 39 | } | 37 | } |
| 40 | |||
| 41 | #endif | ||
diff --git a/keyboards/alu84/config.h b/keyboards/alu84/config.h index 9ebc1569e..3700ced8c 100755 --- a/keyboards/alu84/config.h +++ b/keyboards/alu84/config.h | |||
| @@ -14,8 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #ifndef ALU84_CONFIG_H | 17 | #pragma once |
| 18 | #define ALU84_CONFIG_H | ||
| 19 | 18 | ||
| 20 | #include "config_common.h" | 19 | #include "config_common.h" |
| 21 | 20 | ||
| @@ -30,21 +29,37 @@ | |||
| 30 | #define MATRIX_ROWS 6 | 29 | #define MATRIX_ROWS 6 |
| 31 | #define MATRIX_COLS 16 | 30 | #define MATRIX_COLS 16 |
| 32 | 31 | ||
| 33 | /* key matrix pins */ | 32 | /* |
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 34 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5, B7 } | 42 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5, B7 } |
| 35 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, F5, D4, B1, B0, B5, B4, D7, D6, B3, F4, F6 } | 43 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, F5, D4, B1, B0, B5, B4, D7, D6, B3, F4, F6 } |
| 36 | #define UNUSED_PINS | 44 | #define UNUSED_PINS |
| 37 | 45 | ||
| 38 | /* COL2ROW or ROW2COL */ | 46 | /* COL2ROW, ROW2COL */ |
| 39 | #define DIODE_DIRECTION COL2ROW | 47 | #define DIODE_DIRECTION COL2ROW |
| 40 | 48 | ||
| 41 | /* number of backlight levels */ | ||
| 42 | #define BACKLIGHT_PIN B6 | 49 | #define BACKLIGHT_PIN B6 |
| 43 | #ifdef BACKLIGHT_PIN | ||
| 44 | #define BACKLIGHT_LEVELS 3 | 50 | #define BACKLIGHT_LEVELS 3 |
| 51 | #define BACKLIGHT_BREATHING | ||
| 52 | |||
| 53 | #define RGB_DI_PIN E2 | ||
| 54 | #if defined(RGBLIGHT_ENABLE) | ||
| 55 | # define RGBLED_NUM 16 | ||
| 56 | # define RGBLIGHT_HUE_STEP 10 | ||
| 57 | # define RGBLIGHT_SAT_STEP 10 | ||
| 58 | # define RGBLIGHT_VAL_STEP 10 | ||
| 59 | # define RGBLIGHT_ANIMATIONS | ||
| 45 | #endif | 60 | #endif |
| 46 | 61 | ||
| 47 | /* Set 0 if debouncing isn't needed */ | 62 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 48 | #define DEBOUNCE 5 | 63 | #define DEBOUNCE 5 |
| 49 | 64 | ||
| 50 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 65 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
| @@ -52,16 +67,3 @@ | |||
| 52 | 67 | ||
| 53 | /* Locking resynchronize hack */ | 68 | /* Locking resynchronize hack */ |
| 54 | #define LOCKING_RESYNC_ENABLE | 69 | #define LOCKING_RESYNC_ENABLE |
| 55 | |||
| 56 | #define RGB_DI_PIN E2 | ||
| 57 | #ifdef RGB_DI_PIN | ||
| 58 | #define RGBLED_NUM 16 | ||
| 59 | #define RGBLIGHT_HUE_STEP 10 | ||
| 60 | #define RGBLIGHT_SAT_STEP 10 | ||
| 61 | #define RGBLIGHT_VAL_STEP 10 | ||
| 62 | |||
| 63 | #define RGBLIGHT_ANIMATIONS | ||
| 64 | |||
| 65 | #endif | ||
| 66 | |||
| 67 | #endif | ||
diff --git a/keyboards/alu84/info.json b/keyboards/alu84/info.json index 97f2b5fac..cb3a1e5e1 100644 --- a/keyboards/alu84/info.json +++ b/keyboards/alu84/info.json | |||
| @@ -1,12 +1,105 @@ | |||
| 1 | { | 1 | { |
| 2 | "keyboard_name": "ALU84", | 2 | "keyboard_name": "ALU84", |
| 3 | "url": "", | 3 | "url": "", |
| 4 | "maintainer": "qmk", | 4 | "maintainer": "qmk", |
| 5 | "width": 16, | 5 | "width": 16, |
| 6 | "height": 6, | 6 | "height": 6, |
| 7 | "layouts": { | 7 | "layout_aliases": { |
| 8 | "LAYOUT": { | 8 | "LAYOUT": "LAYOUT_75_ansi" |
| 9 | "layout": [{"label":"K000", "x":0, "y":0}, {"label":"K001", "x":1, "y":0}, {"label":"K002", "x":2, "y":0}, {"label":"K003", "x":3, "y":0}, {"label":"K004", "x":4, "y":0}, {"label":"K005", "x":5, "y":0}, {"label":"K006", "x":6, "y":0}, {"label":"K007", "x":7, "y":0}, {"label":"K008", "x":8, "y":0}, {"label":"K009", "x":9, "y":0}, {"label":"K010", "x":10, "y":0}, {"label":"K011", "x":11, "y":0}, {"label":"K012", "x":12, "y":0}, {"label":"K013", "x":13, "y":0}, {"label":"K014", "x":14, "y":0}, {"label":"K015", "x":15, "y":0}, {"label":"K100", "x":0, "y":1}, {"label":"K101", "x":1, "y":1}, {"label":"K102", "x":2, "y":1}, {"label":"K103", "x":3, "y":1}, {"label":"K104", "x":4, "y":1}, {"label":"K105", "x":5, "y":1}, {"label":"K106", "x":6, "y":1}, {"label":"K107", "x":7, "y":1}, {"label":"K108", "x":8, "y":1}, {"label":"K109", "x":9, "y":1}, {"label":"K110", "x":10, "y":1}, {"label":"K111", "x":11, "y":1}, {"label":"K112", "x":12, "y":1}, {"label":"K114", "x":13, "y":1, "w":2}, {"label":"K115", "x":15, "y":1}, {"label":"K200", "x":0, "y":2, "w":1.5}, {"label":"K202", "x":1.5, "y":2}, {"label":"K203", "x":2.5, "y":2}, {"label":"K204", "x":3.5, "y":2}, {"label":"K205", "x":4.5, "y":2}, {"label":"K206", "x":5.5, "y":2}, {"label":"K207", "x":6.5, "y":2}, {"label":"K208", "x":7.5, "y":2}, {"label":"K209", "x":8.5, "y":2}, {"label":"K210", "x":9.5, "y":2}, {"label":"K211", "x":10.5, "y":2}, {"label":"K212", "x":11.5, "y":2}, {"label":"K213", "x":12.5, "y":2}, {"label":"K214", "x":13.5, "y":2, "w":1.5}, {"label":"K215", "x":15, "y":2}, {"label":"K300", "x":0, "y":3, "w":1.75}, {"label":"K302", "x":1.75, "y":3}, {"label":"K303", "x":2.75, "y":3}, {"label":"K304", "x":3.75, "y":3}, {"label":"K305", "x":4.75, "y":3}, {"label":"K306", "x":5.75, "y":3}, {"label":"K307", "x":6.75, "y":3}, {"label":"K308", "x":7.75, "y":3}, {"label":"K309", "x":8.75, "y":3}, {"label":"K310", "x":9.75, "y":3}, {"label":"K311", "x":10.75, "y":3}, {"label":"K312", "x":11.75, "y":3}, {"label":"K313", "x":12.75, "y":3, "w":2.25}, {"label":"K315", "x":15, "y":3}, {"label":"K400", "x":0, "y":4, "w":2.25}, {"label":"K402", "x":2.25, "y":4}, {"label":"K403", "x":3.25, "y":4}, {"label":"K404", "x":4.25, "y":4}, {"label":"K405", "x":5.25, "y":4}, {"label":"K406", "x":6.25, "y":4}, {"label":"K407", "x":7.25, "y":4}, {"label":"K408", "x":8.25, "y":4}, {"label":"K409", "x":9.25, "y":4}, {"label":"K410", "x":10.25, "y":4}, {"label":"K411", "x":11.25, "y":4}, {"label":"K413", "x":12.25, "y":4, "w":1.75}, {"label":"K414", "x":14, "y":4}, {"label":"K415", "x":15, "y":4}, {"label":"K500", "x":0, "y":5, "w":1.25}, {"label":"K501", "x":1.25, "y":5, "w":1.25}, {"label":"K503", "x":2.5, "y":5, "w":1.25}, {"label":"K506", "x":3.75, "y":5, "w":6.25}, {"label":"K510", "x":10, "y":5}, {"label":"K511", "x":11, "y":5}, {"label":"K512", "x":12, "y":5}, {"label":"K513", "x":13, "y":5}, {"label":"K514", "x":14, "y":5}, {"label":"K515", "x":15, "y":5}] | 9 | }, |
| 10 | "layouts": { | ||
| 11 | "LAYOUT_75_ansi": { | ||
| 12 | "layout": [ | ||
| 13 | {"label":"K00", "x":0, "y":0}, | ||
| 14 | {"label":"K01", "x":1, "y":0}, | ||
| 15 | {"label":"K02", "x":2, "y":0}, | ||
| 16 | {"label":"K03", "x":3, "y":0}, | ||
| 17 | {"label":"K04", "x":4, "y":0}, | ||
| 18 | {"label":"K05", "x":5, "y":0}, | ||
| 19 | {"label":"K06", "x":6, "y":0}, | ||
| 20 | {"label":"K07", "x":7, "y":0}, | ||
| 21 | {"label":"K08", "x":8, "y":0}, | ||
| 22 | {"label":"K09", "x":9, "y":0}, | ||
| 23 | {"label":"K0A", "x":10, "y":0}, | ||
| 24 | {"label":"K0B", "x":11, "y":0}, | ||
| 25 | {"label":"K0C", "x":12, "y":0}, | ||
| 26 | {"label":"K0D", "x":13, "y":0}, | ||
| 27 | {"label":"K0E", "x":14, "y":0}, | ||
| 28 | {"label":"K0F", "x":15, "y":0}, | ||
| 29 | |||
| 30 | {"label":"K10", "x":0, "y":1}, | ||
| 31 | {"label":"K11", "x":1, "y":1}, | ||
| 32 | {"label":"K12", "x":2, "y":1}, | ||
| 33 | {"label":"K13", "x":3, "y":1}, | ||
| 34 | {"label":"K14", "x":4, "y":1}, | ||
| 35 | {"label":"K15", "x":5, "y":1}, | ||
| 36 | {"label":"K16", "x":6, "y":1}, | ||
| 37 | {"label":"K17", "x":7, "y":1}, | ||
| 38 | {"label":"K18", "x":8, "y":1}, | ||
| 39 | {"label":"K19", "x":9, "y":1}, | ||
| 40 | {"label":"K1A", "x":10, "y":1}, | ||
| 41 | {"label":"K1B", "x":11, "y":1}, | ||
| 42 | {"label":"K1C", "x":12, "y":1}, | ||
| 43 | {"label":"K1E", "x":13, "y":1, "w":2}, | ||
| 44 | {"label":"K1F", "x":15, "y":1}, | ||
| 45 | |||
| 46 | {"label":"K20", "x":0, "y":2, "w":1.5}, | ||
| 47 | {"label":"K22", "x":1.5, "y":2}, | ||
| 48 | {"label":"K23", "x":2.5, "y":2}, | ||
| 49 | {"label":"K24", "x":3.5, "y":2}, | ||
| 50 | {"label":"K25", "x":4.5, "y":2}, | ||
| 51 | {"label":"K26", "x":5.5, "y":2}, | ||
| 52 | {"label":"K27", "x":6.5, "y":2}, | ||
| 53 | {"label":"K28", "x":7.5, "y":2}, | ||
| 54 | {"label":"K29", "x":8.5, "y":2}, | ||
| 55 | {"label":"K2A", "x":9.5, "y":2}, | ||
| 56 | {"label":"K2B", "x":10.5, "y":2}, | ||
| 57 | {"label":"K2C", "x":11.5, "y":2}, | ||
| 58 | {"label":"K2D", "x":12.5, "y":2}, | ||
| 59 | {"label":"K2E", "x":13.5, "y":2, "w":1.5}, | ||
| 60 | {"label":"K2F", "x":15, "y":2}, | ||
| 61 | |||
| 62 | {"label":"K30", "x":0, "y":3, "w":1.75}, | ||
| 63 | {"label":"K32", "x":1.75, "y":3}, | ||
| 64 | {"label":"K33", "x":2.75, "y":3}, | ||
| 65 | {"label":"K34", "x":3.75, "y":3}, | ||
| 66 | {"label":"K35", "x":4.75, "y":3}, | ||
| 67 | {"label":"K36", "x":5.75, "y":3}, | ||
| 68 | {"label":"K37", "x":6.75, "y":3}, | ||
| 69 | {"label":"K38", "x":7.75, "y":3}, | ||
| 70 | {"label":"K39", "x":8.75, "y":3}, | ||
| 71 | {"label":"K3A", "x":9.75, "y":3}, | ||
| 72 | {"label":"K3B", "x":10.75, "y":3}, | ||
| 73 | {"label":"K3C", "x":11.75, "y":3}, | ||
| 74 | {"label":"K3D", "x":12.75, "y":3, "w":2.25}, | ||
| 75 | {"label":"K3F", "x":15, "y":3}, | ||
| 76 | |||
| 77 | {"label":"K40", "x":0, "y":4, "w":2.25}, | ||
| 78 | {"label":"K42", "x":2.25, "y":4}, | ||
| 79 | {"label":"K43", "x":3.25, "y":4}, | ||
| 80 | {"label":"K44", "x":4.25, "y":4}, | ||
| 81 | {"label":"K45", "x":5.25, "y":4}, | ||
| 82 | {"label":"K46", "x":6.25, "y":4}, | ||
| 83 | {"label":"K47", "x":7.25, "y":4}, | ||
| 84 | {"label":"K48", "x":8.25, "y":4}, | ||
| 85 | {"label":"K49", "x":9.25, "y":4}, | ||
| 86 | {"label":"K4A", "x":10.25, "y":4}, | ||
| 87 | {"label":"K4B", "x":11.25, "y":4}, | ||
| 88 | {"label":"K4D", "x":12.25, "y":4, "w":1.75}, | ||
| 89 | {"label":"K4E", "x":14, "y":4}, | ||
| 90 | {"label":"K4F", "x":15, "y":4}, | ||
| 91 | |||
| 92 | {"label":"K50", "x":0, "y":5, "w":1.25}, | ||
| 93 | {"label":"K51", "x":1.25, "y":5, "w":1.25}, | ||
| 94 | {"label":"K53", "x":2.5, "y":5, "w":1.25}, | ||
| 95 | {"label":"K56", "x":3.75, "y":5, "w":6.25}, | ||
| 96 | {"label":"K5A", "x":10, "y":5}, | ||
| 97 | {"label":"K5B", "x":11, "y":5}, | ||
| 98 | {"label":"K5C", "x":12, "y":5}, | ||
| 99 | {"label":"K5D", "x":13, "y":5}, | ||
| 100 | {"label":"K5E", "x":14, "y":5}, | ||
| 101 | {"label":"K5F", "x":15, "y":5} | ||
| 102 | ] | ||
| 103 | } | ||
| 10 | } | 104 | } |
| 11 | } | ||
| 12 | } | 105 | } |
diff --git a/keyboards/alu84/keymaps/default/keymap.c b/keyboards/alu84/keymaps/default/keymap.c index 4122978eb..ca370c765 100755 --- a/keyboards/alu84/keymaps/default/keymap.c +++ b/keyboards/alu84/keymaps/default/keymap.c | |||
| @@ -1,100 +1,45 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | /* Copyright 2017 @TurboMech /u/TurboMech <discord> @A9entOran9e#6134 |
| 2 | 2 | * 2021 QMK | |
| 3 | #define _BL 0 | 3 | * |
| 4 | #define _FN1 1 | 4 | * This program is free software: you can redistribute it and/or modify |
| 5 | 5 | * it under the terms of the GNU General Public License as published by | |
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 6 | * the Free Software Foundation, either version 2 of the License, or |
| 7 | 7 | * (at your option) any later version. | |
| 8 | /* BL | 8 | * |
| 9 | * ,- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . | 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * | Esc | Scrn Brght Up | Scrn Bright Down | Expose | Launchpad | Show Desktop | Dock Hide Tog | Screen Capture | Shortcut | Shortcut | Shortcut| Shortcut | Play/Pause | Mute | Vol Up | Vol Down | | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | + | Backspace | POWER | | 12 | * GNU General Public License for more details. |
| 13 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | 13 | * |
| 14 | * | TAB | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | Shortcut | | 14 | * You should have received a copy of the GNU General Public License |
| 15 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | * | CAPS | A | S | D | F | G | H | J | K | L | ; | ' | Enter | Pg Up | | ||
| 17 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 18 | * | Shift | Z | X | C | V | B | N | M | , | . | / | Shift | Up | Pg Dn | | ||
| 19 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 20 | * | Control | Option/Alt | Gui | Space | Gui | Opt | Fn (layer) | Left | Down | Right | | ||
| 21 | * `- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -' | ||
| 22 | */ | 16 | */ |
| 23 | 17 | ||
| 24 | [_BL] = LAYOUT( | 18 | #include QMK_KEYBOARD_H |
| 25 | KC_ESC, KC_F14, KC_F15, LCTL(KC_UP), LCTL(KC_L), KC_F11, LALT(LGUI(KC_D)), LCTL(KC_S), LCTL(LSFT(KC_O)), LCTL(LGUI(KC_1)), LCTL(LGUI(KC_2)), LCTL(LGUI(KC_3)), KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, | ||
| 26 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_POWER, | ||
| 27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, LCTL(LGUI(KC_N)), | ||
| 28 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | ||
| 29 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, KC_UP, KC_PGDN, | ||
| 30 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 31 | |||
| 32 | /* FN1 | ||
| 33 | * ,- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - . | ||
| 34 | * | Quit All | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Trns | Trns | DFU RESET | | ||
| 35 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 36 | * | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | DELETE | Lock Shrct | | ||
| 37 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 38 | * | Trns | RGB Toggle | RGB Mode | RGB Increase | RGB Decrease | RGB Hue Inc | RGB Hue Dec | RGB Sat Inc | RGB Sat Dec | Trns | Trns | Trns | Trns | Trns | Trns | | ||
| 39 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 40 | * | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | | ||
| 41 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 42 | * | Trns | Backlight Tog | Backlight Inc | Backlight Dec | Backlight Step | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | | ||
| 43 | * |- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -| | ||
| 44 | * | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | Trns | | ||
| 45 | * `- - -+ - - - - - - - + - - - - - - - - -+ - - - -+ - - - - - + - - - - - - -+ - - - - - - - + - - - - - - - -+ - - - - -+ - - - - -+ - - - - + - - - - -+ - - - - - -+ - - -+ - - - -+ - - - - -' | ||
| 46 | */ | ||
| 47 | |||
| 48 | [_FN1] = LAYOUT( | ||
| 49 | LALT(LGUI(KC_Q)), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, RESET, | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, LCTL(LALT(LGUI(KC_S))), | ||
| 51 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 53 | KC_TRNS, BL_TOGG, BL_INC, BL_DEC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 54 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 55 | 19 | ||
| 20 | enum layer_names { | ||
| 21 | _BL, | ||
| 22 | _FN1, | ||
| 56 | }; | 23 | }; |
| 57 | 24 | ||
| 58 | void matrix_init_user(void) { | 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 59 | } | ||
| 60 | |||
| 61 | void matrix_scan_user(void) { | ||
| 62 | } | ||
| 63 | |||
| 64 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 65 | return true; | ||
| 66 | } | ||
| 67 | |||
| 68 | void led_set_user(uint8_t usb_led) { | ||
| 69 | |||
| 70 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 71 | |||
| 72 | } else { | ||
| 73 | |||
| 74 | } | ||
| 75 | |||
| 76 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 77 | DDRB |= (1 << 2); PORTB &= ~(1 << 2); | ||
| 78 | } else { | ||
| 79 | DDRB &= ~(1 << 2); PORTB &= ~(1 << 2); | ||
| 80 | } | ||
| 81 | |||
| 82 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 83 | |||
| 84 | } else { | ||
| 85 | |||
| 86 | } | ||
| 87 | |||
| 88 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 89 | |||
| 90 | } else { | ||
| 91 | |||
| 92 | } | ||
| 93 | 26 | ||
| 94 | if (usb_led & (1 << USB_LED_KANA)) { | 27 | [_BL] = LAYOUT_75_ansi( |
| 95 | 28 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MUTE, KC_VOLD, KC_VOLU, | |
| 96 | } else { | 29 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, |
| 97 | 30 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | |
| 98 | } | 31 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, |
| 32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 33 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 34 | ), | ||
| 35 | |||
| 36 | [_FN1] = LAYOUT_75_ansi( | ||
| 37 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, RESET, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______, | ||
| 39 | _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, BL_TOGG, BL_INC, BL_DEC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 43 | ), | ||
| 99 | 44 | ||
| 100 | } | 45 | }; |
diff --git a/keyboards/alu84/keymaps/turbomech/config.h b/keyboards/alu84/keymaps/turbomech/config.h index 3013df9ba..2a60c1f38 100644 --- a/keyboards/alu84/keymaps/turbomech/config.h +++ b/keyboards/alu84/keymaps/turbomech/config.h | |||
| @@ -14,12 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #ifndef CONFIG_USER_H | 17 | #pragma once |
| 18 | #define CONFIG_USER_H | ||
| 19 | |||
| 20 | #define TAPPING_TOGGLE 2 | ||
| 21 | #include "../../config.h" | ||
| 22 | 18 | ||
| 23 | // place overrides here | 19 | // place overrides here |
| 24 | 20 | #define TAPPING_TOGGLE 2 | |
| 25 | #endif | ||
diff --git a/keyboards/alu84/keymaps/turbomech/keymap.c b/keyboards/alu84/keymaps/turbomech/keymap.c index 80006d0db..24c0d2c2d 100644 --- a/keyboards/alu84/keymaps/turbomech/keymap.c +++ b/keyboards/alu84/keymaps/turbomech/keymap.c | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | /* Copyright 2017 @TurboMech /u/TurboMech <discord> @A9entOran9e#6134 | 1 | /* Copyright 2017 @TurboMech /u/TurboMech <discord> @A9entOran9e#6134 |
| 2 | * 2021 QMK | ||
| 2 | * | 3 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 4 | * 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 | * it under the terms of the GNU General Public License as published by |
| @@ -14,12 +15,9 @@ | |||
| 14 | * 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/>. |
| 15 | */ | 16 | */ |
| 16 | 17 | ||
| 17 | |||
| 18 | #include QMK_KEYBOARD_H | 18 | #include QMK_KEYBOARD_H |
| 19 | #include "turbomech.h" | 19 | #include "turbomech.h" |
| 20 | 20 | ||
| 21 | #define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)) | ||
| 22 | |||
| 23 | #define _QWERTY 0 //BASE layer | 21 | #define _QWERTY 0 //BASE layer |
| 24 | #define _FUNCTION 1 //Function layer | 22 | #define _FUNCTION 1 //Function layer |
| 25 | 23 | ||
| @@ -47,13 +45,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 47 | * `- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -' | 45 | * `- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -' |
| 48 | */ | 46 | */ |
| 49 | 47 | ||
| 50 | [_QWERTY] = LAYOUT( | 48 | [_QWERTY] = LAYOUT_75_ansi( |
| 51 | KC_ESC, KC_F14, KC_F15, LCTL(KC_UP), LCTL(KC_L), KC_F11, LALT(LGUI(KC_D)), LCTL(KC_S), LCTL(LSFT(KC_O)), LCTL(LGUI(KC_1)), LCTL(LGUI(KC_2)), LCTL(LGUI(KC_3)), KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, | 49 | KC_ESC, KC_F14, KC_F15, C(KC_UP), C(KC_L), KC_F11, A(G(KC_D)), C(KC_S), C(S(KC_O)), C(G(KC_1)), C(G(KC_2)), C(G(KC_3)), KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, |
| 52 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_POWER, | 50 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_POWER, |
| 53 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, LCTL(LGUI(KC_N)), | 51 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, C(G(KC_N)), |
| 54 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, | 52 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP, |
| 55 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, KC_UP, KC_PGDN, | 53 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, KC_UP, KC_PGDN, |
| 56 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), | 54 | KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT |
| 55 | ), | ||
| 57 | 56 | ||
| 58 | /* FN1 - SEE readme.md | 57 | /* FN1 - SEE readme.md |
| 59 | * ,- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -. | 58 | * ,- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -. |
| @@ -77,81 +76,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 77 | * `- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -' | 76 | * `- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -' |
| 78 | */ | 77 | */ |
| 79 | 78 | ||
| 80 | 79 | [_FUNCTION] = LAYOUT_75_ansi( | |
| 81 | [_FUNCTION] = LAYOUT( | 80 | A(G(KC_Q)), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_RESET, |
| 82 | LALT(LGUI(KC_Q)), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_RESET, | 81 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, C(A(G(KC_S))), |
| 83 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL, LCTL(LALT(LGUI(KC_S))), | 82 | _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, |
| 84 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 83 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 85 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 84 | _______, BL_TOGG, BL_INC, BL_DEC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 86 | KC_TRNS, BL_TOGG, BL_INC, BL_DEC, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 87 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | 86 | ), |
| 88 | 87 | ||
| 89 | }; | 88 | }; |
| 90 | |||
| 91 | void led_set_user(uint8_t usb_led) { | ||
| 92 | |||
| 93 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | ||
| 94 | |||
| 95 | } else { | ||
| 96 | |||
| 97 | } | ||
| 98 | |||
| 99 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
| 100 | DDRB |= (1 << 2); PORTB &= ~(1 << 2); | ||
| 101 | } else { | ||
| 102 | DDRB &= ~(1 << 2); PORTB &= ~(1 << 2); | ||
| 103 | } | ||
| 104 | |||
| 105 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
| 106 | |||
| 107 | } else { | ||
| 108 | |||
| 109 | } | ||
| 110 | |||
| 111 | if (usb_led & (1 << USB_LED_COMPOSE)) { | ||
| 112 | |||
| 113 | } else { | ||
| 114 | |||
| 115 | } | ||
| 116 | |||
| 117 | if (usb_led & (1 << USB_LED_KANA)) { | ||
| 118 | |||
| 119 | } else { | ||
| 120 | |||
| 121 | } | ||
| 122 | |||
| 123 | } | ||
| 124 | |||
| 125 | enum function_id { | ||
| 126 | SHIFT_ESC, | ||
| 127 | }; | ||
| 128 | |||
| 129 | const uint16_t PROGMEM fn_actions[] = { | ||
| 130 | [0] = ACTION_FUNCTION(SHIFT_ESC), | ||
| 131 | }; | ||
| 132 | |||
| 133 | void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { | ||
| 134 | static uint8_t shift_esc_shift_mask; | ||
| 135 | switch (id) { | ||
| 136 | case SHIFT_ESC: | ||
| 137 | shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK; | ||
| 138 | if (record->event.pressed) { | ||
| 139 | if (shift_esc_shift_mask) { | ||
| 140 | add_key(KC_GRV); | ||
| 141 | send_keyboard_report(); | ||
| 142 | } else { | ||
| 143 | add_key(KC_ESC); | ||
| 144 | send_keyboard_report(); | ||
| 145 | } | ||
| 146 | } else { | ||
| 147 | if (shift_esc_shift_mask) { | ||
| 148 | del_key(KC_GRV); | ||
| 149 | send_keyboard_report(); | ||
| 150 | } else { | ||
| 151 | del_key(KC_ESC); | ||
| 152 | send_keyboard_report(); | ||
| 153 | } | ||
| 154 | } | ||
| 155 | break; | ||
| 156 | } | ||
| 157 | } | ||
diff --git a/keyboards/alu84/keymaps/turbomech/rules.mk b/keyboards/alu84/keymaps/turbomech/rules.mk index c8b74bfc9..6c0a79b11 100644 --- a/keyboards/alu84/keymaps/turbomech/rules.mk +++ b/keyboards/alu84/keymaps/turbomech/rules.mk | |||
| @@ -1,12 +1,2 @@ | |||
| 1 | BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration(+1000) | 1 | SLEEP_LED_ENABLE = no |
| 2 | MOUSEKEY_ENABLE ?= no # Mouse keys(+4700) | 2 | UNICODE_ENABLE = yes |
| 3 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
| 4 | CONSOLE_ENABLE ?= no # Console for debug(+400) | ||
| 5 | COMMAND_ENABLE ?= no # Commands for debug and configuration | ||
| 6 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
| 7 | NKRO_ENABLE ?= yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 8 | BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality | ||
| 9 | AUDIO_ENABLE ?= no | ||
| 10 | RGBLIGHT_ENABLE ?= yes | ||
| 11 | UNICODE_ENABLE ?= yes | ||
| 12 | |||
diff --git a/keyboards/alu84/readme.md b/keyboards/alu84/readme.md index f98addd0b..12da1d8a8 100644 --- a/keyboards/alu84/readme.md +++ b/keyboards/alu84/readme.md | |||
| @@ -1,16 +1,21 @@ | |||
| 1 | ALU84 | 1 | # ALU84 |
| 2 | === | ||
| 3 | 2 | ||
| 4 |  | 3 |  |
| 5 | 4 | ||
| 6 | A 75% keyboard made and sold by MECHKEYS [More info on MECHKEYS](https://mechkeys.ca). | 5 | A 75% keyboard made and sold by MECHKEYS. |
| 7 | 6 | ||
| 8 | Keyboard Maintainer: [TurboMech](https://github.com/TurboMech) | 7 | * Keyboard Maintainer: [The QMK Community](https://github.com/qmk) |
| 9 | Hardware Supported: ALU84 | 8 | * Hardware Supported: ALU84 |
| 10 | Hardware Availability: [MECHKEYS](https://mechkeys.ca) | 9 | * Hardware Availability: [~~MECHKEYS~~](https://mechkeys.ca) (No longer available) |
| 11 | 10 | ||
| 12 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
| 13 | 12 | ||
| 14 | make alu84:default | 13 | make alu84:default |
| 15 | 14 | ||
| 16 | See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. | 15 | Flashing example for this keyboard: |
| 16 | |||
| 17 | make alu84:default:flash | ||
| 18 | |||
| 19 | To reset the board into bootloader mode, hold Space+B while plugging the cable in. | ||
| 20 | |||
| 21 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/alu84/rules.mk b/keyboards/alu84/rules.mk index 8d1652171..4c272a379 100755 --- a/keyboards/alu84/rules.mk +++ b/keyboards/alu84/rules.mk | |||
| @@ -2,25 +2,23 @@ | |||
| 2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
| 3 | 3 | ||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | 5 | BOOTLOADER = atmel-dfu |
| 13 | 6 | ||
| 14 | # Build Options | 7 | # Build Options |
| 15 | # comment out to disable the options. | 8 | # change yes to no to disable |
| 16 | # | 9 | # |
| 17 | BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration | 10 | BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration |
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | 11 | MOUSEKEY_ENABLE = no # Mouse keys |
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 20 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | 14 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 22 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 23 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 16 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
| 24 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 25 | AUDIO_ENABLE = no | 18 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 26 | RGBLIGHT_ENABLE = yes | 19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | LAYOUTS = 75_ansi | ||
