Core2 for AWS IoT EduKit BSP 1.5.1
Macros | Functions
microphone.c File Reference
#include "freertos/FreeRTOS.h"
#include "esp_idf_version.h"
#include "driver/i2s.h"
#include "driver/gpio.h"
#include "microphone.h"

Macros

#define I2S_LRCK_PIN   0
 
#define I2S_DATA_IN_PIN   34
 

Functions

void Microphone_Init ()
 Initializes the microphone over I2S. More...
 
void Microphone_Deinit ()
 De-initializes the microphone over I2S. More...
 

Macro Definition Documentation

◆ I2S_LRCK_PIN

#define I2S_LRCK_PIN   0

◆ I2S_DATA_IN_PIN

#define I2S_DATA_IN_PIN   34

Function Documentation

◆ Microphone_Init()

void Microphone_Init ( )

Initializes the microphone over I2S.

Note
The microphone cannot be enabled at the same time as the speaker since they both share a common pin (GPIO0). Attempting to enable and use both at the same time will cause the device to hard fault.

◆ Microphone_Deinit()

void Microphone_Deinit ( )

De-initializes the microphone over I2S.