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.
Fork of Hexi_Timer_Example by
Revision 0:19c6b2e95531, committed 2016-08-15
- Comitter:
- GregC
- Date:
- Mon Aug 15 16:06:59 2016 +0000
- Child:
- 1:d1b88d737fc1
- Commit message:
- Timer program example for Hexiwear
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-os.lib | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Aug 15 16:06:59 2016 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+Timer t;
+Serial pc(USBTX, USBRX);
+
+int main()
+{
+ t.start();
+ pc.printf("Hello World!\n");
+ t.stop();
+ pc.printf("The time taken to boot and display this message was %f seconds\n", t.read());
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Aug 15 16:06:59 2016 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#0712b8adf6bbc7eb796d5dac26f95d79d40745ef
