diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-01 00:03:55 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-08-01 00:03:55 +0300 |
commit | 0e4cae521288208e637d609fc00503fc828217b6 (patch) | |
tree | 5a345abb74bd3c13246f6df504c8b3dd110eff47 /esp8266/espapa102.c | |
parent | 88d3cd582ededf4023039f5515e6ca8912682b24 (diff) |
esp8266: Make APA102 driver inclusion configurable.
Diffstat (limited to 'esp8266/espapa102.c')
-rw-r--r-- | esp8266/espapa102.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/esp8266/espapa102.c b/esp8266/espapa102.c index e5f3024b1..4295fe42d 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 |