Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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.
}