diff options
Diffstat (limited to 'keyboards/mechlovin/foundation')
-rw-r--r-- | keyboards/mechlovin/foundation/config.h | 79 | ||||
-rw-r--r-- | keyboards/mechlovin/foundation/foundation.h | 60 | ||||
-rw-r--r-- | keyboards/mechlovin/foundation/info.json | 274 | ||||
-rw-r--r-- | keyboards/mechlovin/foundation/keymaps/default/keymap.c | 40 | ||||
-rw-r--r-- | keyboards/mechlovin/foundation/keymaps/default_iso/keymap.c | 40 | ||||
-rw-r--r-- | keyboards/mechlovin/foundation/keymaps/default_iso/rules.mk | 1 |
6 files changed, 494 insertions, 0 deletions
diff --git a/keyboards/mechlovin/foundation/config.h b/keyboards/mechlovin/foundation/config.h new file mode 100644 index 0000000000..7f98028a05 --- /dev/null +++ b/keyboards/mechlovin/foundation/config.h @@ -0,0 +1,79 @@ +/* +Copyright 2022 Mechlovin' Studio + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#pragma once + +#include "config_common.h" + +#define MATRIX_ROW_PINS { B12, B13, B14, A8, A2 } +#define MATRIX_COL_PINS { B11, B10, B2, B1, B0, A7, A6, A5, A4, A3, A15, B9, B8, B7, B6, B5, B4, B3} + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 18 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * + */ + +/* COL2ROW, ROW2COL */ +#define DIODE_DIRECTION COL2ROW + +#define LED_PIN_ON_STATE 0 +#define LED_CAPS_LOCK_PIN A1 +//#define LED_COMPOSE_PIN B3 +//#define LED_KANA_PIN B4 + +#define RGB_DI_PIN B15 +#ifdef RGB_DI_PIN +# define RGBLED_NUM 22 +# define RGBLIGHT_HUE_STEP 8 +# define RGBLIGHT_SAT_STEP 8 +# define RGBLIGHT_VAL_STEP 8 +# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ +# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ +# define RGBLIGHT_EFFECT_BREATHING +# define RGBLIGHT_EFFECT_RAINBOW_MOOD +# define RGBLIGHT_EFFECT_RAINBOW_SWIRL +# define RGBLIGHT_EFFECT_SNAKE +# define RGBLIGHT_EFFECT_KNIGHT +# define RGBLIGHT_EFFECT_CHRISTMAS +# define RGBLIGHT_EFFECT_STATIC_GRADIENT +# define RGBLIGHT_EFFECT_RGB_TEST +# define RGBLIGHT_EFFECT_ALTERNATING +# define RGBLIGHT_EFFECT_TWINKLE +/*== customize breathing effect ==*/ +/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ +//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 +/*==== use exp() and sin() ====*/ +//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 +//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 +#endif + +// Encoder pins +#define ENCODERS_PAD_A { C13 } +#define ENCODERS_PAD_B { C14 } + +#define ENCODER_RESOLUTION 4 +#define TAP_CODE_DELAY 10
\ No newline at end of file diff --git a/keyboards/mechlovin/foundation/foundation.h b/keyboards/mechlovin/foundation/foundation.h new file mode 100644 index 0000000000..0444817bbf --- /dev/null +++ b/keyboards/mechlovin/foundation/foundation.h @@ -0,0 +1,60 @@ +/* Copyright 2022 Mechlovin' Studio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#pragma once + +#include "quantum.h" + +#define LAYOUT_all( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K2F, K0F, K0G, K0H, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ + K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3G, \ + K40, K41, K42, K43, K47, K4B, K4C, K4D, K4E, K4F, K4G, K4H \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, KC_NO, KC_NO }, \ + { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, KC_NO, K3G, KC_NO }, \ + { K40, K41, K42, K43, KC_NO, KC_NO, KC_NO, K47, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D, K4E, K4F, K4G, K4H }, \ +} + +#define LAYOUT_ansi( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ + K30, K31, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3G, \ + K40, K41, K42, K43, K47, K4B, K4C, K4D, K4E, K4F, K4G, K4H \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E, KC_NO, KC_NO, KC_NO }, \ + { K30, K31, KC_NO, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, KC_NO, K3G, KC_NO }, \ + { K40, K41, K42, K43, KC_NO, KC_NO, KC_NO, K47, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D, K4E, K4F, K4G, K4H }, \ +} + +#define LAYOUT_iso( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, \ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1F, K1G, K1H, \ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ + K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3G, \ + K40, K41, K42, K43, K47, K4B, K4C, K4D, K4E, K4F, K4G, K4H \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO, K1F, K1G, K1H }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, KC_NO, KC_NO, KC_NO }, \ + { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, KC_NO, KC_NO, K3G, KC_NO }, \ + { K40, K41, K42, K43, KC_NO, KC_NO, KC_NO, K47, KC_NO, KC_NO, KC_NO, K4B, K4C, K4D, K4E, K4F, K4G, K4H }, \ +} diff --git a/keyboards/mechlovin/foundation/info.json b/keyboards/mechlovin/foundation/info.json new file mode 100644 index 0000000000..584a774367 --- /dev/null +++ b/keyboards/mechlovin/foundation/info.json @@ -0,0 +1,274 @@ +{ + "keyboard_name": "Foundation FRL", + "manufacturer": "Mechlovin Studio", + "url": "", + "maintainer": "Protozoa", + "usb": { + "vid": "0x4D4C", + "pid": "0x0180", + "device_version": "0.0.2" + }, + "layout_aliases": { + "LAYOUT_tkl_nofrow_ansi": "LAYOUT_ansi", + "LAYOUT_tkl_nofrow_iso": "LAYOUT_iso" + }, + "layouts": { + "LAYOUT_all": { + "layout": [ + { "label": "0,0", "x": 0, "y": 0 }, + { "label": "0,1", "x": 1.5, "y": 0 }, + { "label": "0,2", "x": 2.5, "y": 0 }, + { "label": "0,3", "x": 3.5, "y": 0 }, + { "label": "0,4", "x": 4.5, "y": 0 }, + { "label": "0,5", "x": 5.5, "y": 0 }, + { "label": "0,6", "x": 6.5, "y": 0 }, + { "label": "0,7", "x": 7.5, "y": 0 }, + { "label": "0,8", "x": 8.5, "y": 0 }, + { "label": "0,9", "x": 9.5, "y": 0 }, + { "label": "0,10", "x": 10.5, "y": 0 }, + { "label": "0,11", "x": 11.5, "y": 0 }, + { "label": "0,12", "x": 12.5, "y": 0 }, + { "label": "0,13", "x": 13.5, "y": 0 }, + { "label": "0,14", "x": 14.5, "y": 0 }, + { "label": "2,15", "x": 15.5, "y": 0 }, + { "label": "0,15", "x": 17, "y": 0 }, + { "label": "0,16", "x": 18, "y": 0 }, + { "label": "0,17", "x": 19, "y": 0 }, + + { "label": "1,0", "x": 0, "y": 1 }, + { "label": "1,1", "x": 1.5, "y": 1, "w": 1.5 }, + { "label": "1,2", "x": 3, "y": 1 }, + { "label": "1,3", "x": 4, "y": 1 }, + { "label": "1,4", "x": 5, "y": 1 }, + { "label": "1,5", "x": 6, "y": 1 }, + { "label": "1,6", "x": 7, "y": 1 }, + { "label": "1,7", "x": 8, "y": 1 }, + { "label": "1,8", "x": 9, "y": 1 }, + { "label": "1,9", "x": 10, "y": 1 }, + { "label": "1,10", "x": 11, "y": 1 }, + { "label": "1,11", "x": 12, "y": 1 }, + { "label": "1,12", "x": 13, "y": 1 }, + { "label": "1,13", "x": 14, "y": 1 }, + { "label": "1,14", "x": 15, "y": 1, "w": 1.5 }, + { "label": "1,15", "x": 17, "y": 1 }, + { "label": "1,16", "x": 18, "y": 1 }, + { "label": "1,17", "x": 19, "y": 1 }, + + { "label": "2,0", "x": 0, "y": 2 }, + { "label": "2,1", "x": 1.5, "y": 2, "w": 1.75 }, + { "label": "2,2", "x": 3.25, "y": 2 }, + { "label": "2,3", "x": 4.25, "y": 2 }, + { "label": "2,4", "x": 5.25, "y": 2 }, + { "label": "2,5", "x": 6.25, "y": 2 }, + { "label": "2,6", "x": 7.25, "y": 2 }, + { "label": "2,7", "x": 8.25, "y": 2 }, + { "label": "2,8", "x": 9.25, "y": 2 }, + { "label": "2,9", "x": 10.25, "y": 2 }, + { "label": "2,10", "x": 11.25, "y": 2 }, + { "label": "2,11", "x": 12.25, "y": 2 }, + { "label": "2,12", "x": 13.25, "y": 2 }, + { "label": "2,13", "x": 14.25, "y": 2 }, + { "label": "2,14", "x": 15.25, "y": 2, "w": 1.25 }, + + { "label": "3,0", "x": 0, "y": 3 }, + { "label": "3,1", "x": 1.5, "y": 3, "w": 1.25 }, + { "label": "3,2", "x": 2.75, "y": 3 }, + { "label": "3,3", "x": 3.75, "y": 3 }, + { "label": "3,4", "x": 4.75, "y": 3 }, + { "label": "3,5", "x": 5.75, "y": 3 }, + { "label": "3,6", "x": 6.75, "y": 3 }, + { "label": "3,7", "x": 7.75, "y": 3 }, + { "label": "3,8", "x": 8.75, "y": 3 }, + { "label": "3,9", "x": 9.75, "y": 3 }, + { "label": "3,10", "x": 10.75, "y": 3 }, + { "label": "3,11", "x": 11.75, "y": 3 }, + { "label": "3,12", "x": 12.75, "y": 3 }, + { "label": "3,13", "x": 13.75, "y": 3, "w": 1.75 }, + { "label": "3,14", "x": 15.5, "y": 3 }, + { "label": "3,16", "x": 18, "y": 3 }, + + { "label": "4,0", "x": 0, "y": 4 }, + { "label": "4,1", "x": 1.5, "y": 4, "w": 1.25 }, + { "label": "4,2", "x": 2.75, "y": 4, "w": 1.25 }, + { "label": "4,3", "x": 4, "y": 4, "w": 1.25 }, + { "label": "4,7", "x": 5.25, "y": 4, "w": 6.25 }, + { "label": "4,11", "x": 11.5, "y": 4, "w": 1.25 }, + { "label": "4,12", "x": 12.75, "y": 4, "w": 1.25 }, + { "label": "4,13", "x": 14, "y": 4, "w": 1.25 }, + { "label": "4,14", "x": 15.25, "y": 4, "w": 1.25 }, + { "label": "4,15", "x": 17, "y": 4 }, + { "label": "4,16", "x": 18, "y": 4 }, + { "label": "4,17", "x": 19, "y": 4 } + ] + }, + "LAYOUT_ansi": { + "layout": [ + { "label": "0,0", "x": 0, "y": 0 }, + { "label": "0,1", "x": 1.5, "y": 0 }, + { "label": "0,2", "x": 2.5, "y": 0 }, + { "label": "0,3", "x": 3.5, "y": 0 }, + { "label": "0,4", "x": 4.5, "y": 0 }, + { "label": "0,5", "x": 5.5, "y": 0 }, + { "label": "0,6", "x": 6.5, "y": 0 }, + { "label": "0,7", "x": 7.5, "y": 0 }, + { "label": "0,8", "x": 8.5, "y": 0 }, + { "label": "0,9", "x": 9.5, "y": 0 }, + { "label": "0,10", "x": 10.5, "y": 0 }, + { "label": "0,11", "x": 11.5, "y": 0 }, + { "label": "0,12", "x": 12.5, "y": 0 }, + { "label": "0,13", "x": 13.5, "y": 0 }, + { "label": "0,14", "x": 14.5, "y": 0, "w": 2 }, + { "label": "0,15", "x": 17, "y": 0 }, + { "label": "0,16", "x": 18, "y": 0 }, + { "label": "0,17", "x": 19, "y": 0 }, + + { "label": "1,0", "x": 0, "y": 1 }, + { "label": "1,1", "x": 1.5, "y": 1, "w": 1.5 }, + { "label": "1,2", "x": 3, "y": 1 }, + { "label": "1,3", "x": 4, "y": 1 }, + { "label": "1,4", "x": 5, "y": 1 }, + { "label": "1,5", "x": 6, "y": 1 }, + { "label": "1,6", "x": 7, "y": 1 }, + { "label": "1,7", "x": 8, "y": 1 }, + { "label": "1,8", "x": 9, "y": 1 }, + { "label": "1,9", "x": 10, "y": 1 }, + { "label": "1,10", "x": 11, "y": 1 }, + { "label": "1,11", "x": 12, "y": 1 }, + { "label": "1,12", "x": 13, "y": 1 }, + { "label": "1,13", "x": 14, "y": 1 }, + { "label": "1,14", "x": 15, "y": 1, "w": 1.5 }, + { "label": "1,15", "x": 17, "y": 1 }, + { "label": "1,16", "x": 18, "y": 1 }, + { "label": "1,17", "x": 19, "y": 1 }, + + { "label": "2,0", "x": 0, "y": 2 }, + { "label": "2,1", "x": 1.5, "y": 2, "w": 1.75 }, + { "label": "2,2", "x": 3.25, "y": 2 }, + { "label": "2,3", "x": 4.25, "y": 2 }, + { "label": "2,4", "x": 5.25, "y": 2 }, + { "label": "2,5", "x": 6.25, "y": 2 }, + { "label": "2,6", "x": 7.25, "y": 2 }, + { "label": "2,7", "x": 8.25, "y": 2 }, + { "label": "2,8", "x": 9.25, "y": 2 }, + { "label": "2,9", "x": 10.25, "y": 2 }, + { "label": "2,10", "x": 11.25, "y": 2 }, + { "label": "2,11", "x": 12.25, "y": 2 }, + { "label": "2,12", "x": 13.25, "y": 2 }, + { "label": "2,14", "x": 14.25, "y": 2, "w": 2.25 }, + + { "label": "3,0", "x": 0, "y": 3 }, + { "label": "3,1", "x": 1.5, "y": 3, "w": 2.25 }, + { "label": "3,3", "x": 3.75, "y": 3 }, + { "label": "3,4", "x": 4.75, "y": 3 }, + { "label": "3,5", "x": 5.75, "y": 3 }, + { "label": "3,6", "x": 6.75, "y": 3 }, + { "label": "3,7", "x": 7.75, "y": 3 }, + { "label": "3,8", "x": 8.75, "y": 3 }, + { "label": "3,9", "x": 9.75, "y": 3 }, + { "label": "3,10", "x": 10.75, "y": 3 }, + { "label": "3,11", "x": 11.75, "y": 3 }, + { "label": "3,12", "x": 12.75, "y": 3 }, + { "label": "3,13", "x": 13.75, "y": 3, "w": 2.75 }, + { "label": "3,16", "x": 18, "y": 3 }, + + { "label": "4,0", "x": 0, "y": 4 }, + { "label": "4,1", "x": 1.5, "y": 4, "w": 1.25 }, + { "label": "4,2", "x": 2.75, "y": 4, "w": 1.25 }, + { "label": "4,3", "x": 4, "y": 4, "w": 1.25 }, + { "label": "4,7", "x": 5.25, "y": 4, "w": 6.25 }, + { "label": "4,11", "x": 11.5, "y": 4, "w": 1.25 }, + { "label": "4,12", "x": 12.75, "y": 4, "w": 1.25 }, + { "label": "4,13", "x": 14, "y": 4, "w": 1.25 }, + { "label": "4,14", "x": 15.25, "y": 4, "w": 1.25 }, + { "label": "4,15", "x": 17, "y": 4 }, + { "label": "4,16", "x": 18, "y": 4 }, + { "label": "4,17", "x": 19, "y": 4 } + ] + }, + "LAYOUT_iso": { + "layout": [ + { "label": "0,0", "x": 0, "y": 0 }, + { "label": "0,1", "x": 1.5, "y": 0 }, + { "label": "0,2", "x": 2.5, "y": 0 }, + { "label": "0,3", "x": 3.5, "y": 0 }, + { "label": "0,4", "x": 4.5, "y": 0 }, + { "label": "0,5", "x": 5.5, "y": 0 }, + { "label": "0,6", "x": 6.5, "y": 0 }, + { "label": "0,7", "x": 7.5, "y": 0 }, + { "label": "0,8", "x": 8.5, "y": 0 }, + { "label": "0,9", "x": 9.5, "y": 0 }, + { "label": "0,10", "x": 10.5, "y": 0 }, + { "label": "0,11", "x": 11.5, "y": 0 }, + { "label": "0,12", "x": 12.5, "y": 0 }, + { "label": "0,13", "x": 13.5, "y": 0 }, + { "label": "0,14", "x": 14.5, "y": 0, "w": 2 }, + { "label": "0,15", "x": 17, "y": 0 }, + { "label": "0,16", "x": 18, "y": 0 }, + { "label": "0,17", "x": 19, "y": 0 }, + + { "label": "1,0", "x": 0, "y": 1 }, + { "label": "1,1", "x": 1.5, "y": 1, "w": 1.5 }, + { "label": "1,2", "x": 3, "y": 1 }, + { "label": "1,3", "x": 4, "y": 1 }, + { "label": "1,4", "x": 5, "y": 1 }, + { "label": "1,5", "x": 6, "y": 1 }, + { "label": "1,6", "x": 7, "y": 1 }, + { "label": "1,7", "x": 8, "y": 1 }, + { "label": "1,8", "x": 9, "y": 1 }, + { "label": "1,9", "x": 10, "y": 1 }, + { "label": "1,10", "x": 11, "y": 1 }, + { "label": "1,11", "x": 12, "y": 1 }, + { "label": "1,12", "x": 13, "y": 1 }, + { "label": "1,13", "x": 14, "y": 1 }, + { "label": "1,15", "x": 17, "y": 1 }, + { "label": "1,16", "x": 18, "y": 1 }, + { "label": "1,17", "x": 19, "y": 1 }, + + { "label": "2,0", "x": 0, "y": 2 }, + { "label": "2,1", "x": 1.5, "y": 2, "w": 1.75 }, + { "label": "2,2", "x": 3.25, "y": 2 }, + { "label": "2,3", "x": 4.25, "y": 2 }, + { "label": "2,4", "x": 5.25, "y": 2 }, + { "label": "2,5", "x": 6.25, "y": 2 }, + { "label": "2,6", "x": 7.25, "y": 2 }, + { "label": "2,7", "x": 8.25, "y": 2 }, + { "label": "2,8", "x": 9.25, "y": 2 }, + { "label": "2,9", "x": 10.25, "y": 2 }, + { "label": "2,10", "x": 11.25, "y": 2 }, + { "label": "2,11", "x": 12.25, "y": 2 }, + { "label": "2,12", "x": 13.25, "y": 2 }, + { "label": "2,13", "x": 14.25, "y": 2 }, + { "label": "2,14", "x": 15.25, "y": 1, "w": 1.25, "h": 2 }, + + { "label": "3,0", "x": 0, "y": 3 }, + { "label": "3,1", "x": 1.5, "y": 3, "w": 1.25 }, + { "label": "3,2", "x": 2.75, "y": 3 }, + { "label": "3,3", "x": 3.75, "y": 3 }, + { "label": "3,4", "x": 4.75, "y": 3 }, + { "label": "3,5", "x": 5.75, "y": 3 }, + { "label": "3,6", "x": 6.75, "y": 3 }, + { "label": "3,7", "x": 7.75, "y": 3 }, + { "label": "3,8", "x": 8.75, "y": 3 }, + { "label": "3,9", "x": 9.75, "y": 3 }, + { "label": "3,10", "x": 10.75, "y": 3 }, + { "label": "3,11", "x": 11.75, "y": 3 }, + { "label": "3,12", "x": 12.75, "y": 3 }, + { "label": "3,13", "x": 13.75, "y": 3, "w": 2.75 }, + { "label": "3,16", "x": 18, "y": 3 }, + + { "label": "4,0", "x": 0, "y": 4 }, + { "label": "4,1", "x": 1.5, "y": 4, "w": 1.25 }, + { "label": "4,2", "x": 2.75, "y": 4, "w": 1.25 }, + { "label": "4,3", "x": 4, "y": 4, "w": 1.25 }, + { "label": "4,7", "x": 5.25, "y": 4, "w": 6.25 }, + { "label": "4,11", "x": 11.5, "y": 4, "w": 1.25 }, + { "label": "4,12", "x": 12.75, "y": 4, "w": 1.25 }, + { "label": "4,13", "x": 14, "y": 4, "w": 1.25 }, + { "label": "4,14", "x": 15.25, "y": 4, "w": 1.25 }, + { "label": "4,15", "x": 17, "y": 4 }, + { "label": "4,16", "x": 18, "y": 4 }, + { "label": "4,17", "x": 19, "y": 4 } + ] + } + } +} diff --git a/keyboards/mechlovin/foundation/keymaps/default/keymap.c b/keyboards/mechlovin/foundation/keymaps/default/keymap.c new file mode 100644 index 0000000000..11ae3282b5 --- /dev/null +++ b/keyboards/mechlovin/foundation/keymaps/default/keymap.c @@ -0,0 +1,40 @@ +/* Copyright 2022 Mechlovin' Studio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ansi( + KC_F1, 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_INS, KC_HOME, KC_PGUP, + KC_F2, 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_DEL, KC_END, KC_PGDN, + KC_F3, 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_F4, 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_F5, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_ansi( + 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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + +}; +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, + [1] = {ENCODER_CCW_CW(RGB_MOD, RGB_RMOD)} +}; +#endif diff --git a/keyboards/mechlovin/foundation/keymaps/default_iso/keymap.c b/keyboards/mechlovin/foundation/keymaps/default_iso/keymap.c new file mode 100644 index 0000000000..5b8918c9e5 --- /dev/null +++ b/keyboards/mechlovin/foundation/keymaps/default_iso/keymap.c @@ -0,0 +1,40 @@ +/* Copyright 2022 Mechlovin' Studio + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_iso( + KC_F1, 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_INS, KC_HOME, KC_PGUP, + KC_F2, 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_DEL, KC_END, KC_PGDN, + KC_F3, 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_NUHS, KC_ENT, + KC_F4, KC_LSFT, KC_NUBS, 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_F5, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + [1] = LAYOUT_iso( + 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, 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, 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + +}; +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, + [1] = {ENCODER_CCW_CW(RGB_MOD, RGB_RMOD)} +}; +#endif diff --git a/keyboards/mechlovin/foundation/keymaps/default_iso/rules.mk b/keyboards/mechlovin/foundation/keymaps/default_iso/rules.mk new file mode 100644 index 0000000000..ee32568148 --- /dev/null +++ b/keyboards/mechlovin/foundation/keymaps/default_iso/rules.mk @@ -0,0 +1 @@ +ENCODER_MAP_ENABLE = yes |