Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Trivial example for motion module not working
-
This simple example return a zero-vector, ie. no values for for the gravity (returns (0.0, 0.0, 0.0)). Why?
Running on iPad Pro 2019.
import motion def main(): motion.start_updates() mf = motion.get_gravity() print(mf) motion.stop_updates() if __name__ == '__main__': main()
-
Insering a sleep for a few hundred ms seems to work. Resolved!