lab 1

Dependencies:   mbed

Revision:
0:3bd15e115d9f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/part1.cpp	Tue Dec 02 21:40:47 2014 +0000
@@ -0,0 +1,25 @@
+// Kevin_Maddox_LAB1Part1.cpp : Defines the entry point for the console application.
+
+/***********************************************************************
+  PROGRAMMER: Kevin Maddox
+   DATE: 01 Dec 2014
+
+   EXPECTED BEHAVIOR:
+   This simple program is to flash 1 led on the chip set mbed indefinitely  
+   this sample program is from text book p.24  
+      
+************************************************************************/
+
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+
+int main()
+{
+    while(1) {  //begin infinte loop
+        myled = 1; //logic on
+        wait(0.2); // wait .2s until next commnd
+        myled = 0; //logic off
+        wait(0.2); // wait .2s until next commnd
+        }
+}
\ No newline at end of file