lab 1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kevinmark13
Date:
Tue Dec 02 21:40:47 2014 +0000
Commit message:
HW Lab 1 Part 1

Changed in this revision

mbed.bld Show annotated file Show diff for this revision Revisions of this file
part1.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 02 21:40:47 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file
--- /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