use for led toggle

Files at this revision

API Documentation at this revision

Comitter:
uchiyama
Date:
Thu Mar 22 05:29:17 2012 +0000
Commit message:

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toggle.cpp	Thu Mar 22 05:29:17 2012 +0000
@@ -0,0 +1,5 @@
+#include "mbed.h"
+void toggle(DigitalOut x)
+{
+   x = !x;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toggle.h	Thu Mar 22 05:29:17 2012 +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