Skip to content

Commit b907fcd

Browse files
author
EternityFOR
committed
ADD I2S Car Engine sound when accelerating
1 parent cdb110a commit b907fcd

File tree

23 files changed

+1340
-15460
lines changed

23 files changed

+1340
-15460
lines changed

Self_Balance_Car_ESP32S3_N8R8/.vscode/settings.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"C_Cpp.intelliSenseEngine": "default",
33
"idf.flashType": "UART",
44
"idf.adapterTargetName": "esp32s3",
5-
"idf.portWin": "COM6",
5+
"idf.portWin": "COM16",
66
"files.associations": {
77
"system_error": "c",
88
"array": "c",
@@ -16,14 +16,14 @@
1616
"interface/ftdi/esp32_devkitj_v1.cfg",
1717
"target/esp32s3.cfg"
1818
],
19-
"idf.espIdfPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3\\esp-idf",
20-
"idf.pythonBinPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\python_env\\idf5.0_py3.11_env\\Scripts\\python.exe",
21-
"idf.toolsPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL",
22-
"idf.customExtraPaths": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp-elf-gdb\\11.2_20220823\\xtensa-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\riscv32-esp-elf-gdb\\11.2_20220823\\riscv32-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32-elf\\esp-2022r1-11.2.0\\xtensa-esp32-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32s2-elf\\esp-2022r1-11.2.0\\xtensa-esp32s2-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\xtensa-esp32s3-elf\\esp-2022r1-11.2.0\\xtensa-esp32s3-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\riscv32-esp-elf\\esp-2022r1-11.2.0\\riscv32-esp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp32ulp-elf\\2.35_20220830\\esp32ulp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\cmake\\3.24.0\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20230419\\openocd-esp32\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\ninja\\1.10.2;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\idf-exe\\1.0.3;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\ccache\\4.6.2\\ccache-4.6.2-windows-x86_64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\dfu-util\\0.9\\dfu-util-0.9-win64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp-rom-elfs\\20220823",
19+
"idf.espIdfPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1\\v5.3.1\\esp-idf",
20+
"idf.pythonBinPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\python_env\\idf5.3_py3.11_env\\Scripts\\python.exe",
21+
"idf.toolsPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL",
22+
"idf.customExtraPaths": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\xtensa-esp-elf-gdb\\14.2_20240403\\xtensa-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\riscv32-esp-elf-gdb\\14.2_20240403\\riscv32-esp-elf-gdb\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\xtensa-esp-elf\\esp-13.2.0_20240530\\xtensa-esp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\riscv32-esp-elf\\esp-13.2.0_20240530\\riscv32-esp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\esp32ulp-elf\\2.38_20240113\\esp32ulp-elf\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\cmake\\3.24.0\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20240318\\openocd-esp32\\bin;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\ninja\\1.11.1;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\idf-exe\\1.0.3;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\ccache\\4.8\\ccache-4.8-windows-x86_64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\dfu-util\\0.11\\dfu-util-0.11-win64;d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\esp-rom-elfs\\20240305",
2323
"idf.customExtraVars": {
24-
"OPENOCD_SCRIPTS": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20230419/openocd-esp32/share/openocd/scripts",
24+
"OPENOCD_SCRIPTS": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\openocd-esp32\\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts",
2525
"IDF_CCACHE_ENABLE": "1",
26-
"ESP_ROM_ELF_DIR": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\esp-rom-elfs\\20220823/"
26+
"ESP_ROM_ELF_DIR": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\esp-rom-elfs\\20240305/"
2727
},
28-
"idf.gitPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.0.3_TOOL\\tools\\idf-git\\2.39.2\\cmd\\git.exe"
28+
"idf.gitPathWin": "d:\\1.Software\\ESPRESSIF\\ESPIDF5.3.1_TOOL\\tools\\idf-git\\2.39.2\\cmd\\git.exe"
2929
}

Self_Balance_Car_ESP32S3_N8R8/components/WIFI/wifi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ static void http_weather_task(void *pvParameters) {
143143
.action = 0,
144144
.weatherData = ""
145145
};
146-
if (weather_time_Data.weatherData != NULL) {
147-
strcpy(weather_time_Data.weatherData, global_json_data);
148-
}
146+
strcpy(weather_time_Data.weatherData, global_json_data);
149147
ESP_LOGI(TAG, "Global JSON data: %s", global_json_data);
150148
if (xQueueSend(msg_queue, &weather_time_Data, portMAX_DELAY) != pdPASS) {
151149
ESP_LOGE(TAG, "Failed to send weather_time data to queue");

Self_Balance_Car_ESP32S3_N8R8/debug.log

Lines changed: 0 additions & 3 deletions
This file was deleted.
Binary file not shown.
-4.06 MB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
idf_component_register(SRCS "main.c"
2-
INCLUDE_DIRS "include")
2+
INCLUDE_DIRS "include"
3+
EMBED_TXTFILES ${project_dir}/sound_test/car_2.raw)
34
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")

0 commit comments

Comments
 (0)