Charles Tritt / Mbed 2 deprecated NoHeaderTest

Dependencies:   mbed

Fork of HeaderTest by Charles Tritt

myStuff.cpp

Committer:
CSTritt
Date:
2017-10-19
Revision:
0:cc014c610423

File content as of revision 0:cc014c610423:

/*
  Project: HeaderTest
  File: myStuff.cpp
  Last revised by: Dr. C. S. Tritt
  Last revision on: 10/19/17 (v. 1.0)
  
  This is the source file for the myStuff function. It toggles the LED.
*/
// See include comments in main.cpp and myProj.h.
#include "mbed.h"
#include <myProj.h>

void myStuff(void) {
    board_LED = !board_LED; // Toggle LED state.
    wait(BASE_WAIT * (float) cycles); // Wait varying intervals.
    cycles++; // Slowly slow down flash rate.
}