Added exmaple code of lsm6do to quickly test imu

This commit is contained in:
2026-05-11 21:21:45 +12:00
parent 4d334124a7
commit 3f4bef7cbf
8 changed files with 4368 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
CONFIG_FREERTOS_HZ=1000
# set compiler optimization level to -O2 (compile for performance)
CONFIG_COMPILER_OPTIMIZATION_PERF=y
# ESP32-specific
#
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ=240
# Common ESP-related
#
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=4096
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384
# Set esp-timer task stack size to 6KB
CONFIG_ESP_TIMER_TASK_STACK_SIZE=6144
# set the functions into IRAM
CONFIG_SPI_MASTER_IN_IRAM=y