Update compass.py

copied the missing definitions across from accelerometer.py
Merge pull request #80 from ChrisCole42/patch-2

Update compass.py