generated from sirlilpanda/kicad-project-template-actionless
Added exmaple code of lsm6do to quickly test imu
This commit is contained in:
46
software/lsm6dso_example/main/Kconfig.projbuild
Normal file
46
software/lsm6dso_example/main/Kconfig.projbuild
Normal file
@@ -0,0 +1,46 @@
|
||||
menu "Example Configuration"
|
||||
|
||||
choice EXAMPLE_HARDWARE
|
||||
prompt "Hardware"
|
||||
default EXAMPLE_HARDWARE_QTPYPICO
|
||||
help
|
||||
Select the hardware to run this example on.
|
||||
|
||||
config EXAMPLE_HARDWARE_QTPYPICO
|
||||
depends on IDF_TARGET_ESP32
|
||||
bool "Qt Py PICO"
|
||||
|
||||
config EXAMPLE_HARDWARE_QTPYS3
|
||||
depends on IDF_TARGET_ESP32S3
|
||||
bool "Qt Py S3"
|
||||
|
||||
config EXAMPLE_HARDWARE_CUSTOM
|
||||
bool "Custom"
|
||||
endchoice
|
||||
|
||||
config EXAMPLE_I2C_SCL_GPIO
|
||||
int "SCL GPIO Num"
|
||||
range 0 50
|
||||
default 19 if EXAMPLE_HARDWARE_QTPYPICO
|
||||
default 40 if EXAMPLE_HARDWARE_QTPYS3
|
||||
default 19 if EXAMPLE_HARDWARE_CUSTOM
|
||||
help
|
||||
GPIO number for I2C Master clock line.
|
||||
|
||||
config EXAMPLE_I2C_SDA_GPIO
|
||||
int "SDA GPIO Num"
|
||||
range 0 50
|
||||
default 22 if EXAMPLE_HARDWARE_QTPYPICO
|
||||
default 41 if EXAMPLE_HARDWARE_QTPYS3
|
||||
default 22 if EXAMPLE_HARDWARE_CUSTOM
|
||||
help
|
||||
GPIO number for I2C Master data line.
|
||||
|
||||
config EXAMPLE_I2C_CLOCK_SPEED_HZ
|
||||
int "I2C Clock Speed"
|
||||
range 100 1000000
|
||||
default 400000
|
||||
help
|
||||
I2C clock speed in Hz.
|
||||
|
||||
endmenu
|
||||
Reference in New Issue
Block a user