Skip to content

Commit 62e91e5

Browse files
author
JPOSADA202020
committed
fix_ltl
1 parent 6ae0c8e commit 62e91e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/adxl34x_displayio_simpletest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737

3838
# begin main loop
3939
while True:
40-
acceleration_x, acceleration_y, acceleration_z = accelerometer.acceleration
40+
acc_x, acc_y, acc_z = accelerometer.acceleration
4141
# Update the label.text property to change the text on the display
42-
display_output_label.text = f"x:{acceleration_x:.1f} m/s^2 y:{acceleration_y:.1f} m/s^2 z:{acceleration_z:.1f} m/s^2"
42+
display_output_label.text = (
43+
f"x:{acc_x:.1f} m/s^2 y:{acc_y:.1f} m/s^2 z:{acc_z:.1f} m/s^2"
44+
)
4345
# wait for a bit
4446
time.sleep(1)

0 commit comments

Comments
 (0)