GROVE - バイブレータ サンプルプログラム

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jksoft
Date:
Sat Nov 30 02:12:57 2013 +0000
Commit message:
Rev1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 30 02:12:57 2013 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut VibrationMotor(p5);
+
+int main() {
+    while(1) {
+        VibrationMotor = 1;
+        wait(1.0);
+        VibrationMotor = 0;
+        wait(1.0);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Nov 30 02:12:57 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file