土壤温湿度传感器SHT30的STM8代码,实测可以用,uint8 SHT30_Get_TH(uint8 *vTemSymbol, uint16 *vTem, uint16 *vHum) { uint8 vDat[8]; uint8 vRval = 0; vRval = SHT30_Single_Measure(vDat); if (!vRval) SHT30_calc(vDat, vTemSymbol, vTem, vHum); return vRval; }