Skip to content

Commit

Permalink
update echo record example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitshaoxiang committed Oct 24, 2023
1 parent f89aa5d commit 00f5a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Echo/RecordPlay/RecordPlay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define MODE_SPK 1
#define DATA_SIZE 1024

uint8_t microphonedata0[1024 * 80];
uint8_t microphonedata0[1024 * 70];
int data_offset = 0;

void InitI2SSpeakerOrMic(int mode) {
Expand Down Expand Up @@ -83,7 +83,7 @@ void loop() {
&byte_read, (100 / portTICK_RATE_MS));
data_offset += 1024;
M5.update();
if (M5.Btn.isReleased()) break;
if (M5.Btn.isReleased() || data_offset >= 71679) break;
// delay(60);
}
size_t bytes_written;
Expand Down

0 comments on commit 00f5a14

Please sign in to comment.