Skip to content

Commit

Permalink
Merge pull request #80 from DexterInd/CleoQc-patch-1
Browse files Browse the repository at this point in the history
Fixed print statement to show it's in cm
  • Loading branch information
CleoQc committed Aug 5, 2019
2 parents 553b101 + 16c9c89 commit 25fe283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/Examples/EasyDistanceSensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
# and read the sensor iteratively
while True:
read_distance = my_sensor.read()
print("distance from object: {} mm".format(read_distance))
print("distance from object: {} cm".format(read_distance))

sleep(0.1)

0 comments on commit 25fe283

Please sign in to comment.