press 2.1.0.0
|
PRESS Click example. More...
Macros | |
#define | EXAMPLE_MODE_PRESS_TEMP 0 |
#define | EXAMPLE_MODE_SWIPE_SENSING 1 |
#define | EXAMPLE_MODE EXAMPLE_MODE_PRESS_TEMP |
#define | PRESS_THOLD_DETECT 10.0 |
#define | PRESS_THOLD_TOUCH 15.0 |
#define | PRESS_THOLD_SWIPE 30.0 |
Functions | |
void | example_pressure_temperature (void) |
PRESS example pressure and temperature function. | |
void | example_swipe_sensing (void) |
PRESS example swipe sensing function. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
PRESS Click example.
This example demonstrates the use of PRESS Click boardâ„¢ by reading and displaying the pressure, temperature and Qvar measurements.
The demo application is composed of two sections :
The initialization of I2C module and log UART. After driver initialization, the app sets the default configuration.
The demo application shows the module working depending on the example mode:
Additional Functions :
#define EXAMPLE_MODE EXAMPLE_MODE_PRESS_TEMP |
#define EXAMPLE_MODE_PRESS_TEMP 0 |
#define EXAMPLE_MODE_SWIPE_SENSING 1 |
#define PRESS_THOLD_DETECT 10.0 |
#define PRESS_THOLD_SWIPE 30.0 |
#define PRESS_THOLD_TOUCH 15.0 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
void example_pressure_temperature | ( | void | ) |
PRESS example pressure and temperature function.
This function reads and displays the Pressure [mBar] and Temperature [degree Celsius] data.
void example_swipe_sensing | ( | void | ) |
PRESS example swipe sensing function.
This function is used to detect a touch, a press, or even a swipe.
int main | ( | void | ) |