surfacetemp 2.0.0.0
|
Surface temp Click is high accuracy digital temperature sensor Click boardâ„¢, offering breakthrough performance over a wide industrial range. It is equipped with the ADT7420 - an accurate 16-Bit Digital I2C temperature sensor from Analog Devices.
We provide a library for the SurfaceTemp Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for SurfaceTemp Click driver.
- Initialization function.void surfacetemp_cfg_setup ( surfacetemp_cfg_t *cfg );
SURFACETEMP_RETVAL surfacetemp_init ( surfacetemp_t *ctx, surfacetemp_cfg_t *cfg );
- Setting hysteresis valuefloat surfacetemp_get_temperature ( surfacetemp_t *ctx );
uint8_t surfacetemp_set_hysteresis ( surfacetemp_t *ctx, uint8_t hysteresis );
uint8_t surfacetemp_setup ( surfacetemp_t *ctx );
This example demonstrates the use of Surface Temp Click.
The demo application is composed of two sections :
Initalizes the driver and configures the click board.
Reads the temperature in Celsius and displays the value on the USB UART each second.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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.