import pymlab.config cfg = pymlab.config.Config(i2c={"device": "machine", "port": 1, "freq": 100000}, bus=[{"name": "altimet", "type": "altimet01"}, {"name": "light", "type": "isl03"}, {"name": "sht", "type": "sht31"}]) cfg.initialize() altimet = cfg.get_device("altimet") altimet.route() light = cfg.get_device("light") light.config(0x0000) sht = cfg.get_device("sht") sht.soft_reset() t1, p = altimet.get_tp() l = light.get_lux() t2, h = sht.get_TempHum()