dcmotor2  2.0.0.0
Functions
main.c File Reference

DcMotor2 Click example. More...

#include "board.h"
#include "log.h"
#include "dcmotor2.h"

Functions

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

Detailed Description

DcMotor2 Click example.

Description

This example showcases how to initialize and use the DC Motor 2 click. The click contains a Driver IC for DC motors which can spin the motor clockwise, counter-clockwise, break it and completely stop the motor. The example needs a DC motor and a power supply in order to work.

The demo application is composed of two sections :

Application Init

This function initializes and configures the logger and click modules.

Application Task

This function breaks the motor, starts spinning it clockwise and changes the rotation speed from min to max, breaks the motor again and spins it counter clockwise from max speed to min. It waits for one second after each action.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

◆ application_task()

void application_task ( )

◆ main()

void main ( )