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.

Metadata

Release files for adafruit-circuitpython-PYOA 2.6.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-PYOA 2.6.8
File Size Uploaded
adafruit_circuitpython_pyoa-2.6.8.tar.gz 7.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-PYOA 2.6.8
File Interpreter ABI Platform
adafruit_circuitpython_pyoa-2.6.8-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 MB

Release files / adafruit_circuitpython_pyoa-2.6.8.tar.gz

Download URL adafruit_circuitpython_pyoa-2.6.8.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
fdae51ba8c3fd0d78881e043d16b3f25bcad4a7f64d85612ac1e0c8ef1b19774
BLAKE2b-256 checksum
How to use checksums
c9920006bdce66548ceca6e321d29e39a6595a39eb0b054f4721ec6e8b5d58c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_pyoa-2.6.8-py3-none-any.whl

Download URL adafruit_circuitpython_pyoa-2.6.8-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37131d60c80da519e1cabe8e0625a2b6bd63629852929c63daf4a5b34db0b09a
BLAKE2b-256 checksum
How to use checksums
9bd576937390e4b943d25b43569c41b01099c6dad1eb859ac52cbfd6a87f49fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.6.8 This release

2 release files

2.6.7

2 release files

2.6.6

2 release files

2.6.5

2 release files

2.6.4

2 release files

2.6.3

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.14

2 release files

2.5.13

2 release files

2.5.12

2 release files

2.5.11

2 release files

2.5.10

2 release files

2.5.9

2 release files

2.5.8

2 release files

2.5.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page