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.
Diff: myStuff.cpp
- Revision:
- 0:cc014c610423
diff -r 000000000000 -r cc014c610423 myStuff.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/myStuff.cpp Thu Oct 19 21:05:11 2017 +0000
@@ -0,0 +1,17 @@
+/*
+ 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.
+}
\ No newline at end of file