Skip to content

TheStaticTurtle/CircuitPython_TPA6130A2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircuitPython_TPA6130A2

Library to control the tpa6130a2 headphone amplifier

https://www.ti.com/lit/ds/symlink/tpa6130a2.pdf

Usage Example

import i2c
from tpa6130a2 import TPA6130A2
import board
import busio

i2c = busio.I2C(board.GP1, board.GP0)
tpa = TPA6130A2(i2c)

tpa.soft_shutdown(False) # Turn the ship on, the hardware pin bypasses the software shutdown
tpa.set_mute(False, False) # Disable the mute flags on the left and right speakers
tpa.set_mode(TPA6130A2.MODE_STEREO) #Set it to use stereo
tpa.set_volume(0b110101) # set the volume 0-63

About

Library to control the tpa6130a2 headphone amplifier

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages