summaryrefslogtreecommitdiff
path: root/keyboards/nebula12/nebula12.c
diff options
context:
space:
mode:
authoryiancar <yiangosyiangou@cytanet.com.cy>2020-10-18 14:37:33 +0100
committerGitHub <noreply@github.com>2020-10-19 00:37:33 +1100
commitd49dcdd667cc5e154a5c42a5be7e0f3391c8401c (patch)
treec1f82c7ac6d98384c4867bafa777e7124237d745 /keyboards/nebula12/nebula12.c
parentf952d4f7b779474918453b7ec3ccccdcfbd63b58 (diff)
Nebula12 RGBLIGHT buffer workaround (#10555)
* Work around for rgblight buffer * Update config.h * Prettify * Clip led range
Diffstat (limited to 'keyboards/nebula12/nebula12.c')
-rwxr-xr-xkeyboards/nebula12/nebula12.c9
1 files changed, 9 insertions, 0 deletions
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);
+}