adafruit_bd3491fs

CircuitPython library for the Rohm BD3491FS Audio Processor

  • Author(s): Bryan Siepert

Implementation Notes

Hardware:

Software and Dependencies:

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 Input

This 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
property input_gain: int

The gain applied to all inputs equally

This example sets the input gain to 10dB.

bd3491fs.input_gain = adafruit_bd3491fs.Level.10_DB
reset() None

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_input

Input

Input Pair

Input.A

Inputs A1 and A2

Input.B

Inputs B1 and B2

Input.C

Inputs C1 and C2

Input.D

Inputs D1 and D2

Input.E

Inputs E1 and E2

Input.F

Inputs F1 and F2

Input.SHORT

Short inputs

Input.MUTE

Mute all

class adafruit_bd3491fs.Level

Options for imput_gain

Level

Value

Level.LEVEL_0DB

0dB

Level.LEVEL_2DB

2dB

Level.LEVEL_4DB

4dB

Level.LEVEL_6DB

6dB

Level.LEVEL_8DB

8dB

Level.LEVEL_10DB

10dB

Level.LEVEL_12DB

12dB

Level.LEVEL_14DB

14dB

Level.LEVEL_16DB

16dB

Level.LEVEL_20DB

20dB