adafruit_pyoa
¶
A CircuitPython ‘Choose Your Own Adventure’ framework for PyPortal.
Author(s): Adafruit
Implementation Notes¶
Hardware:
PyPortal Pynt https://www.adafruit.com/product/4465
PyPortal Titano https://www.adafruit.com/product/4444
HalloWing M4 https://www.adafruit.com/product/4300
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
- class adafruit_pyoa.PYOA_Graphics¶
A choose your own adventure game framework.
- backlight_fade(to_light: float) None ¶
Adjust the TFT backlight. Fade from the current value to the
to_light
value- Parameters:
to_light (float) – the desired backlight brightness between
0.0
and1.0
.
- load_game(game_directory: str) None ¶
Load a game.
- Parameters:
game_directory (str) – where the game files are stored
- play_sound(filename: str | None, *, wait_to_finish: bool = True, loop: bool = False) None ¶
Play a sound
- set_background(filename: str | None, *, with_fade: bool = True) None ¶
The background image to a bitmap file.
- set_text(text: str | None, color: str | None, background_color: int | None = None) None ¶
Display the test for a card.