summaryrefslogtreecommitdiff
path: root/ports/stm32f4/common-hal/microcontroller/Pin.h
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2019-11-18 23:45:09 -0500
committerGitHub <noreply@github.com>2019-11-18 23:45:09 -0500
commit1a22d8a0f23aa9aee426b8716220d907f9cb98d6 (patch)
tree71c406bfc4c3fb4c7edfc9639fcc7936d4501a47 /ports/stm32f4/common-hal/microcontroller/Pin.h
parent41aa2145891ee564b6349d3cd93b3fba415e35ee (diff)
parenta4797327cd4ea9fd53e00bf2ecfc82c30e413cec (diff)
Merge pull request #2291 from hierophect/stm32-neopixel5.0.0-beta.0
STM32: Neopixel support
Diffstat (limited to 'ports/stm32f4/common-hal/microcontroller/Pin.h')
-rw-r--r--ports/stm32f4/common-hal/microcontroller/Pin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ports/stm32f4/common-hal/microcontroller/Pin.h b/ports/stm32f4/common-hal/microcontroller/Pin.h
index 0c3fb375f..c4c9be6a8 100644
--- a/ports/stm32f4/common-hal/microcontroller/Pin.h
+++ b/ports/stm32f4/common-hal/microcontroller/Pin.h
@@ -31,6 +31,14 @@
#include "peripherals/stm32f4/pins.h"
+#ifdef MICROPY_HW_NEOPIXEL
+extern bool neopixel_in_use;
+#endif
+#ifdef MICROPY_HW_APA102_MOSI
+extern bool apa102_sck_in_use;
+extern bool apa102_mosi_in_use;
+#endif
+
void reset_all_pins(void);
// reset_pin_number takes the pin number instead of the pointer so that objects don't
// need to store a full pointer.