Sanderi44 / Lidar-Lite

C++ and python libraries for getting data from the Lidar-Lite sensor
40 stars 24 forks source link

faster getDistance with read_i2c_block_data() function #8

Closed nicewook closed 6 years ago

nicewook commented 6 years ago

use read_i2c_block_data() instead of read_byte_data() so we can read 2byte at once, which results calling time.sleep(0.02) once, not twice