8000 Add CIRCUITPY_TERMINAL_SCALE settings.toml parameter by RetiredWizard · Pull Request #10099 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Add CIRCUITPY_TERMINAL_SCALE settings.toml parameter #10099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,14 @@ Example: Configure the display to 640x480 black and white (1 bit per pixel):

`Adafruit Feather RP2350 <https://circuitpython.org/board/adafruit_feather_rp2350/>`_
`Adafruit Metro RP2350 <https://circuitpython.org/board/adafruit_metro_rp2350/>`_

CIRCUITPY_TERMINAL_SCALE
~~~~~~~~~~~~~~~~~~~~~~~~
Allows the entry of a display scaling factor used during the terminalio console construction.
The entered scaling factor only affects the terminalio console and has no impact on
the UART, Web Workflow, BLE Workflow, etc consoles.

This feature is not enabled on some CircuitPython board with limited Flash, currently
this includes some of the Atmel_samd boards based on the M0 microprocessor.

`boards that the terminalio core module is available on <https://docs.circuitpython.org/en/latest/shared-bindings/terminalio/>`_
33 changes: 32 additions & 1 deletion ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,35 @@ SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_JPEGIO = 0
CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
33 changes: 33 additions & 0 deletions ports/atmel-samd/boards/feather_m0_express/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,36 @@ EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C, W25Q16JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_RAINBOWIO = 0

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
33 changes: 33 additions & 0 deletions ports/atmel-samd/boards/feather_m0_supersized/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,36 @@ CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "S25FL064L"
LONGINT_IMPL = MPZ

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
33 changes: 33 additions & 0 deletions ports/atmel-samd/boards/huntercat_nfc/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,36 @@ CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
31 changes: 31 additions & 0 deletions ports/atmel-samd/boards/itsybitsy_m0_express/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,35 @@ LONGINT_IMPL = MPZ

CIRCUITPY_BITBANG_APA102 = 1

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 0
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
34 changes: 33 additions & 1 deletion ports/atmel-samd/boards/metro_m0_express/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,37 @@ SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "S25FL216K, GD25Q16C, W25Q16JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_CODEOP = 0
CIRCUITPY_RAINBOWIO = 0

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
34 changes: 34 additions & 0 deletions ports/atmel-samd/boards/qtpy_m0_haxpress/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,39 @@ CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21

LONGINT_IMPL = MPZ

SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "GD25Q16C,W25Q16JVxQ,W25Q32FV"

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
33 changes: 33 additions & 0 deletions ports/atmel-samd/boards/snekboard/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,36 @@ CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "W25Q16JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
34 changes: 33 additions & 1 deletion ports/atmel-samd/boards/sparkfun_redboard_turbo/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,37 @@ SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "W25Q32FV"
LONGINT_IMPL = MPZ

CIRCUITPY_CODEOP = 0
CIRCUITPY_RAINBOWIO = 0

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
32 changes: 31 additions & 1 deletion ports/atmel-samd/boards/stackrduino_m0_pro/mpconfigboard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,35 @@ SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICES = "W25Q64JVxQ"
LONGINT_IMPL = MPZ

CIRCUITPY_FULL_BUILD = 0
MICROPY_PY_ASYNC_AWAIT = 1
CIRCUITPY_AESIO = 0
CIRCUITPY_ATEXIT = 1
CIRCUITPY_AUDIOBUSIO = 0
CIRCUITPY_AUDIOIO = 0
CIRCUITPY_AUDIOMP3 = 0
CIRCUITPY_BINASCII = 0
CIRCUITPY_BITBANGIO = 1
CIRCUITPY_BLEIO_HCI = 0
CIRCUITPY_BUSDEVICE = 1
CIRCUITPY_BUILTINS_POW3 = 0
CIRCUITPY_CODEOP = 0
CIRCUITPY_PARALLELDISPLAYBUS = 0
CIRCUITPY_COUNTIO = 1
CIRCUITPY_DISPLAYIO = 1
CIRCUITPY_OS_GETENV = 1
CIRCUITPY_ERRNO = 1
CIRCUITPY_FREQUENCYIO = 1
CIRCUITPY_GETPASS = 0
CIRCUITPY_I2CTARGET = 0
CIRCUITPY_JSON = 0
CIRCUITPY_KEYPAD = 0
CIRCUITPY_LOCALE = 1
CIRCUITPY_MSGPACK = 0
CIRCUITPY_OPT_MAP_LOOKUP_CACHE = 1
CIRCUITPY_PULSEIO = 1
CIRCUITPY_RE = 0
CIRCUITPY_SDCARDIO = 1
CIRCUITPY_TRACEBACK = 1
CIRCUITPY_ZLIB = 0
CIRCUITPY_ULAB = 0
CIRCUITPY_WARNINGS = 1
Loading
0