Seeed Grove Vibration motor example application. Digital Output with busy wait PWM, 1 second duty cycle.

Dependencies:   mbed

Fork of Seeed_Grove_Vibration_Motor_Example by Austin Blackstone

main.cpp

Committer:
mbedAustin
Date:
2014-09-04
Revision:
0:c2c4143452b4

File content as of revision 0:c2c4143452b4:

#include "mbed.h"

DigitalOut vibMotor(D6);

int main()
{
    int timer = 1;
    while(1) {
        vibMotor = 1;
        wait(timer);
        vibMotor = 0;
        wait(timer);
    }
}