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.
Revision 3:3411d8922bb1, committed 2016-04-20
- Comitter:
- MiskinPrj
- Date:
- Wed Apr 20 08:37:57 2016 +0000
- Parent:
- 2:c936f86e62fb
- Commit message:
- changed on and off variables to const type
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 20 07:28:00 2016 +0000
+++ b/main.cpp Wed Apr 20 08:37:57 2016 +0000
@@ -17,8 +17,8 @@
DigitalOut Blue(P0_19);
/* Set the on and off states of the lights */
-int on = 0;
-int off = 1;
+const int on = 0;
+const int off = 1;
int main()
{