simple digital out test for Kieran and George

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nherriot
Date:
Mon May 14 16:27:26 2012 +0000
Child:
1:47ca6e1d2bb2
Commit message:
testing digital pins for door controller

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 14 16:27:26 2012 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+
+DigitalOut red(p5);
+DigitalOut myled(LED1);
+
+//DigitalOut green(p6);
+//DigitalOut blue(p7);
+
+int main() {
+    // testing digital out 3.3volts on pin 5
+    // flash LED 1 at the same time for visual clue that it works
+    while(1) {
+    
+        red = 1;
+        myled = 1;
+        wait(1);
+    }    
+   
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.lib	Mon May 14 16:27:26 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/projects/libraries/svn/mbed/trunk@43
\ No newline at end of file