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.
Dependencies: mbed
Fork of Lab_6_WaG by
Diff: utility.cpp
- Revision:
- 35:ad2b3d6f0e5a
- Parent:
- 31:0dc2b4a3eee6
- Child:
- 74:8881f4aeb174
--- a/utility.cpp Thu Mar 22 16:11:56 2018 +0000
+++ b/utility.cpp Thu Mar 22 16:41:11 2018 +0000
@@ -21,6 +21,17 @@
extern DigitalIn my_button;
+/*
+ * int uti_chk_ubutton();
+ * Description: returns true when button is pressed and released
+ *
+ * Inputs:
+ * Parameters:
+ * Globals:
+ *
+ * Outputs:
+ * Returns: void
+*/
int uti_chk_ubutton() {
if (my_button == 0)
return 0; // exits if button is not pressed
