move to _pixelmap

This commit is contained in:
foamyguy 2022-11-24 09:07:08 -06:00
parent e5ea1d2247
commit 57d7f7f2ad
8 changed files with 12 additions and 12 deletions

View File

@ -267,7 +267,7 @@ ifeq ($(CIRCUITPY_PIXELBUF),1)
SRC_PATTERNS += adafruit_pixelbuf/%
endif
ifeq ($(CIRCUITPY_PIXELMAP),1)
SRC_PATTERNS += adafruit_pixelmap/%
SRC_PATTERNS += _pixelmap/%
endif
ifeq ($(CIRCUITPY_QRIO),1)
SRC_PATTERNS += qrio/%
@ -546,8 +546,8 @@ SRC_SHARED_MODULE_ALL = \
_eve/__init__.c \
adafruit_pixelbuf/PixelBuf.c \
adafruit_pixelbuf/__init__.c \
adafruit_pixelmap/PixelMap.c \
adafruit_pixelmap/__init__.c \
_pixelmap/PixelMap.c \
_pixelmap/__init__.c \
_stage/Layer.c \
_stage/Text.c \
_stage/__init__.c \

View File

@ -29,9 +29,9 @@
#include "py/objtype.h"
#include "py/runtime.h"
#include "shared-bindings/adafruit_pixelmap/PixelMap.h"
#include "shared-bindings/_pixelmap/PixelMap.h"
#include "shared-bindings/adafruit_pixelbuf/PixelBuf.h"
#include "shared-module/adafruit_pixelmap/PixelMap.h"
#include "shared-module/_pixelmap/PixelMap.h"
//| from adafruit_pixelbuf import PixelBuf, PixelReturnType, PixelSequence, PixelType
//|

View File

@ -29,13 +29,13 @@
#include "py/runtime.h"
#include "py/objproperty.h"
#include "shared-bindings/adafruit_pixelmap/__init__.h"
#include "shared-bindings/adafruit_pixelmap/PixelMap.h"
#include "shared-bindings/_pixelmap/__init__.h"
#include "shared-bindings/_pixelmap/PixelMap.h"
//| """A fast pixel mapping library
//|
//| The `adafruit_pixelmap` module provides the :py:class:`PixelMap` class to accelerate
//| The `_pixelmap` module provides the :py:class:`PixelMap` class to accelerate
//| RGB(W) strip/matrix manipulation, such as DotStar and Neopixel."""
//|
//| # The types accepted when getting a pixel value
@ -48,7 +48,7 @@
//| PixelSequence = Union[Tuple[PixelType], List[PixelType]]
STATIC const mp_rom_map_elem_t pixelmap_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_adafruit_pixelmap) },
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR__pixelmap) },
{ MP_ROM_QSTR(MP_QSTR_PixelMap), MP_ROM_PTR(&pixelmap_pixelmap_type) },
};
@ -59,4 +59,4 @@ const mp_obj_module_t pixelmap_module = {
.globals = (mp_obj_dict_t *)&pixelmap_module_globals,
};
MP_REGISTER_MODULE(MP_QSTR_adafruit_pixelmap, pixelmap_module, CIRCUITPY_PIXELMAP);
MP_REGISTER_MODULE(MP_QSTR__pixelmap, pixelmap_module, CIRCUITPY_PIXELMAP);

View File

@ -28,9 +28,9 @@
#include "py/smallint.h"
#include "py/runtime.h"
#include "shared-bindings/adafruit_pixelmap/PixelMap.h"
#include "shared-bindings/_pixelmap/PixelMap.h"
#include "shared-bindings/adafruit_pixelbuf/PixelBuf.h"
#include "shared-module/adafruit_pixelmap/PixelMap.h"
#include "shared-module/_pixelmap/PixelMap.h"
static void pixelmap_set_pixel_rgbw(pixelmap_pixelmap_obj_t *self, size_t i, color_u rgbw) {