File tree Expand file tree Collapse file tree
ports/atmel-samd/boards/grandcentral_m4_express
shared-bindings/terminalio Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#include "shared-bindings/board/__init__.h"
22
33#include "supervisor/shared/board_busses.h"
4- #include "supervisor/shared/display.h"
54
65// This mapping only includes functional names because pins broken
76// 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[] = {
132131 { MP_ROM_QSTR (MP_QSTR_I2C ), MP_ROM_PTR (& board_i2c_obj ) },
133132 { MP_ROM_QSTR (MP_QSTR_SPI ), MP_ROM_PTR (& board_spi_obj ) },
134133 { MP_ROM_QSTR (MP_QSTR_UART ), MP_ROM_PTR (& board_uart_obj ) },
135-
136- { MP_ROM_QSTR (MP_QSTR_TERMINAL_FONT ), MP_ROM_PTR (& supervisor_terminal_font ) },
137134};
138135MP_DEFINE_CONST_DICT (board_module_globals , board_global_dict_table );
Original file line number Diff line number Diff line change 3131
3232#include "shared-bindings/terminalio/__init__.h"
3333#include "shared-bindings/terminalio/Terminal.h"
34+ #include "supervisor/shared/display.h"
3435
3536#include "py/runtime.h"
3637
4041//| .. module:: terminalio
4142//| :synopsis: Displays text in a TileGrid
4243//|
43- //| The `terminalio` module contains classes to display a character stream on a display
44+ //| The `terminalio` module contains classes to display a character stream on a display. The built
45+ //| in font is available as ``terminalio.FONT``.
4446//|
4547//| Libraries
4648//|
5355STATIC const mp_rom_map_elem_t terminalio_module_globals_table [] = {
5456 { MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_terminalio ) },
5557 { MP_ROM_QSTR (MP_QSTR_Terminal ), MP_OBJ_FROM_PTR (& terminalio_terminal_type ) },
58+ { MP_ROM_QSTR (MP_QSTR_FONT ), MP_ROM_PTR (& supervisor_terminal_font ) },
5659};
5760
5861
You can’t perform that action at this time.
0 commit comments