Code: Select all
while True:
a = ticks_ms()
print ((accelerometer.get_values()['AcX']) / 4096)
print (ticks_ms() - a)
print (bme280.altitude)
print (ticks_ms() - a)
print ("------------------")
sleep_ms(20)
Code: Select all
------------------
1.03906
4
-132.135
80
------------------
1.05933
4
-132.135
9
------------------
1.04175
4
-132.367
80
------------------
1.05347
4
-132.452
58
------------------