You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
378 B
23 lines
378 B
#!/bin/sh |
|
# |
|
# board specific sensors init |
|
#------------------------------------------------------------------------------ |
|
|
|
board_adc start |
|
|
|
# Internal SPI bus ICM-20602 or ICM-42688-P |
|
|
|
# SPI2 |
|
if ! icm20602 -s -b 2 -R 5 start |
|
then |
|
icm42688p -s -b 2 -R 5 start |
|
fi |
|
|
|
# SPI3 |
|
if ! icm20602 -s -b 3 -R 4 start |
|
then |
|
icm42688p -s -b 3 -R 4 start |
|
fi |
|
|
|
# Internal I2C bus |
|
bmp388 -I start
|
|
|