Update lis3dh.py

This commit is contained in:
Kacper 2022-02-26 23:41:31 +00:00
parent 6c0806a377
commit 756b07f52a

View file

@ -78,6 +78,7 @@ class lis3dh:
sleep(1)
self.i2c.i2c_rdwr(check_status, status)
if (int.from_bytes(status.buf[0],"big") & 0b1111) == 0b1111:
print("Status: ",status.buf[0], "\n")
self.i2c.i2c_rdwr(prepare_x, x)
self.i2c.i2c_rdwr(prepare_y, y)
self.i2c.i2c_rdwr(prepare_z, z)