![]() |
IoT Drivers
v3.3.0 (S2022)
Engineering in Software Technology
|
This is the quick start guide for the HIH8120 Temperature and Humidity Driver, with step-by-step instructions on how to configure and use the driver in a selection of use cases.
The use cases contain several code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.
The following must be added to the project:
Add to application initialization:
In this use case, the steps to perform a measuring is shown.
In this example these two variables will be used to store the results in
The following must be added to the application code and executed for each new measuring:
Wake up the sensor from power down:
Poll the sensor for the results:
A small example