From 61cd180163cbe1324bde25abcc95d0c380459b70 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 14 Jan 2020 22:03:48 +0000 Subject: [PATCH] Add ws2812 driver type define (#7888) --- common_features.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common_features.mk b/common_features.mk index 01ceb8278..09d01debd 100644 --- a/common_features.mk +++ b/common_features.mk @@ -278,6 +278,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes) $(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) endif + OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]')) + ifeq ($(strip $(WS2812_DRIVER)), bitbang) SRC += ws2812.c else