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
7091f70b46
commit
36a7d87bb0
4
main.py
4
main.py
|
@ -1,8 +1,8 @@
|
||||||
from lis3dh import *
|
from lis3dh import *
|
||||||
|
|
||||||
print("Raspberry Pi Zero W, up and running!")
|
print("Raspberry Pi Zero W, up and running!")
|
||||||
|
bus = smbus2.SMBus(1)
|
||||||
accel = lis3dh()
|
accel = lis3dh(bus)
|
||||||
|
|
||||||
print("LIS3DH initiated successfully!")
|
print("LIS3DH initiated successfully!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue