hbridge10 2.0.0.0
|
HBridge10 Click example. More...
Functions | |
void | hbridge10_display_status (uint16_t status) |
H-Bridge 10 display status function. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
HBridge10 Click example.
This example demonstrates the use of the H-Bridge 10 click board by driving the motors connected between OUT1-OUT2 and OUT2-OUT3 in both directions.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration.
Drives the motors connected between OUT1-OUT2 and OUT2-OUT3 in both directions in the span of 6 seconds, and displays the status messages on the USB UART.
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 hbridge10_display_status | ( | uint16_t | status | ) |
H-Bridge 10 display status function.
This function parses the status from output register and displays it on the USB UART.
[in] | status | : 16-bit status value. |
int main | ( | void | ) |