6 years ago.

I'm traing to get Temperature and Humidity ftorm HTS221 via USB on terminal

Hello. In main I have two libralys, one is HTS221 os link: https://os.mbed.com/teams/ST/code/HTS221/ and L152RE_USBDevice libraly on link: https://os.mbed.com/users/va009039/code/L152RE_USBDevice_example/.

I'm trying to get id, Temp, and Hum over usb to terminal but all I get is 0 for Hum and Temp, but for id I get different values, depends if I try to printf Hum and Temp together or just one of them.

/media/uploads/Gerc/main.png /media/uploads/Gerc/terminal.png

Maybe is problem that I didn't conect DRDY pin of HST221 to nowhere but program demands it? or there is some other failure.

Thank you for answer.

Be the first to answer this question.