Generic I2S MEMS microphone (applies average MEMS correction).
| 174 | |
| 175 | // Generic I2S MEMS microphone (applies average MEMS correction). |
| 176 | static Config CreateGenericMEMS(int pin_ws, int pin_sd, int pin_clk, |
| 177 | AudioChannel channel, |
| 178 | u16 sample_rate = 44100ul, |
| 179 | int i2s_num = 0) FL_NOEXCEPT { |
| 180 | ConfigI2S config(pin_ws, pin_sd, pin_clk, i2s_num, channel, sample_rate, |
| 181 | 16); |
| 182 | Config out(config); |
| 183 | out.setMicProfile(MicProfile::GenericMEMS); |
| 184 | return out; |
| 185 | } |
| 186 | |
| 187 | // Factory method for Teensy I2S microphones (INMP441, ICS43432, |
| 188 | // SPH0645LM4H, etc.) Teensy uses fixed hardware pins - see TeensyI2S |
nothing calls this directly
no test coverage detected