Created
September 22, 2012 10:51
-
-
Save KitWallace/3765825 to your computer and use it in GitHub Desktop.
Test script for the CMPS10 compass module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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