Hexiwear
/
Hexi_Vibration_Example
Haptic feedback example for Hexiwear
Revision 0:25305457f356, committed 2016-08-19
- Comitter:
- keithm01
- Date:
- Fri Aug 19 02:11:13 2016 +0000
- Commit message:
- Initial Commit
Changed in this revision
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