Skip to content

ASCII Bell support and Fruit Jam example #2

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 4 commits into from
Jul 9, 2025

Conversation

FoamyGuy
Copy link
Contributor

@FoamyGuy FoamyGuy commented Jul 9, 2025

Added optional support for ASCII bell escape "\x07" To enable it user code must pass an initialized audio_interface to the ColorTerminal constructor, it can also optionally pass custom wave file to use for the sound.

Also added a new Fruit Jam specific example with resolution for #1 in it. I think that in the example code is the best place to do this check rather than the library itself because ColorTerminal an be used with other types of displays as well and on different hardware which is may not support the adafruit_fruitjam library. In the new Fruit Jam example it checks the color depth and if it's too low warns the user before requesting a default size and color depth of 640x480 and 8.

One more new example illustrates how to use the ASCII bell functionality with Fruit Jam using the builtin DAC with headphone out via the adafruit_fruitjam library.

@FoamyGuy FoamyGuy merged commit f151346 into adafruit:main Jul 9, 2025
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 18, 2025
Updating https://github.com/adafruit/Adafruit_CircuitPython_Color_Terminal to 0.2.0 from 0.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Color_Terminal#2 from FoamyGuy/bell_and_fruitjam_example

Updating https://github.com/adafruit/Adafruit_CircuitPython_FruitJam to 0.3.0 from 0.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_FruitJam#4 from FoamyGuy/color_depth_support
  > Merge pull request adafruit/Adafruit_CircuitPython_FruitJam#3 from adafruit/TheKitty-patch-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy