mirror of
https://github.com/supleed2/ELEC60013-ES-CW1.git
synced 2024-11-10 01:35:50 +00:00
Merge branch 'kacper' into ad3919/testing
This commit is contained in:
commit
444bc1c719
|
@ -73,7 +73,7 @@ class LIS3DH:
|
||||||
c8 = smbus2.i2c_msg.write(self.addr, [0x32,0x16])
|
c8 = smbus2.i2c_msg.write(self.addr, [0x32,0x16])
|
||||||
c9 = smbus2.i2c_msg.write(self.addr, [0x33,0x03])
|
c9 = smbus2.i2c_msg.write(self.addr, [0x33,0x03])
|
||||||
c10 = smbus2.i2c_msg.write(self.addr, [0x34,0x3F])
|
c10 = smbus2.i2c_msg.write(self.addr, [0x34,0x3F])
|
||||||
c11 = smbus2.i2c_msg.write(self.addr, [0x36,0x4A])
|
c11 = smbus2.i2c_msg.write(self.addr, [0x36,0x32])
|
||||||
c12 = smbus2.i2c_msg.write(self.addr, [0x24,0x0A]) # Configure 0x24 again
|
c12 = smbus2.i2c_msg.write(self.addr, [0x24,0x0A]) # Configure 0x24 again
|
||||||
self.i2c.i2c_rdwr(c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12)
|
self.i2c.i2c_rdwr(c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue