Expand description
Component for ADC Microphone
§Usage
let adc_microphone = components::adc_microphone::AdcMicrophoneComponent::new(
adc_mux,
nrf52833::adc::AdcChannelSetup::setup(
nrf52833::adc::AdcChannel::AnalogInput3,
nrf52833::adc::AdcChannelGain::Gain4,
nrf52833::adc::AdcChannelResistor::Bypass,
nrf52833::adc::AdcChannelResistor::Pulldown,
nrf52833::adc::AdcChannelSamplingTime::us3,
),
Some(&nrf52833_peripherals.gpio_port[LED_MICROPHONE_PIN]),
)
.finalize(components::adc_microphone_component_static!(
// adc
nrf52833::adc::Adc,
// buffer size
50,
// gpio
nrf52833::gpio::GPIOPin
));