diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/community/60_iso/unxmaal/config.h | 4 | ||||
-rw-r--r-- | layouts/community/60_iso/unxmaal/rules.mk | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/layouts/community/60_iso/unxmaal/config.h b/layouts/community/60_iso/unxmaal/config.h index 026f20dc8f..63d02fc807 100644 --- a/layouts/community/60_iso/unxmaal/config.h +++ b/layouts/community/60_iso/unxmaal/config.h @@ -17,8 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#ifndef RGB_DI_PIN - #define RGB_DI_PIN F4 +#define RGB_DI_PIN F4 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL @@ -33,4 +32,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 -#endif diff --git a/layouts/community/60_iso/unxmaal/rules.mk b/layouts/community/60_iso/unxmaal/rules.mk index 2ce7257d2b..c2d3c6b075 100644 --- a/layouts/community/60_iso/unxmaal/rules.mk +++ b/layouts/community/60_iso/unxmaal/rules.mk @@ -1,4 +1,7 @@ -# Only enable RGB on avr boards -ifndef MCU_FAMILY - RGBLIGHT_ENABLE = yes # Enable RGB Underglow +# Only enable RGBLIGHT on avr boards +ifeq ($(strip $(PLATFORM_KEY)),avr) + # ...that are at least prepared for it + ifdef RGBLIGHT_DRIVER + RGBLIGHT_ENABLE = yes # Enable RGB Underglow + endif endif |