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)¶ Driver for the Rohm BD3491FS audio processor
Parameters: i2c_bus (I2C) – The I2C bus the BD3491FS is connected to. -
active_input¶ The currently selected input. Must be an
InputThis example sets A1 and A2 to the active input pair. .. code-block:: python bd3491fs.active_input = adafruit_bd3491fs.Input.A
-
channel_1_attenuation¶ 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. .. code-block:: python bd3491fs.channel_1_attenuation = 10””
-
channel_2_attenuation¶ 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. .. code-block:: python bd3491fs.channel_2_attenuation = 10””
-
input_gain¶ The gain applied to all inputs equally” This example sets the input gain to 10dB. .. code-block:: python bd3491fs.input_gain = adafruit_bd3491fs.Level.10_DB””
-
reset()¶ Reset the sensor, muting the input, reducting input gain to 0dB, and the output channnel attenuation to maximum
-
-
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