move neopixel_in_use flag to shared-bindings
This commit is contained in:
parent
8ff1bc0132
commit
2c6781f74d
|
@ -31,9 +31,6 @@
|
|||
|
||||
#include "peripherals/samd/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;
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
|
||||
#include "peripherals/nrf/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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue