Haptic feedback example for Hexiwear

Committer:
keithm01
Date:
Fri Aug 19 02:11:13 2016 +0000
Revision:
0:25305457f356
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
keithm01 0:25305457f356 1 #include "mbed.h"
keithm01 0:25305457f356 2
keithm01 0:25305457f356 3 DigitalOut vib(PTB9);
keithm01 0:25305457f356 4
keithm01 0:25305457f356 5 int main() {
keithm01 0:25305457f356 6 while (true) {
keithm01 0:25305457f356 7 vib = 1;
keithm01 0:25305457f356 8 Thread::wait(200);
keithm01 0:25305457f356 9 vib = 0;
keithm01 0:25305457f356 10 Thread::wait(200);
keithm01 0:25305457f356 11 vib = 1;
keithm01 0:25305457f356 12 Thread::wait(200);
keithm01 0:25305457f356 13 vib = 0;
keithm01 0:25305457f356 14 Thread::wait(1000);
keithm01 0:25305457f356 15 }
keithm01 0:25305457f356 16 }
keithm01 0:25305457f356 17