accel: using function pointer
accel: allow user to customize their own methods to deal with the accelerometer parameters