Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of frdm_Grove_Vibration_Example by
Diff: main.cpp
- Revision:
- 0:e4df2641aa95
diff -r 000000000000 -r e4df2641aa95 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Dec 31 23:46:30 2015 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +DigitalOut vibMotor(D6); + +int main() +{ + int timer = 1; + while(1) { + vibMotor = 1; + wait(timer); + vibMotor = 0; + wait(timer); + } +}