Archive for 25 Jan 2013

SHTx Temperature and Humidity Sensor (Part 3)

Part¬†1,¬†2, 3 PlainSHT1x contains a set of additional functions which perform advanced tasks such as checking power supply voltage: uint8_t PlainSHT1x::Battery() { uint8_t regContent = ReadRegister(); return ((regContent >> 6) & 0x01); }; … changing the resolution of measurements: void PlainSHT1x::Resolution(uint8_t state) { _resolution = state; uint8_t regContent = ReadRegister(); if (state) { regContent |= […]