Update lis3dh.py

This commit is contained in:
Kacper 2022-02-26 23:34:23 +00:00
parent 062b180b1b
commit 3bc6095014

View file

@ -74,6 +74,7 @@ class lis3dh:
status = smbus2.i2c_msg.read(self.addr, 1)
self.i2c.i2c_rdwr(check_status, status)
while status.buf[0] != 0b1111:
print(status.buf[0], "\n")
sleep(1)
self.i2c.i2c_rdwr(check_status, status)
if status.buf[0] == 0b1111: