Skip to content

Commit 80c9717

Browse files
committed
Add get_distance() to example code
1 parent 0585395 commit 80c9717

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/buildhat/colordistance.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
color = ColorDistanceSensor('C')
66

7+
print("Distance", color.get_distance())
78
print("RGBI", color.get_color_rgb())
89
print("Ambient", color.get_ambient_light())
910
print("Reflected", color.get_reflected_light())

0 commit comments

Comments
 (0)