Updates accelerometer to work with new pin API