Move terminal font to terminalio from board.
This commit is contained in:
parent
5258bc4318
commit
b4306314aa
@ -1,7 +1,6 @@
|
||||
#include "shared-bindings/board/__init__.h"
|
||||
|
||||
#include "supervisor/shared/board_busses.h"
|
||||
#include "supervisor/shared/display.h"
|
||||
|
||||
// This mapping only includes functional names because pins broken
|
||||
// out on connectors are labeled with their MCU name available from
|
||||
@ -132,7 +131,5 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
||||
|
||||
{ MP_ROM_QSTR(MP_QSTR_TERMINAL_FONT), MP_ROM_PTR(&supervisor_terminal_font) },
|
||||
};
|
||||
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include "shared-bindings/terminalio/__init__.h"
|
||||
#include "shared-bindings/terminalio/Terminal.h"
|
||||
#include "supervisor/shared/display.h"
|
||||
|
||||
#include "py/runtime.h"
|
||||
|
||||
@ -40,7 +41,8 @@
|
||||
//| .. module:: terminalio
|
||||
//| :synopsis: Displays text in a TileGrid
|
||||
//|
|
||||
//| The `terminalio` module contains classes to display a character stream on a display
|
||||
//| The `terminalio` module contains classes to display a character stream on a display. The built
|
||||
//| in font is available as ``terminalio.FONT``.
|
||||
//|
|
||||
//| Libraries
|
||||
//|
|
||||
@ -53,6 +55,7 @@
|
||||
STATIC const mp_rom_map_elem_t terminalio_module_globals_table[] = {
|
||||
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_terminalio) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_Terminal), MP_OBJ_FROM_PTR(&terminalio_terminal_type) },
|
||||
{ MP_ROM_QSTR(MP_QSTR_FONT), MP_ROM_PTR(&supervisor_terminal_font) },
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user