No description
Find a file
sam blenny 71294d0145 first pass at volume control overhaul
This commit makes several interrelated changes at once:
1. There's a new lookup table based dB to int7 conversion mechansim
   for the analog volume setting properties (based on Table 6-24)
2. Major docs comment revisions for properties involved in DAC
   volume, speaker volume, headphone volume, speaker gain, and
   headphone gain
3. Added "_" prefix to private helper classes to stop them from
   cluttering up the Sphinx html docs build
4. Merged setter & getter comments into the setter comment for
   the properties I modified. NOTE: Sphinx does not render docs
   comments on property setters!
4. Assorted small-ish revisions to exception handling and
   arguments (convert SPK_GAIN_* constants to dB) to resolve
   inconsistent or surprising behavior discovered while revising
   docs comments

Overall, the goals here are:
1. Make volume setting implementation work and be non-surprising
2. Document how it works
3. Make the TLV320 html docs more readable and complete. A lot of
   the docs comment info wasn't making it through into the html
   docs build because Sphinx ignores setter comments.

The comments build fine, but it's possible the code has errors.
Saving that testing for another day.
2025-08-24 09:44:50 +00:00
.github
docs
examples add hardware reset to examples 2025-05-07 16:41:25 -04:00
LICENSES
.gitignore
.pre-commit-config.yaml
.readthedocs.yaml
adafruit_tlv320.py first pass at volume control overhaul 2025-08-24 09:44:50 +00:00
CODE_OF_CONDUCT.md
LICENSE
optional_requirements.txt
pyproject.toml
README.rst precommit 2025-05-07 16:44:39 -04:00
README.rst.license
requirements.txt
ruff.toml

SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
SPDX-FileCopyrightText: Copyright (c) 2025 Liz Clark for Adafruit Industries
SPDX-License-Identifier: MIT