From 8fa81fe00317ec6cda286476b8cea5f0e3dba43a Mon Sep 17 00:00:00 2001 From: Roy Hooper Date: Sat, 19 Jan 2019 17:03:16 -0500 Subject: [PATCH] move headers to __init__.h --- shared-bindings/_pixelbuf/PixelBuf.h | 4 ---- shared-bindings/_pixelbuf/__init__.h | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/shared-bindings/_pixelbuf/PixelBuf.h b/shared-bindings/_pixelbuf/PixelBuf.h index b35e3ff908..0b1e362783 100644 --- a/shared-bindings/_pixelbuf/PixelBuf.h +++ b/shared-bindings/_pixelbuf/PixelBuf.h @@ -53,8 +53,4 @@ typedef struct { void pixelbuf_recalculate_brightness(pixelbuf_pixelbuf_obj_t *self); void call_write_function(pixelbuf_pixelbuf_obj_t *self); - -#include "common-hal/digitalio/DigitalInOut.h" -extern void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* gpio, uint8_t *pixels, uint32_t numBytes); - #endif // CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H diff --git a/shared-bindings/_pixelbuf/__init__.h b/shared-bindings/_pixelbuf/__init__.h index 5049ea38d2..a62d67c4a4 100644 --- a/shared-bindings/_pixelbuf/__init__.h +++ b/shared-bindings/_pixelbuf/__init__.h @@ -27,9 +27,11 @@ #ifndef CP_SHARED_BINDINGS_PIXELBUF_INIT_H #define CP_SHARED_BINDINGS_PIXELBUF_INIT_H +#include "common-hal/digitalio/DigitalInOut.h" + STATIC void pixelbuf_byteorder_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind); const int32_t colorwheel(float pos); - const mp_obj_type_t pixelbuf_byteorder_type; +extern void common_hal_neopixel_write(const digitalio_digitalinout_obj_t* gpio, uint8_t *pixels, uint32_t numBytes); #endif //CP_SHARED_BINDINGS_PIXELBUF_INIT_H