From 222bd2fe3ab20f5b1612e51cba74c569c30e2561 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sat, 26 Feb 2022 23:03:15 +0000 Subject: [PATCH] Update lis3dh.py --- lis3dh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lis3dh.py b/lis3dh.py index beb1e5e..4f46334 100644 --- a/lis3dh.py +++ b/lis3dh.py @@ -70,7 +70,7 @@ class lis3dh: #while status.buf[0] != 0b1111: # sleep(0.00001) 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]) #Z = int.from_bytes(z.buf[0]) return [X] \ No newline at end of file