We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a016dc4 commit 43b0735Copy full SHA for 43b0735
examples/vl6180x_historytest.py
@@ -5,7 +5,6 @@
5
# distance sensor
6
7
import time
8
-from typing import List
9
10
import board
11
import busio
@@ -26,8 +25,8 @@
26
25
# Main loop prints the ranges every 0.01 seconds for about 5 seconds
27
# You should see changes 'ripple through' the history array
28
for _ in range(500):
29
- # Read the range in millimeters and print it.
30
- ranges_mm: List[int] = sensor.ranges_from_history
+ # Read the last 16 ranges from the history buffer as a List[int]
+ ranges_mm = sensor.ranges_from_history
31
print(ranges_mm)
32
33
# Delay for 10 ms so that the loop is not too fast
0 commit comments