summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2025-11-25 05:07:16 -0500
committerGitHub <noreply@github.com>2025-11-25 10:07:16 +0000
commit594558ec7b9ac1963870447778426682065e0d20 (patch)
treee2a7677202dd77ed3747a09b5a17247ea6adacbd
parent5e1b1f50237ce78a78499fb8ab9810a0d651b921 (diff)
Add Demod LM Rev. 1 (#25793)
-rw-r--r--keyboards/keebio/demod_lm/info.json8
-rw-r--r--keyboards/keebio/demod_lm/keymaps/default/keymap.json12
-rw-r--r--keyboards/keebio/demod_lm/readme.md24
-rw-r--r--keyboards/keebio/demod_lm/rev1/config.h12
-rw-r--r--keyboards/keebio/demod_lm/rev1/halconf.h8
-rw-r--r--keyboards/keebio/demod_lm/rev1/keyboard.json117
-rw-r--r--keyboards/keebio/demod_lm/rev1/mcuconf.h10
-rw-r--r--keyboards/keebio/demod_lm/rev1/rev1.c11
8 files changed, 202 insertions, 0 deletions
diff --git a/keyboards/keebio/demod_lm/info.json b/keyboards/keebio/demod_lm/info.json
new file mode 100644
index 0000000000..64fa5a05ca
--- /dev/null
+++ b/keyboards/keebio/demod_lm/info.json
@@ -0,0 +1,8 @@
1{
2 "manufacturer": "Keebio",
3 "maintainer": "Keebio",
4 "url": "https://keeb.io",
5 "usb": {
6 "vid": "0xCB10"
7 }
8}
diff --git a/keyboards/keebio/demod_lm/keymaps/default/keymap.json b/keyboards/keebio/demod_lm/keymaps/default/keymap.json
new file mode 100644
index 0000000000..9115271b3d
--- /dev/null
+++ b/keyboards/keebio/demod_lm/keymaps/default/keymap.json
@@ -0,0 +1,12 @@
1{
2 "keyboard": "keebio/demod_lm/rev1",
3 "keymap": "default",
4 "layout": "LAYOUT_numpad_5x4",
5 "layers": [
6 ["RM_NEXT", "KC_PSLS", "KC_PAST", "KC_PMNS",
7 "KC_P7", "KC_P8", "KC_P9",
8 "KC_P4", "KC_P5", "KC_P6", "KC_PPLS",
9 "KC_P1", "KC_P2", "KC_P3",
10 "KC_P0", "KC_PDOT", "KC_PENT" ]
11 ]
12}
diff --git a/keyboards/keebio/demod_lm/readme.md b/keyboards/keebio/demod_lm/readme.md
new file mode 100644
index 0000000000..c9233d0961
--- /dev/null
+++ b/keyboards/keebio/demod_lm/readme.md
@@ -0,0 +1,24 @@
1# Demod LM
2
3A low-profile number pad and sold by Keebio. [More info at Keebio](https://keeb.io).
4
5* Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
6* Hardware Supported: Demod LM PCB with STM32G431 microcontroller
7* Hardware Availability: [Keebio](https://keeb.io)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make keebio/demod_lm/rev1:default
12
13Example of flashing this keyboard:
14
15 make keebio/demod_lm/rev1:default:flash
16
17See 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).
18
19## Bootloader
20
21Enter the bootloader in one of two ways:
22
23* **Physical reset button**: Press and hold the button on the back of the PCB for at least 1 second and let go
24* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/keebio/demod_lm/rev1/config.h b/keyboards/keebio/demod_lm/rev1/config.h
new file mode 100644
index 0000000000..fae0576081
--- /dev/null
+++ b/keyboards/keebio/demod_lm/rev1/config.h
@@ -0,0 +1,12 @@
1// Copyright 2025 Danny Nguyen (@nooges)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6/* Defines for the RGB matrix */
7#define WS2812_PWM_DRIVER PWMD3
8#define WS2812_PWM_CHANNEL 3
9#define WS2812_PWM_PAL_MODE 2
10#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
11#define WS2812_DMA_CHANNEL 2
12#define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM3_UP
diff --git a/keyboards/keebio/demod_lm/rev1/halconf.h b/keyboards/keebio/demod_lm/rev1/halconf.h
new file mode 100644
index 0000000000..0249d61fea
--- /dev/null
+++ b/keyboards/keebio/demod_lm/rev1/halconf.h
@@ -0,0 +1,8 @@
1// Copyright 2024 Danny Nguyen (@nooges)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#define HAL_USE_PWM TRUE
7
8#include_next <halconf.h>
diff --git a/keyboards/keebio/demod_lm/rev1/keyboard.json b/keyboards/keebio/demod_lm/rev1/keyboard.json
new file mode 100644
index 0000000000..ac35998852
--- /dev/null
+++ b/keyboards/keebio/demod_lm/rev1/keyboard.json
@@ -0,0 +1,117 @@
1{
2 "keyboard_name": "Demod LM Rev. 1",
3 "bootloader": "stm32-dfu",
4 "diode_direction": "COL2ROW",
5 "features": {
6 "bootmagic": true,
7 "extrakey": true,
8 "mousekey": true,
9 "rgb_matrix": true
10 },
11 "matrix_pins": {
12 "cols": ["A1", "A0", "B3", "B6"],
13 "rows": ["A15", "F0", "B4", "B5", "F1"]
14 },
15 "processor": "STM32G431",
16 "rgb_matrix": {
17 "animations": {
18 "alphas_mods": true,
19 "band_pinwheel_sat": true,
20 "band_pinwheel_val": true,
21 "band_sat": true,
22 "band_spiral_sat": true,
23 "band_spiral_val": true,
24 "band_val": true,
25 "breathing": true,
26 "cycle_all": true,
27 "cycle_left_right": true,
28 "cycle_out_in": true,
29 "cycle_out_in_dual": true,
30 "cycle_pinwheel": true,
31 "cycle_spiral": true,
32 "cycle_up_down": true,
33 "digital_rain": true,
34 "dual_beacon": true,
35 "gradient_left_right": true,
36 "gradient_up_down": true,
37 "hue_breathing": true,
38 "hue_pendulum": true,
39 "hue_wave": true,
40 "jellybean_raindrops": true,
41 "multisplash": true,
42 "pixel_flow": true,
43 "pixel_fractal": true,
44 "pixel_rain": true,
45 "rainbow_beacon": true,
46 "rainbow_moving_chevron": true,
47 "rainbow_pinwheels": true,
48 "raindrops": true,
49 "solid_multisplash": true,
50 "solid_reactive": true,
51 "solid_reactive_cross": true,
52 "solid_reactive_multicross": true,
53 "solid_reactive_multinexus": true,
54 "solid_reactive_multiwide": true,
55 "solid_reactive_nexus": true,
56 "solid_reactive_simple": true,
57 "solid_reactive_wide": true,
58 "solid_splash": true,
59 "splash": true,
60 "typing_heatmap": true
61 },
62 "driver": "ws2812",
63 "layout": [
64 {"matrix": [0, 0], "x": 88, "y": 0, "flags": 4},
65 {"matrix": [0, 1], "x": 104, "y": 0, "flags": 4},
66 {"matrix": [0, 2], "x": 120, "y": 0, "flags": 4},
67 {"matrix": [0, 3], "x": 136, "y": 0, "flags": 4},
68 {"matrix": [1, 3], "x": 136, "y": 24, "flags": 4},
69 {"matrix": [1, 2], "x": 120, "y": 16, "flags": 4},
70 {"matrix": [1, 1], "x": 104, "y": 16, "flags": 4},
71 {"matrix": [1, 0], "x": 88, "y": 16, "flags": 4},
72 {"matrix": [2, 0], "x": 88, "y": 32, "flags": 4},
73 {"matrix": [2, 1], "x": 104, "y": 32, "flags": 4},
74 {"matrix": [2, 2], "x": 120, "y": 32, "flags": 4},
75 {"matrix": [3, 2], "x": 120, "y": 48, "flags": 4},
76 {"matrix": [3, 1], "x": 104, "y": 48, "flags": 4},
77 {"matrix": [3, 0], "x": 88, "y": 48, "flags": 4},
78 {"matrix": [4, 0], "x": 96, "y": 64, "flags": 4},
79 {"matrix": [4, 2], "x": 120, "y": 64, "flags": 4},
80 {"matrix": [3, 3], "x": 136, "y": 56, "flags": 4}
81 ],
82 "max_brightness": 200,
83 "sleep": true
84 },
85 "usb": {
86 "device_version": "1.0.0",
87 "pid": "0x1654"
88 },
89 "ws2812": {
90 "driver": "pwm",
91 "pin": "B0"
92 },
93 "community_layouts": ["numpad_5x4"],
94 "layouts": {
95 "LAYOUT_numpad_5x4": {
96 "layout": [
97 {"matrix": [0, 0], "x": 0, "y": 0},
98 {"matrix": [0, 1], "x": 1, "y": 0},
99 {"matrix": [0, 2], "x": 2, "y": 0},
100 {"matrix": [0, 3], "x": 3, "y": 0},
101 {"matrix": [1, 0], "x": 0, "y": 1},
102 {"matrix": [1, 1], "x": 1, "y": 1},
103 {"matrix": [1, 2], "x": 2, "y": 1},
104 {"matrix": [2, 0], "x": 0, "y": 2},
105 {"matrix": [2, 1], "x": 1, "y": 2},
106 {"matrix": [2, 2], "x": 2, "y": 2},
107 {"matrix": [1, 3], "x": 3, "y": 1, "h": 2},
108 {"matrix": [3, 0], "x": 0, "y": 3},
109 {"matrix": [3, 1], "x": 1, "y": 3},
110 {"matrix": [3, 2], "x": 2, "y": 3},
111 {"matrix": [4, 0], "x": 0, "y": 4, "w": 2},
112 {"matrix": [4, 2], "x": 2, "y": 4},
113 {"matrix": [3, 3], "x": 3, "y": 3, "h": 2}
114 ]
115 }
116 }
117}
diff --git a/keyboards/keebio/demod_lm/rev1/mcuconf.h b/keyboards/keebio/demod_lm/rev1/mcuconf.h
new file mode 100644
index 0000000000..a864dab31e
--- /dev/null
+++ b/keyboards/keebio/demod_lm/rev1/mcuconf.h
@@ -0,0 +1,10 @@
1// Copyright 2024 Danny Nguyen (@nooges)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include_next <mcuconf.h>
7
8/* enable TIM3, used for RGB LED PWM driver */
9#undef STM32_PWM_USE_TIM3
10#define STM32_PWM_USE_TIM3 TRUE
diff --git a/keyboards/keebio/demod_lm/rev1/rev1.c b/keyboards/keebio/demod_lm/rev1/rev1.c
new file mode 100644
index 0000000000..7843a900a3
--- /dev/null
+++ b/keyboards/keebio/demod_lm/rev1/rev1.c
@@ -0,0 +1,11 @@
1// Copyright 2024 Danny Nguyen (@nooges)
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "quantum.h"
5
6void keyboard_pre_init_kb(void) {
7 // Disable the PD peripheral in pre-init because its pins (B4, B6) are being used in the matrix:
8 PWR->CR3 |= PWR_CR3_UCPD_DBDIS;
9 // Call the corresponding _user() function (see https://docs.qmk.fm/#/custom_quantum_functions)
10 keyboard_pre_init_user();
11}