diff --git a/modules/post.py b/modules/post.py index f73b863..a57d41f 100644 --- a/modules/post.py +++ b/modules/post.py @@ -104,7 +104,10 @@ def on_activate(self): window.println(f"Wifi: {wifi.get_sta_status()}") window.println(f"IP: {wifi.get_ip()}") try: - pos = accelerometer.get_xyz() + x,y,z = accelerometer.get_xyz() except OSError: - pos = None - window.println(f"Accel: {pos}") + x = y = z = None + window.println("Accel") + window.println(f"X: {x}") + window.println(f"Y: {y}") + window.println(f"Z: {z}")