summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller
diff options
context:
space:
mode:
authorHierophect <hierophect@gmail.com>2019-11-15 12:59:52 -0500
committerHierophect <hierophect@gmail.com>2019-11-15 12:59:52 -0500
commit2c6781f74d0c8b53c0bdcd7f0b954ac831167937 (patch)
treebac6bba738cb9e18599ae80294586eeb2362ef08 /shared-bindings/microcontroller
parent8ff1bc0132bafe4b81adb8fce4e4d2f7844e12ef (diff)
move neopixel_in_use flag to shared-bindings
Diffstat (limited to 'shared-bindings/microcontroller')
-rw-r--r--shared-bindings/microcontroller/Pin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-bindings/microcontroller/Pin.h b/shared-bindings/microcontroller/Pin.h
index 2d15dd5c5..8762e4412 100644
--- a/shared-bindings/microcontroller/Pin.h
+++ b/shared-bindings/microcontroller/Pin.h
@@ -30,6 +30,10 @@
#include "common-hal/microcontroller/Pin.h"
#include "py/obj.h"
+#ifdef MICROPY_HW_NEOPIXEL
+extern bool neopixel_in_use;
+#endif
+
// Type object used in Python. Should be shared between ports.
extern const mp_obj_type_t mcu_pin_type;