ble_mesh_light/ws2812: Only compile if USE_NEOPIXEL is set.
Without this builds for platforms other than NRFx fail even when
USE_NEOPIXEL is set to 0 due to inclusion of NRFx header files.
* under the License.
*/
+#include "syscfg/syscfg.h"
+
+#if (MYNEWT_VAL(USE_NEOPIXEL))
+
#include <assert.h>
#include <string.h>
#include <stdio.h>
@@ -131,3 +135,4 @@ ws2812_write(const uint32_t *rgb)
return 0;
}
+#endif
