Skip to content

Commit 81223c7

Browse files
committed
revert error
1 parent 2c6781f commit 81223c7

File tree

3 files changed

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

3 files changed

+6
-4
lines changed

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

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

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

34+
#ifdef MICROPY_HW_NEOPIXEL
35+
extern bool neopixel_in_use;
36+
#endif
3437
#ifdef MICROPY_HW_APA102_MOSI
3538
extern bool apa102_sck_in_use;
3639
extern bool apa102_mosi_in_use;

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

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

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

34+
#ifdef MICROPY_HW_NEOPIXEL
35+
extern bool neopixel_in_use;
36+
#endif
3437
#ifdef MICROPY_HW_APA102_MOSI
3538
extern bool apa102_sck_in_use;
3639
extern bool apa102_mosi_in_use;

shared-bindings/microcontroller/Pin.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
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-
3733
// Type object used in Python. Should be shared between ports.
3834
extern const mp_obj_type_t mcu_pin_type;
3935

0 commit comments

Comments
 (0)