fan5 2.1.0.0
|
Fan 5 Click example. More...
Macros | |
#define | FAN_CONTROL_MODE |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Fan 5 Click example.
This example demonstrates the use of FAN 5 click board by controlling and regulating the fan motors speed.
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration, reads manufacturer id and sets configuration in correspondence to user-selected mode.
If Fan control is selected example will monitor FAN 1 speed and if the speed falls below 500 RPM for longer then 2.4 seconds fan output will be disabled. In other case, example is showcasing speed control by changing duty cycle and monitoring fan speed.
#define FAN_CONTROL_MODE |
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 | ) |
int main | ( | void | ) |