Fix tetris

This commit is contained in:
2024-08-10 00:27:14 -05:00
parent 65203c309f
commit 005976cfb1
4 changed files with 84 additions and 45 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ esp_err_t play_raw(const char *fp) {
bytes_read = fread(read_buf, sizeof(uint8_t), AUDIO_BUFFER, fh);
for (int i = 0; i < bytes_read; i++) {
write_buf[i] = read_buf[i];
write_buf[i] = read_buf[i] << 4;
}
// i2s_channel_enable(tx_handle);
@@ -39,7 +39,7 @@ esp_err_t play_raw(const char *fp) {
for (int i = 0; i < bytes_read; i++) {
write_buf[i] = read_buf[i] << 4;
}
ESP_LOGV(TAG, "Bytes read: %d", bytes_read);
vTaskDelay(pdMS_TO_TICKS(10));
}
i2s_channel_disable(tx_chan);