Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: testIO.cpp
- Revision:
- 0:6868bab30819
diff -r 000000000000 -r 6868bab30819 testIO.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/testIO.cpp Thu Feb 13 15:18:30 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut io1(P0_28);
+DigitalOut io2(P0_4);
+DigitalOut io3(p25);
+DigitalOut io4(P4_29);
+DigitalOut io5(P0_10);
+
+int main() {
+ while(1) {
+ led1 = !led1;
+ io1 = !io1;
+ io2 = !io2;
+ io3 = !io3;
+ io4 = !io4;
+ io5 = !io5;
+ wait(0.5);
+ }
+}
\ No newline at end of file