Pushbutton implemented for accelerometer