Skip to content

Commit 116c7b5

Browse files
committed
correct douplex example
1 parent c393452 commit 116c7b5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/i2s-outin/i2s-outin.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ void writeToReceive(uint8_t *data, uint16_t byteCount) {
2020

2121
void setup() {
2222
Serial.begin(115200);
23-
sineWave.begin(channels, sample_rate, N_B4);
2423
i2s_settings.sample_rate =I2S_AUDIOFREQ_44K;
2524
if (!startI2STransmitReceive(&i2s_settings, readToTransmit, writeToReceive, I2S_BUFFER_SIZE)){
2625
Serial.println("I2S Error");
2726
return;
2827
}
29-
3028
}
3129

3230
void loop() {

src/stm32f4xx_hal_msp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extern DMA_HandleTypeDef hdma_spi3_tx;
5858

5959
/* External functions --------------------------------------------------------*/
6060
/* USER CODE BEGIN ExternalFunctions */
61+
void Error_Handler(void);
6162

6263
/* USER CODE END ExternalFunctions */
6364

0 commit comments

Comments
 (0)