python 编程:
创建实例
ht(ht_index)
创建ht实例,ht_index 可取值为thunbot.PORT_1,thunbot.PORT_2,thunbot.PORT_3,thunbot.PORT_4,thunbot.PORT_A,thunbot.PORT_B。方法
get_temperature()
获取环境温度。get_humidity()
获取环境湿度。
编程示范
import thunbotimport timeht3 = thunbot.ht(thunbot.PORT_3)while True:print("T:",ht3.get_temperature())print("h:",ht3.get_humidity())time.sleep(1)

