Toggle Navigation
Hatchery
Eggs
Temp
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import display import utime import bme680 import os disp = display.open() bme680.init() while True: disp.clear() temp, hum, press, resis = bme680.get_data() voltz = os.read_battery() disp.print("%.1f degC" % temp,posy = 0) disp.print("%.1f %% r.h." % hum, posy = 20) disp.print("%.0f hPa" % press, posy = 40) disp.print("%.2f V" % voltz, posy=60) disp.update() utime.sleep(0.8)