We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2018-03-12
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Temperature & humidity
Downloaded: 5050 times
Not followed.
License: MIT license
Temp-Hum 4 click is a smart environmental temperature and humidity sensor Click board, packed with features, that allow easy and simple integration into any design that requires accurate and reliable humidity and temperature measurements.
Do you want to subscribe in order to receive notifications regarding "Temp-Hum 4 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Temp-Hum 4 click" changes.
Do you want to report abuse regarding "Temp-Hum 4 click".
Library Description
The library covers all functionalities of the click board.
Key functions:
float temphum4_getTemperature() - Read temperature form sensor
float temphum4_getHuminidy() - Read humidity from sensor
void temphum4_Configuration(uint16_t _data) - Configure sensor
Examples Description
The application is composed of three sections:
void applicationTask() { Temperature = temphum4_getTemperature(); Huminidy = temphum4_getHuminidy(); FloatToStr(Temperature,temp_txt); mikrobus_logWrite("Temperature : ",_LOG_TEXT); mikrobus_logWrite(temp_txt,_LOG_LINE); FloatToStr(Huminidy,hum_txt); mikrobus_logWrite("Huminidy : ",_LOG_TEXT); mikrobus_logWrite(hum_txt,_LOG_LINE); Delay_ms( 500 ); }
Other mikroE Libraries used in the example:
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.