sht1x 2.0.0.0
|
SHT1x Click example. More...
Functions | |
void | sht1x_trans_start () |
uint8_t | sht1x_read_byte (uint8_t ack) |
uint8_t | sht1x_write_byte (uint8_t value) |
uint8_t | sht1x_measure (uint16_t *p_val, uint8_t mode) |
void | sht1x_read_results (float *f_t, float *f_rh) |
uint8_t | sht1x_rd_stat_reg (uint8_t *p_val) |
uint8_t | sht1x_wr_stat_reg (uint8_t value) |
void | sht1x_connection_reset () |
uint8_t | sht1x_soft_reset () |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
SHT1x Click example.
This click measures temperature and humidity.
The demo application is composed of two sections :
Initialization driver enables GPIO.
This example demonstrates the use of SHT1x Click board by measuring temperature and humidity, and displays the results on USART terminal.
void application_init | ( | void | ) |
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |
void sht1x_connection_reset | ( | ) |
uint8_t sht1x_measure | ( | uint16_t * | p_val, |
uint8_t | mode ) |
uint8_t sht1x_rd_stat_reg | ( | uint8_t * | p_val | ) |
uint8_t sht1x_read_byte | ( | uint8_t | ack | ) |
void sht1x_read_results | ( | float * | f_t, |
float * | f_rh ) |
uint8_t sht1x_soft_reset | ( | ) |
void sht1x_trans_start | ( | ) |
uint8_t sht1x_wr_stat_reg | ( | uint8_t | value | ) |
uint8_t sht1x_write_byte | ( | uint8_t | value | ) |