aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mlego/m60_split/rev1
diff options
context:
space:
mode:
authorAlin Marin Elena <alin@elena.space>2022-02-07 21:31:51 +0000
committerGitHub <noreply@github.com>2022-02-07 13:31:51 -0800
commit837205b08faeb5ec4b8bb5a3a380b6459cdef834 (patch)
tree4e556fcb2e5450f2a385b26491800ddd33712dab /keyboards/mlego/m60_split/rev1
parent67d10cbc7e074d441103363658845f4430c51fdd (diff)
downloadqmk_firmware-837205b08faeb5ec4b8bb5a3a380b6459cdef834.tar.gz
qmk_firmware-837205b08faeb5ec4b8bb5a3a380b6459cdef834.zip
[Keyboard] M60 split 5x12 lego pcb (#14383)
* add m60 lego case in split, with stm32f401 and 411 * Update keyboards/mlego/m60_split/m60_split.h * Update keyboards/mlego/m60_split/rev1/config.h * Update keyboards/mlego/m60_split/rev2/config.h * address the moving of enum in keymaps
Diffstat (limited to 'keyboards/mlego/m60_split/rev1')
-rw-r--r--keyboards/mlego/m60_split/rev1/config.h86
-rw-r--r--keyboards/mlego/m60_split/rev1/halconf.h30
-rw-r--r--keyboards/mlego/m60_split/rev1/mcuconf.h30
-rw-r--r--keyboards/mlego/m60_split/rev1/rules.mk24
4 files changed, 170 insertions, 0 deletions
diff --git a/keyboards/mlego/m60_split/rev1/config.h b/keyboards/mlego/m60_split/rev1/config.h
new file mode 100644
index 000000000..6b7923ac1
--- /dev/null
+++ b/keyboards/mlego/m60_split/rev1/config.h
@@ -0,0 +1,86 @@
1/* Copyright 2021-2022 alin m elena <alinm.elena@gmail.com>
2 *
3 * 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 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "config_common.h"
19
20/* USB Device descriptor parameter */
21#define PRODUCT_ID 0x0001
22#define DEVICE_VER 0x0001
23
24#define MATRIX_ROW_PINS \
25 { B0, A6, A7, B1, A5 }
26#define MATRIX_COL_PINS \
27 { B14, A10, A15, B3, B4, B5 }
28
29#define MATRIX_ROW_PINS_RIGHT \
30 { B1, A4, A5, A6, A7 }
31
32#define MATRIX_COL_PINS_RIGHT \
33 { B0, A3, A2, A1, B7, B5 } // cols are from right to left to match the layout
34
35#define ENCODERS_PAD_A \
36 { A0 }
37#define ENCODERS_PAD_B \
38 { B8 }
39#define ENCODER_RESOLUTIONS \
40 { 4 }
41
42#define LED_NUM_LOCK_PIN B12
43#define LED_SCROLL_LOCK_PIN B13
44#define LED_CAPS_LOCK_PIN C13
45
46#define SPLIT_LAYER_STATE_ENABLE
47#define SPLIT_LED_STATE_ENABLE
48
49#define RGB_DI_PIN B15
50
51#define SPLIT_HAND_PIN B9
52#define SERIAL_USART_TX_PIN B6
53#define RGBLIGHT_SPLIT
54#define RGBLIGHT_LAYERS
55
56#define UNUSED_PINS
57#define SERIAL_USART_SPEED 921600
58
59/* COL2ROW, ROW2COL*/
60#define DIODE_DIRECTION COL2ROW
61
62#define MATRIX_IO_DELAY 5
63
64#define RGBLIGHT_LIMIT_VAL 128
65#define RGBLIGHT_DEFAULT_HUE 213
66
67#define RGBLED_NUM 16
68#define RGBLED_SPLIT \
69 { 8, 8 }
70
71#define RGBLIGHT_EFFECT_BREATHING
72#define RGBLIGHT_EFFECT_RAINBOW_MOOD
73#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
74#define RGBLIGHT_EFFECT_SNAKE
75#define RGBLIGHT_EFFECT_KNIGHT
76#define RGBLIGHT_EFFECT_CHRISTMAS
77#define RGBLIGHT_EFFECT_STATIC_GRADIENT
78#define RGBLIGHT_EFFECT_RGB_TEST
79#define RGBLIGHT_EFFECT_ALTERNATING
80#define RGBLIGHT_EFFECT_TWINKLE
81
82/* Bootmagic Lite key configuration */
83#define BOOTMAGIC_LITE_ROW 0
84#define BOOTMAGIC_LITE_COLUMN 0
85#define BOOTMAGIC_LITE_ROW_RIGHT 5
86#define BOOTMAGIC_LITE_COLUMN_RIGHT 0
diff --git a/keyboards/mlego/m60_split/rev1/halconf.h b/keyboards/mlego/m60_split/rev1/halconf.h
new file mode 100644
index 000000000..89815e23b
--- /dev/null
+++ b/keyboards/mlego/m60_split/rev1/halconf.h
@@ -0,0 +1,30 @@
1/* Copyright 2020 QMK
2 *
3 * 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 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17/*
18 * This file was auto-generated by:
19 * `qmk chibios-confmigrate -i keyboards/zvecr/zv48/f401/halconf.h -r platforms/chibios/common/configs/halconf.h`
20 */
21
22#pragma once
23
24#define HAL_USE_PWM TRUE
25
26#define HAL_USE_SERIAL TRUE
27
28#define SERIAL_USB_BUFFERS_SIZE 256
29
30#include_next <halconf.h>
diff --git a/keyboards/mlego/m60_split/rev1/mcuconf.h b/keyboards/mlego/m60_split/rev1/mcuconf.h
new file mode 100644
index 000000000..4d90ec07e
--- /dev/null
+++ b/keyboards/mlego/m60_split/rev1/mcuconf.h
@@ -0,0 +1,30 @@
1/* Copyright 2020 QMK
2 *
3 * 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 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17/*
18 * This file was auto-generated by:
19 * `qmk chibios-confmigrate -i keyboards/zvecr/zv48/f401/mcuconf.h -r platforms/chibios/BLACKPILL_STM32_F401/configs/mcuconf.h`
20 */
21
22#pragma once
23
24#include_next <mcuconf.h>
25
26#undef STM32_PWM_USE_TIM3
27#define STM32_PWM_USE_TIM3 TRUE
28
29#undef STM32_SERIAL_USE_USART1
30#define STM32_SERIAL_USE_USART1 TRUE
diff --git a/keyboards/mlego/m60_split/rev1/rules.mk b/keyboards/mlego/m60_split/rev1/rules.mk
new file mode 100644
index 000000000..9e2c8d657
--- /dev/null
+++ b/keyboards/mlego/m60_split/rev1/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = STM32F401
3
4# Bootloader selection
5BOOTLOADER = stm32-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19SPLIT_KEYBOARD = yes
20SERIAL_DRIVER = usart
21ENCODER_ENABLE = yes # Enable encoder
22
23LAYOUTS = ortho_5x12
24