use for led toggle

Revision:
0:0b2d00066327
--- /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