Commit 97adb2c3 authored by Nicole Faerber's avatar Nicole Faerber

Add test for proximity/ambient light sensor

parent 29b7daf7
Pipeline #2795 passed with stage
in 14 seconds
#!/bin/bashk
#!/bin/bash
export TERM=xterm-256color
export LINES=24
......@@ -141,6 +141,17 @@ if [ $? = 0 ]; then
else
echo "I2C2@5d fail" >> /tmp/l5dvk-test.log;
fi
i2cdetect -y 2 0x60 0x60 | grep 60 > /dev/null 2>&1
if [ $? = 0 ]; then
i2cget -y 2 0x60 0x0c w | grep 0x0186 > /dev/null 2>&1
if [ $? = 0 ]; then
echo "I2C2@60 pass" >> /tmp/l5dvk-test.log;
else
echo "I2C2@60 fail" >> /tmp/l5dvk-test.log;
fi
else
echo "I2C2@60 fail" >> /tmp/l5dvk-test.log;
fi
cat /sys/class/i2c-adapter/i2c-2/2-006a/iio:device0/name | grep lsm9ds1_gyro > /dev/null
if [ $? = 0 ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment