lps35hw_filter.py
1 import time
2 import board
3 import adafruit_lps35hw
4
5
6 i2c = board.I2C()
7 lps = adafruit_lps35hw.LPS35HW(i2c)
8
9 lps.low_pass_enabled = True
10 while True:
11 print("Pressure: %.2f hPa" % lps.pressure)
12 print("")
13 time.sleep(0.125)