Go to advanced search

by gpguineapig
Fri Apr 10, 2020 7:22 pm
Forum: Astro Pi
Topic: Sensehat Compass polling rate
Replies: 0
Views: 258

Sensehat Compass polling rate

Trying to read the compass as follows. Why does this code work (with a sleep of 0.01) from sense_hat import * from time import sleep sense = SenseHat() sense.clear() sense.set_imu_config(True, True, True) while True: print(sense.get_orientation()) sleep(0.01) The compass updates quickly and swings t...

Go to advanced search