Haptic feedback example for Hexiwear

Files at this revision

API Documentation at this revision

Comitter:
keithm01
Date:
Fri Aug 19 02:11:13 2016 +0000
Commit message:
Initial Commit

Changed in this revision

.gitignore Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 25305457f356 .gitignore
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitignore	Fri Aug 19 02:11:13 2016 +0000
@@ -0,0 +1,4 @@
+.build
+.mbed
+projectfiles
+*.py*
diff -r 000000000000 -r 25305457f356 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 19 02:11:13 2016 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+
+DigitalOut vib(PTB9);
+
+int main() {
+    while (true) {
+        vib = 1;
+        Thread::wait(200);
+        vib = 0;
+        Thread::wait(200);
+        vib = 1;
+        Thread::wait(200);
+        vib = 0;
+        Thread::wait(1000);
+    }
+}
+
diff -r 000000000000 -r 25305457f356 mbed-os.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Fri Aug 19 02:11:13 2016 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef