Skip to content

Commit 2c6781f

Browse files
committed
move neopixel_in_use flag to shared-bindings
1 parent 8ff1bc0 commit 2c6781f

File tree

3 files changed

+4
-6
lines changed
  • ports
    • atmel-samd/common-hal/microcontroller
    • nrf/common-hal/microcontroller
  • shared-bindings/microcontroller

3 files changed

+4
-6
lines changed

ports/atmel-samd/common-hal/microcontroller/Pin.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131

3232
#include "peripherals/samd/pins.h"
3333

34-
#ifdef MICROPY_HW_NEOPIXEL
35-
extern bool neopixel_in_use;
36-
#endif
3734
#ifdef MICROPY_HW_APA102_MOSI
3835
extern bool apa102_sck_in_use;
3936
extern bool apa102_mosi_in_use;

ports/nrf/common-hal/microcontroller/Pin.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131

3232
#include "peripherals/nrf/pins.h"
3333

34-
#ifdef MICROPY_HW_NEOPIXEL
35-
extern bool neopixel_in_use;
36-
#endif
3734
#ifdef MICROPY_HW_APA102_MOSI
3835
extern bool apa102_sck_in_use;
3936
extern bool apa102_mosi_in_use;

shared-bindings/microcontroller/Pin.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
#include "common-hal/microcontroller/Pin.h"
3131
#include "py/obj.h"
3232

33+
#ifdef MICROPY_HW_NEOPIXEL
34+
extern bool neopixel_in_use;
35+
#endif
36+
3337
// Type object used in Python. Should be shared between ports.
3438
extern const mp_obj_type_t mcu_pin_type;
3539

0 commit comments

Comments
 (0)