dcmotor6  2.0.0.0
Functions
main.c File Reference

DC Motor 6 Click example. More...

#include "board.h"
#include "log.h"
#include "dcmotor6.h"

Functions

void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

DC Motor 6 Click example.

Description

This example demonstrates the use of DC Motor 6 click board.

The demo application is composed of two sections :

Application Init

Initializes the driver and makes an initial log.

Application Task

Drives the motor in the forward direction for 5 seconds, then pulls brake for 2 seconds, and after that drives it in the reverse direction for 5 seconds, and finally, disconnects the motor for 2 seconds. Each step will be logged on the USB UART where you can track the program flow.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )