Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

A CircuitPython ‘Choose Your Own Adventure’ framework for PyPortal.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Usage Example

import adafruit_sdcard
import storage
from adafruit_pyoa import PYOA_Graphics
import board
import digitalio

try:
    sdcard = adafruit_sdcard.SDCard(board.SPI(), digitalio.DigitalInOut(board.SD_CS))
    vfs = storage.VfsFat(sdcard)
    storage.mount(vfs, "/sd")
    print("SD card found") # no biggie
except OSError:
    print("No SD card found") # no biggie

gfx = PYOA_Graphics()

gfx.load_game("/cyoa")
current_card = 0   # start with first card

while True:
    print("Current card:", current_card)
    current_card = gfx.display_card(current_card)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_pyoa-2.6.5.tar.gz (7.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adafruit_circuitpython_pyoa-2.6.5-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file adafruit_circuitpython_pyoa-2.6.5.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_pyoa-2.6.5.tar.gz
Algorithm Hash digest
SHA256 88ba4188a4a311d1750d9c0d169f3183c4045673517ca79b4f2ecdf39892abb7
MD5 4ea6e0dd1800c02efb294da7beb739ef
BLAKE2b-256 ab9573869e755685fa1276f5821431da9de17c04cd9941239ea9625830320bbc

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_pyoa-2.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_pyoa-2.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a5f15a91fb080e990a5a6fd158cd0d58e2769533cf34090ac5a000d09721b71
MD5 479f4abfe014852b69950159890ffd7c
BLAKE2b-256 804156818ad9589d6d5a5ef4596338a05d7c99dea2170c10e03c833de930c644

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page