lab 1

Dependencies:   mbed

part1.cpp

Committer:
kevinmark13
Date:
2014-12-02
Revision:
0:3bd15e115d9f

File content as of revision 0:3bd15e115d9f:

// 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
        }
}