Add Demod LM Rev. 1 (#25793)
This commit is contained in:
parent
5e1b1f5023
commit
594558ec7b
8 changed files with 202 additions and 0 deletions
8
keyboards/keebio/demod_lm/info.json
Normal file
8
keyboards/keebio/demod_lm/info.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"manufacturer": "Keebio",
|
||||
"maintainer": "Keebio",
|
||||
"url": "https://keeb.io",
|
||||
"usb": {
|
||||
"vid": "0xCB10"
|
||||
}
|
||||
}
|
||||
12
keyboards/keebio/demod_lm/keymaps/default/keymap.json
Normal file
12
keyboards/keebio/demod_lm/keymaps/default/keymap.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"keyboard": "keebio/demod_lm/rev1",
|
||||
"keymap": "default",
|
||||
"layout": "LAYOUT_numpad_5x4",
|
||||
"layers": [
|
||||
["RM_NEXT", "KC_PSLS", "KC_PAST", "KC_PMNS",
|
||||
"KC_P7", "KC_P8", "KC_P9",
|
||||
"KC_P4", "KC_P5", "KC_P6", "KC_PPLS",
|
||||
"KC_P1", "KC_P2", "KC_P3",
|
||||
"KC_P0", "KC_PDOT", "KC_PENT" ]
|
||||
]
|
||||
}
|
||||
24
keyboards/keebio/demod_lm/readme.md
Normal file
24
keyboards/keebio/demod_lm/readme.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Demod LM
|
||||
|
||||
A low-profile number pad and sold by Keebio. [More info at Keebio](https://keeb.io).
|
||||
|
||||
* Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
|
||||
* Hardware Supported: Demod LM PCB with STM32G431 microcontroller
|
||||
* Hardware Availability: [Keebio](https://keeb.io)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make keebio/demod_lm/rev1:default
|
||||
|
||||
Example of flashing this keyboard:
|
||||
|
||||
make keebio/demod_lm/rev1:default:flash
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in one of two ways:
|
||||
|
||||
* **Physical reset button**: Press and hold the button on the back of the PCB for at least 1 second and let go
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
||||
12
keyboards/keebio/demod_lm/rev1/config.h
Normal file
12
keyboards/keebio/demod_lm/rev1/config.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright 2025 Danny Nguyen (@nooges)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Defines for the RGB matrix */
|
||||
#define WS2812_PWM_DRIVER PWMD3
|
||||
#define WS2812_PWM_CHANNEL 3
|
||||
#define WS2812_PWM_PAL_MODE 2
|
||||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
|
||||
#define WS2812_DMA_CHANNEL 2
|
||||
#define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM3_UP
|
||||
8
keyboards/keebio/demod_lm/rev1/halconf.h
Normal file
8
keyboards/keebio/demod_lm/rev1/halconf.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright 2024 Danny Nguyen (@nooges)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define HAL_USE_PWM TRUE
|
||||
|
||||
#include_next <halconf.h>
|
||||
117
keyboards/keebio/demod_lm/rev1/keyboard.json
Normal file
117
keyboards/keebio/demod_lm/rev1/keyboard.json
Normal file
|
|
@ -0,0 +1,117 @@
|
|||
{
|
||||
"keyboard_name": "Demod LM Rev. 1",
|
||||
"bootloader": "stm32-dfu",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A1", "A0", "B3", "B6"],
|
||||
"rows": ["A15", "F0", "B4", "B5", "F1"]
|
||||
},
|
||||
"processor": "STM32G431",
|
||||
"rgb_matrix": {
|
||||
"animations": {
|
||||
"alphas_mods": true,
|
||||
"band_pinwheel_sat": true,
|
||||
"band_pinwheel_val": true,
|
||||
"band_sat": true,
|
||||
"band_spiral_sat": true,
|
||||
"band_spiral_val": true,
|
||||
"band_val": true,
|
||||
"breathing": true,
|
||||
"cycle_all": true,
|
||||
"cycle_left_right": true,
|
||||
"cycle_out_in": true,
|
||||
"cycle_out_in_dual": true,
|
||||
"cycle_pinwheel": true,
|
||||
"cycle_spiral": true,
|
||||
"cycle_up_down": true,
|
||||
"digital_rain": true,
|
||||
"dual_beacon": true,
|
||||
"gradient_left_right": true,
|
||||
"gradient_up_down": true,
|
||||
"hue_breathing": true,
|
||||
"hue_pendulum": true,
|
||||
"hue_wave": true,
|
||||
"jellybean_raindrops": true,
|
||||
"multisplash": true,
|
||||
"pixel_flow": true,
|
||||
"pixel_fractal": true,
|
||||
"pixel_rain": true,
|
||||
"rainbow_beacon": true,
|
||||
"rainbow_moving_chevron": true,
|
||||
"rainbow_pinwheels": true,
|
||||
"raindrops": true,
|
||||
"solid_multisplash": true,
|
||||
"solid_reactive": true,
|
||||
"solid_reactive_cross": true,
|
||||
"solid_reactive_multicross": true,
|
||||
"solid_reactive_multinexus": true,
|
||||
"solid_reactive_multiwide": true,
|
||||
"solid_reactive_nexus": true,
|
||||
"solid_reactive_simple": true,
|
||||
"solid_reactive_wide": true,
|
||||
"solid_splash": true,
|
||||
"splash": true,
|
||||
"typing_heatmap": true
|
||||
},
|
||||
"driver": "ws2812",
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 88, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 1], "x": 104, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 2], "x": 120, "y": 0, "flags": 4},
|
||||
{"matrix": [0, 3], "x": 136, "y": 0, "flags": 4},
|
||||
{"matrix": [1, 3], "x": 136, "y": 24, "flags": 4},
|
||||
{"matrix": [1, 2], "x": 120, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 1], "x": 104, "y": 16, "flags": 4},
|
||||
{"matrix": [1, 0], "x": 88, "y": 16, "flags": 4},
|
||||
{"matrix": [2, 0], "x": 88, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 1], "x": 104, "y": 32, "flags": 4},
|
||||
{"matrix": [2, 2], "x": 120, "y": 32, "flags": 4},
|
||||
{"matrix": [3, 2], "x": 120, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 1], "x": 104, "y": 48, "flags": 4},
|
||||
{"matrix": [3, 0], "x": 88, "y": 48, "flags": 4},
|
||||
{"matrix": [4, 0], "x": 96, "y": 64, "flags": 4},
|
||||
{"matrix": [4, 2], "x": 120, "y": 64, "flags": 4},
|
||||
{"matrix": [3, 3], "x": 136, "y": 56, "flags": 4}
|
||||
],
|
||||
"max_brightness": 200,
|
||||
"sleep": true
|
||||
},
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x1654"
|
||||
},
|
||||
"ws2812": {
|
||||
"driver": "pwm",
|
||||
"pin": "B0"
|
||||
},
|
||||
"community_layouts": ["numpad_5x4"],
|
||||
"layouts": {
|
||||
"LAYOUT_numpad_5x4": {
|
||||
"layout": [
|
||||
{"matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"matrix": [0, 1], "x": 1, "y": 0},
|
||||
{"matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"matrix": [1, 0], "x": 0, "y": 1},
|
||||
{"matrix": [1, 1], "x": 1, "y": 1},
|
||||
{"matrix": [1, 2], "x": 2, "y": 1},
|
||||
{"matrix": [2, 0], "x": 0, "y": 2},
|
||||
{"matrix": [2, 1], "x": 1, "y": 2},
|
||||
{"matrix": [2, 2], "x": 2, "y": 2},
|
||||
{"matrix": [1, 3], "x": 3, "y": 1, "h": 2},
|
||||
{"matrix": [3, 0], "x": 0, "y": 3},
|
||||
{"matrix": [3, 1], "x": 1, "y": 3},
|
||||
{"matrix": [3, 2], "x": 2, "y": 3},
|
||||
{"matrix": [4, 0], "x": 0, "y": 4, "w": 2},
|
||||
{"matrix": [4, 2], "x": 2, "y": 4},
|
||||
{"matrix": [3, 3], "x": 3, "y": 3, "h": 2}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
10
keyboards/keebio/demod_lm/rev1/mcuconf.h
Normal file
10
keyboards/keebio/demod_lm/rev1/mcuconf.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright 2024 Danny Nguyen (@nooges)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
/* enable TIM3, used for RGB LED PWM driver */
|
||||
#undef STM32_PWM_USE_TIM3
|
||||
#define STM32_PWM_USE_TIM3 TRUE
|
||||
11
keyboards/keebio/demod_lm/rev1/rev1.c
Normal file
11
keyboards/keebio/demod_lm/rev1/rev1.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// Copyright 2024 Danny Nguyen (@nooges)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_pre_init_kb(void) {
|
||||
// Disable the PD peripheral in pre-init because its pins (B4, B6) are being used in the matrix:
|
||||
PWR->CR3 |= PWR_CR3_UCPD_DBDIS;
|
||||
// Call the corresponding _user() function (see https://docs.qmk.fm/#/custom_quantum_functions)
|
||||
keyboard_pre_init_user();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue