Sanderi44 / Lidar-Lite

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

lidar_lite.py == bus.read #3

Open patrickpoirier51 opened 7 years ago

patrickpoirier51 commented 7 years ago

To properly read data, the smbus read has be on write byte/read byte transaction

def readAndWait(self, register): self.bus.write_byte(self.address, register) res = self.bus.read_byte(self.address) return res