Hi guys,
I've written a driver for the ADXL362 chip. I bought mine from Sparkfun.
Here is an example of how to set it up to raise events when it is moved, and again when it is put back to rest.
ADXL362Accelerometer accelerometer = new ADXL362Accelerometer(Pins.GPIO_PIN_D10, Pins.GPIO_PIN_D1, Pins.GPIO_NONE); accelerometer.OnInt1Changed += accelerometer_OnInt1Changed; accelerometer.ConfigureMotionActivatedSleep();
I've included predefined configurations for the examples used in the datasheet and the Arduino driver. The others are:
accelerometer.ConfigureAutoMotionSwitch(); accelerometer.ConfigureFreeFall(); accelerometer.ConfigureSimpleRead(); accelerometer.ConfigureTiltOnOff();
The chip also has a temperaturesensor, and you can read the current XYZ values.
The class is attached - hope someone finds it useful