Update lis3dh.py

This commit is contained in:
Kacper 2022-02-26 23:03:15 +00:00
parent 53b5f4cc19
commit 222bd2fe3a

View file

@ -70,7 +70,7 @@ class lis3dh:
#while status.buf[0] != 0b1111: #while status.buf[0] != 0b1111:
# sleep(0.00001) # sleep(0.00001)
self.i2c.i2c_rdwr(prepare_x, x)#, prepare_y, y, prepare_z, z) self.i2c.i2c_rdwr(prepare_x, x)#, prepare_y, y, prepare_z, z)
X = int.from_bytes(x.buf[0]) X = int.from_bytes(x.buf[0],"big")
#Y = int.from_bytes(y.buf[0]) #Y = int.from_bytes(y.buf[0])
#Z = int.from_bytes(z.buf[0]) #Z = int.from_bytes(z.buf[0])
return [X] return [X]