summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/espapa102.c
diff options
context:
space:
mode:
Diffstat (limited to 'esp8266/espapa102.c')
-rw-r--r--esp8266/espapa102.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/esp8266/espapa102.c b/esp8266/espapa102.c
index e5f3024b10..4295fe42d8 100644
--- a/esp8266/espapa102.c
+++ b/esp8266/espapa102.c
@@ -24,6 +24,9 @@
* THE SOFTWARE.
*/
+#include "py/mpconfig.h"
+#if MICROPY_ESP8266_APA102
+
#include <stdio.h>
#include "c_types.h"
#include "eagle_soc.h"
@@ -108,3 +111,5 @@ void esp_apa102_write(uint8_t clockPin, uint8_t dataPin, uint8_t *pixels, uint32
_esp_apa102_append_additionial_cycles(clockPinMask, dataPinMask, numBytes);
_esp_apa102_end_frame(clockPinMask, dataPinMask);
}
+
+#endif