from machine import I2C, Pin
import time, lcd1620i2c, bme280
i2c = I2C(scl=Pin(22), sda=Pin(21), freq=10000)
bme = bme280.BME280(i2c=i2c)
lcd = lcd1620i2c.LCD1620(i2c)
#bme.values
lcd.prints('Temper:', 0, 0)
lcd.prints('Press:', 0, 1)
while True:
data = bme.values
lcd.prints(data[0], 8, 0)
lcd.prints(data[1], 7, 1)
time.sleep_ms(1000)