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