Basic accelerometer alarm code working.