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.4.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.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_pyoa-2.6.4.tar.gz
Algorithm Hash digest
SHA256 3f5400b39bdd783cdeb8209575a5dea728843950c5da36f571229d85e019a550
MD5 9afcbb6b3f42c40489ae292d7619fd9b
BLAKE2b-256 1e3953861690785e5cd60155a61287da5832f4119942edc10fa0c86d24abca29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_pyoa-2.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54f4a07c5b0e41f48fb2b4918e877cd953813035309ed2dae38805fc1d0eae42
MD5 92df58226ab3e6bb08157fa1ede7c35a
BLAKE2b-256 171f381d7710440235559798bb4ab63a82950e6ad823e0055e01b5d7d93f9f56

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