Skip to content

Conversation

FoamyGuy
Copy link
Contributor

peripherals.volume is updated to use a float value 0.0 to 1.0 instead of int value 1-20.

The 3 examples in this repo that make use of volume are updated to use new values.

The new safe volume limit is a little bit higher relative to the old one, was 12/20 is now 0.75.

I'm opening this PR as a draft to start because there are updates needed in Fruit Jam OS and a few of the apps / games that are included from the Learn repo. I'll submit PRs for those changes as well, and convert all of them out of draft once ready. I also have some tweaks to the default volume level that is set by TLV320 library that I will submit with these PRs.

@FoamyGuy FoamyGuy marked this pull request as draft September 16, 2025 21:37
def volume(self) -> int:
def volume(self) -> float:
"""
The volume level of the Fruit Jam audio output. Valid values are 1-20.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment needs updating to use 0.0 - 1.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. This is fixed in the latest commit.

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.

2 participants