mirror of
https://github.com/supleed2/ELEC60013-ES-CW1.git
synced 2024-12-22 21:45:48 +00:00
Update main.py
This commit is contained in:
parent
65bddab7f5
commit
f9082650ea
2
main.py
2
main.py
|
@ -2,7 +2,7 @@ from lis3dh import *
|
||||||
|
|
||||||
print("Raspberry Pi Zero W, up and running!")
|
print("Raspberry Pi Zero W, up and running!")
|
||||||
bus = smbus2.SMBus(1)
|
bus = smbus2.SMBus(1)
|
||||||
accel = lis3dh(bus,10)
|
accel = lis3dh(bus,2,10)
|
||||||
|
|
||||||
print("LIS3DH initiated successfully!")
|
print("LIS3DH initiated successfully!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue