Skip to content

Commit 43b0735

Browse files
committed
Removed typing in history example
1 parent a016dc4 commit 43b0735

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/vl6180x_historytest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# distance sensor
66

77
import time
8-
from typing import List
98

109
import board
1110
import busio
@@ -26,8 +25,8 @@
2625
# Main loop prints the ranges every 0.01 seconds for about 5 seconds
2726
# You should see changes 'ripple through' the history array
2827
for _ in range(500):
29-
# Read the range in millimeters and print it.
30-
ranges_mm: List[int] = sensor.ranges_from_history
28+
# Read the last 16 ranges from the history buffer as a List[int]
29+
ranges_mm = sensor.ranges_from_history
3130
print(ranges_mm)
3231

3332
# Delay for 10 ms so that the loop is not too fast

0 commit comments

Comments
 (0)