I did a software calibrartion. It seems to work quite well. To save cycles it may be advantageous to use the accelerometer's offset registers.