MCPcopy Create free account
hub / github.com/FastLED/FastLED / CreateGenericMEMS

Method CreateGenericMEMS

src/fl/audio/input.h:176–185  ·  view source on GitHub ↗

Generic I2S MEMS microphone (applies average MEMS correction).

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMicProfileMethod · 0.45

Tested by

no test coverage detected