Motion and button application for BLE sensor - using purple LIS3DH nRF51822.