cherry-pick from 'rgblight_modes.h sample implementation'

This commit is contained in:
mtei
2019-03-13 14:37:50 +09:00
parent c163037bdb
commit a2e5e9b978
3 changed files with 70 additions and 71 deletions
+2 -2
View File
@@ -59,7 +59,7 @@
#define _RGBM_TMP_STATIC(sym, msym) RGBLIGHT_MODE_ ## sym,
#define _RGBM_TMP_DYNAMIC(sym, msym)
static uint8_t static_effect_table [] = {
#include "rgblight.h"
#include "rgblight_modes.h"
};
#define _RGBM_SINGLE_STATIC(sym) RGBLIGHT_MODE_ ## sym,
@@ -70,7 +70,7 @@ static uint8_t static_effect_table [] = {
#define _RGBM_TMP_DYNAMIC(sym, msym) RGBLIGHT_MODE_ ## msym,
static uint8_t mode_base_table [] = {
0, // RGBLIGHT_MODE_zero
#include "rgblight.h"
#include "rgblight_modes.h"
};
static inline int is_static_effect(uint8_t mode) {