2022-02-26 22:36:47 +00:00
|
|
|
from lis3dh import *
|
2022-02-26 19:51:43 +00:00
|
|
|
|
|
|
|
print("Raspberry Pi Zero W, up and running!")
|
|
|
|
|
|
|
|
accel = lis3dh()
|
|
|
|
|
|
|
|
print("LIS3DH initiated successfully!")
|
|
|
|
|
|
|
|
while True:
|
|
|
|
[X,Y,Z] = accel.readAll()
|
|
|
|
print("X: ",X,"\tY: ",Y,"\t Z: ",Z,"\n")
|