From d49dcdd667cc5e154a5c42a5be7e0f3391c8401c Mon Sep 17 00:00:00 2001 From: yiancar Date: Sun, 18 Oct 2020 14:37:33 +0100 Subject: Nebula12 RGBLIGHT buffer workaround (#10555) * Work around for rgblight buffer * Update config.h * Prettify * Clip led range --- keyboards/nebula12/nebula12.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'keyboards/nebula12/nebula12.c') diff --git a/keyboards/nebula12/nebula12.c b/keyboards/nebula12/nebula12.c index 6deecb8f47..b23024acf1 100755 --- a/keyboards/nebula12/nebula12.c +++ b/keyboards/nebula12/nebula12.c @@ -18,3 +18,12 @@ #endif #include "nebula12.h" + +void board_init(void) { + SYSCFG->CFGR1 |= SYSCFG_CFGR1_I2C1_DMA_RMP; + SYSCFG->CFGR1 &= ~(SYSCFG_CFGR1_SPI2_DMA_RMP); +} + +void keyboard_post_init_user(void) { +rgblight_set_effect_range(0, 4); +} -- cgit v1.2.3