GROVE - ブザー サンプルプログラム

Dependencies:   mbed

Revision:
0:e0759abe5333
diff -r 000000000000 -r e0759abe5333 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 30 03:11:13 2013 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+DigitalOut Buzzer(p5);
+
+int main() {
+    while(1) {
+        Buzzer = 1;
+        wait(0.5);
+        Buzzer = 0;
+        wait(0.5);
+    }
+}