30 lines
1,013 B
C
30 lines
1,013 B
C
// This file is part of the CircuitPython project: https://circuitpython.org
|
|
//
|
|
// SPDX-FileCopyrightText: Copyright (c) 2023 Scott Shawcroft for Adafruit Industries
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "py/enum.h"
|
|
#include "py/obj.h"
|
|
#include "py/runtime.h"
|
|
|
|
#include "shared-bindings/epaperdisplay/__init__.h"
|
|
#include "shared-bindings/epaperdisplay/EPaperDisplay.h"
|
|
|
|
//| """Displays a `displayio` object tree on an e-paper display"""
|
|
|
|
static const mp_rom_map_elem_t epaperdisplay_module_globals_table[] = {
|
|
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_displayio) },
|
|
|
|
{ MP_ROM_QSTR(MP_QSTR_EPaperDisplay), MP_ROM_PTR(&epaperdisplay_epaperdisplay_type) },
|
|
};
|
|
static MP_DEFINE_CONST_DICT(epaperdisplay_module_globals, epaperdisplay_module_globals_table);
|
|
|
|
const mp_obj_module_t epaperdisplay_module = {
|
|
.base = { &mp_type_module },
|
|
.globals = (mp_obj_dict_t *)&epaperdisplay_module_globals,
|
|
};
|
|
|
|
MP_REGISTER_MODULE(MP_QSTR_epaperdisplay, epaperdisplay_module);
|