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: 2020-07-22
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Temperature & humidity
Downloaded: 2388 times
Not followed.
License: MIT license
The Surface Temp Click is a Click board equipped with the ADT7420, high accuracy digital temperature sensor offering breakthrough performance over a wide industrial range. Surface Temp Click is supported by a mikroSDK compliant library, which includes functions that simplify software development.
Do you want to subscribe in order to receive notifications regarding "Surface Temp click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Surface Temp click" changes.
Do you want to report abuse regarding "Surface Temp click".
Library Description
The library contains basic functions for working with Surface Temp click.
Key functions:
float surfacetemp_get_temperature ( void )
- Getting temperature value.uint8_t surfacetemp_get_status ( void )
- Getting device status.uint8_t surfacetemp_setup ( void )
- Device initialization.Examples description
The application is composed of three sections :
void application_task ( )
{
float temperature;
char demo_text[ 20 ];
temperature = surfacetemp_get_temperature( );
FloatToStr( temperature, demo_text );
mikrobus_logWrite( "> Temperature : ", _LOG_TEXT );
mikrobus_logWrite( demo_text, _LOG_LINE );
Delay_ms( 1500 );
}
Other mikroE Libraries used in the example:
Additional notes and informations
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.