Skip to content

Instantly share code, notes, and snippets.

@KitWallace
Created September 22, 2012 10:51
Show Gist options
  • Save KitWallace/3765825 to your computer and use it in GitHub Desktop.
Save KitWallace/3765825 to your computer and use it in GitHub Desktop.
Test script for the CMPS10 compass module
#!/usr/bin/python
import time
from Devantech_CMPS10 import CMPS10
compass = CMPS10()
while True :
print compass.bearing(), compass.pitch(), compass.roll()
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment