@@ -0,0 +1,876 @@
+%22%22%22%0ASend a stream of pitch, yaw, roll values to other devices on a multipeer network.%0AUses Pythonista's motion.get_attitude() to get data and @mikaelho's multipeer to send.%0AInstall multipeer on two iOS devices and run this code on one and multipeer.py on the%0Aother.  You should see a stream of attitude data which change as the device is moved.%0A%0ATODO (cclauss): Upgrade to multipeer streams in latency becomes an issue.%0A%0Ahttps://forum.omz-software.com/topic/6140/interactive-animation-based-on-orientation-data-of-imu%0Ahttp://omz-software.com/pythonista/docs/ios/motion.html%0Ahttps://github.com/mikaelho/multipeer%0A%22%22%22%0A%0Aimport motion, multipeer, platform%0A%0Amc = multipeer.MultipeerConnectivity(display_name=platform.node(), service_type='chat')%0Amotion.start_updates()%0Atry:%0A    while True:%0A        mc.send(motion.get_attitude())%0Afinally:%0A    mc.end_all()%0A    motion.stop_updates()%0A

Create attitude_to_multipeer.py