API Reference
adafruit_bd3491fs
CircuitPython library for the Rohm BD3491FS Audio Processor
Author(s): Bryan Siepert
Implementation Notes
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://github.com/adafruit/circuitpython/releases
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
- class adafruit_bd3491fs.BD3491FS(i2c_bus: I2C)
Driver for the Rohm BD3491FS audio processor
- Parameters:
i2c_bus (I2C) – The I2C bus the BD3491FS is connected to.
- property active_input: int
The currently selected input. Must be an
InputThis example sets A1 and A2 to the active input pair.
bd3491fs.active_input = adafruit_bd3491fs.Input.A
- property channel_1_attenuation: int
The attenuation applied to channel 1 of the currently selected input pair in -dB. Maximum is -87dB. To mute set to 255.
This example sets the attenuation for input channel 1 to -10dB.
bd3491fs.channel_1_attenuation = 10
- property channel_2_attenuation: int
The attenuation applied to channel 2 of the currently selected input pair in -dB. Maximum is -87dB. To mute set to 255.
This example sets the attenuation for input channel 2 to -10dB.
bd3491fs.channel_2_attenuation = 10
- class adafruit_bd3491fs.Input
Options for
active_inputInputInput Pair
Input.AInputs A1 and A2
Input.BInputs B1 and B2
Input.CInputs C1 and C2
Input.DInputs D1 and D2
Input.EInputs E1 and E2
Input.FInputs F1 and F2
Input.SHORTShort inputs
Input.MUTEMute all
- class adafruit_bd3491fs.Level
Options for
imput_gainLevelValue
Level.LEVEL_0DB0dB
Level.LEVEL_2DB2dB
Level.LEVEL_4DB4dB
Level.LEVEL_6DB6dB
Level.LEVEL_8DB8dB
Level.LEVEL_10DB10dB
Level.LEVEL_12DB12dB
Level.LEVEL_14DB14dB
Level.LEVEL_16DB16dB
Level.LEVEL_20DB20dB