···11+# Demod LM
22+33+A low-profile number pad and sold by Keebio. [More info at Keebio](https://keeb.io).
44+55+* Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
66+* Hardware Supported: Demod LM PCB with STM32G431 microcontroller
77+* Hardware Availability: [Keebio](https://keeb.io)
88+99+Make example for this keyboard (after setting up your build environment):
1010+1111+ make keebio/demod_lm/rev1:default
1212+1313+Example of flashing this keyboard:
1414+1515+ make keebio/demod_lm/rev1:default:flash
1616+1717+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).
1818+1919+## Bootloader
2020+2121+Enter the bootloader in one of two ways:
2222+2323+* **Physical reset button**: Press and hold the button on the back of the PCB for at least 1 second and let go
2424+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
+12
keyboards/keebio/demod_lm/rev1/config.h
···11+// Copyright 2025 Danny Nguyen (@nooges)
22+// SPDX-License-Identifier: GPL-2.0-or-later
33+44+#pragma once
55+66+/* Defines for the RGB matrix */
77+#define WS2812_PWM_DRIVER PWMD3
88+#define WS2812_PWM_CHANNEL 3
99+#define WS2812_PWM_PAL_MODE 2
1010+#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
1111+#define WS2812_DMA_CHANNEL 2
1212+#define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM3_UP
+8
keyboards/keebio/demod_lm/rev1/halconf.h
···11+// Copyright 2024 Danny Nguyen (@nooges)
22+// SPDX-License-Identifier: GPL-2.0-or-later
33+44+#pragma once
55+66+#define HAL_USE_PWM TRUE
77+88+#include_next <halconf.h>
···11+// Copyright 2024 Danny Nguyen (@nooges)
22+// SPDX-License-Identifier: GPL-2.0-or-later
33+44+#pragma once
55+66+#include_next <mcuconf.h>
77+88+/* enable TIM3, used for RGB LED PWM driver */
99+#undef STM32_PWM_USE_TIM3
1010+#define STM32_PWM_USE_TIM3 TRUE
+11
keyboards/keebio/demod_lm/rev1/rev1.c
···11+// Copyright 2024 Danny Nguyen (@nooges)
22+// SPDX-License-Identifier: GPL-2.0-or-later
33+44+#include "quantum.h"
55+66+void keyboard_pre_init_kb(void) {
77+ // Disable the PD peripheral in pre-init because its pins (B4, B6) are being used in the matrix:
88+ PWR->CR3 |= PWR_CR3_UCPD_DBDIS;
99+ // Call the corresponding _user() function (see https://docs.qmk.fm/#/custom_quantum_functions)
1010+ keyboard_pre_init_user();
1111+}