Skip to content

Commit b874d35

Browse files
committed
font: move the font data to the top: not really a Module
Also remove the font.h file, we use .py instead.
1 parent 8246080 commit b874d35

9 files changed

+1
-15
lines changed
10.5 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

modules/display.c

-11
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@
2727
#include "py/runtime.h"
2828
#include "py/mperrno.h"
2929

30-
uint8_t font_data[] = {
31-
#include "modules/font/ShareTechMonoBitmap-Regular-64.h"
32-
};
33-
34-
STATIC mp_obj_t get_font_data(void)
35-
{
36-
return mp_obj_new_bytes(font_data, sizeof(font_data));
37-
}
38-
STATIC MP_DEFINE_CONST_FUN_OBJ_0(get_font_data_obj, &get_font_data);
39-
4030
STATIC mp_obj_t display_brightness(mp_obj_t brightness)
4131
{
4232
int tab[] = {
@@ -62,7 +52,6 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(display_brightness_obj, &display_brightness);
6252

6353
STATIC const mp_rom_map_elem_t display_module_globals_table[] = {
6454
{MP_ROM_QSTR(MP_QSTR_brightness), MP_ROM_PTR(&display_brightness_obj)},
65-
{MP_ROM_QSTR(MP_QSTR_get_font_data), MP_ROM_PTR(&get_font_data_obj)},
6655
};
6756
STATIC MP_DEFINE_CONST_DICT(display_module_globals, display_module_globals_table);
6857

-24.7 KB
Binary file not shown.

modules/font/ShareTechMonoBitmap-Regular-64.h

-2
This file was deleted.

modules/font_ShareTechMonoBitmap_Regular_64.py

+1-2
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)