I’m trying to use the accelerometer of my mangOH Red.
So far I made an app based on the RedSensorToCloud sample. It reads the x,y and z acceleration values in
/sys/bus/i2c/devices/4-0068/iio:device0/in_accel_<x,y,z>_raw and print them in logs every second.
Now I would like to be able to configurate the accelerometer to trigger an interrupt on its INT pins when the devices moves. I want to be able to configure the threshold that triggers this interrupt.
Is it possible to do that using the bmi160 driver contained in the mangOH repo ? And if it is possible, how could I do it ?