LEDをtoggleします。TEST用

Files at this revision

API Documentation at this revision

Comitter:
enomoto
Date:
Mon May 13 04:10:32 2013 +0000
Commit message:
LED?toggle????; ????

Changed in this revision

toggle.cpp Show annotated file Show diff for this revision Revisions of this file
toggle.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4c3498745f6c toggle.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toggle.cpp	Mon May 13 04:10:32 2013 +0000
@@ -0,0 +1,5 @@
+#include "mbed.h"
+void toggle(DigitalOut x)
+{
+    x=!x;
+}
\ No newline at end of file
diff -r 000000000000 -r 4c3498745f6c toggle.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toggle.h	Mon May 13 04:10:32 2013 +0000
@@ -0,0 +1,7 @@
+#ifndef yueee_led_toggle_h
+#define yueee_led_toggle_h
+ 
+#include "mbed.h"
+void toggle(DigitalOut x);
+ 
+#endif
\ No newline at end of file