Icarus Sensors / Mbed 2 deprecated Pinout-Test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
smigielski
Date:
Wed Jan 28 20:03:00 2015 +0000
Commit message:
first version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 763246be68a2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jan 28 20:03:00 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut outputs[] = {(P0_0), (P0_1), (P0_2),(P0_3),(P0_4),(P0_5),(P0_6),(P0_7),(P0_8),(P0_9),(P0_10),
+(P0_11),(P0_12),(P0_13),(P0_14),(P0_15),(P0_16),(P0_17),(P0_18),(P0_19),(P0_20),
+(P0_21),(P0_22),(P0_23),(P0_24),(P0_25),(P0_26),(P0_27),(P0_28),(P0_29),(P0_30)};
+//Test that all pins are working.
+int main() {
+    while(1) {
+        for (int i =0;i<=30;i++){
+            outputs[i]=1;
+            wait(0.01*i);
+            outputs[i]=0;            
+        }
+    }
+}
diff -r 000000000000 -r 763246be68a2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jan 28 20:03:00 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file