Skip to content

Conversation

RetiredWizard
Copy link
Contributor

This Updates both the Larsio_Paint_Music and Chip's Challenge learning guides.

This PR adds the logic necessary to read a json configuration file (launcher.conf.json, if it exists in either the current or root folders) which has an option to direct the DAC audio output to the Speaker connection rather than the default headphones. This replicates the parameter added to the Fruit Jam OS boot_animation via adafruit/Fruit-Jam-OS#49.

The Json syntax for the parameter is as follows:

{
    "sound": "speaker"
}

If the launcher.conf.json file is not found, the parameter is not found in the file or it is not set to "speaker" the programs will fall back to the default headphones output option. The Chip's Challenge program has an additional option of "mute" which will disable the audio output potentially avoiding a crash is no audio hardware is available.

Copy link
Collaborator

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

A few more questions.

@FoamyGuy
Copy link
Collaborator

For any audio related Fruit Jam OS / apps PRs I think we will want to use the APIs introduced in adafruit/Adafruit_CircuitPython_FruitJam#13 once it's merged.

@RetiredWizard
Copy link
Contributor Author

For any audio related Fruit Jam OS / apps PRs I think we will want to use the APIs introduced in adafruit/Adafruit_CircuitPython_FruitJam#13 once it's merged.

I've updated this with the API you mentioned, let me know if this is what you were looking for. 😁

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