Home
last modified time | relevance | path

Searched refs:humidity (Results 1 – 5 of 5) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/th02/
Dth02.cxx75 uint16_t humidity = 0; in getHumidity() local
87 humidity = m_i2c.readReg(TH02_REG_DATA_H) << 8; in getHumidity()
88 humidity |= m_i2c.readReg(TH02_REG_DATA_L); in getHumidity()
89 humidity >>= 4; in getHumidity()
91 return ((float(humidity) / 16.0) - 24.0); in getHumidity()
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dth02.cxx48 float humidity = 0.0; in main() local
53 humidity = sensor->getHumidity (); in main()
54 std::cout << "Temperature = " << temperature << ", Humidity = " << humidity << std::endl; in main()
Dam2315.cxx51 float humidity = 0.0; in main() local
59 humidity = sensor->getHumidity(); in main()
63 humidity << in main()
Dhtu21d.cxx51 float humidity = 0.0; in main() local
61 humidity = sensor->getHumidity(false); in main()
65 humidity << in main()
/hardware/bsp/intel/peripheral/libupm/examples/java/
DHTU21DSample.java39 float humidity = 0; in main() local
48 humidity = sensor.getHumidity(); in main()
51 System.out.println("Humidity: " + humidity + ", Temperature: " + temperature in main()