Usage for hash tag: convert

  1. attiland

    SHT20 Temperature Humidity With Reef-PI

    ...bus.write_byte(addr,0xF3) time.sleep(0.5) #Read data back, 2byte #Temp MSB, Temp LSB data0 = bus.read_byte(0x40) data1 = bus.read_byte(0x40) #convert the data temp =data0 *256 +data1 cTemp = -46.85 +((temp*175.72)/65536.0) ftemp =cTemp*1.8+32 #Send humidity measurement command...
Back
Top