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
main.cpp@0:19c6b2e95531, 2016-08-15 (annotated)
- Committer:
- GregC
- Date:
- Mon Aug 15 16:06:59 2016 +0000
- Revision:
- 0:19c6b2e95531
- Child:
- 1:d1b88d737fc1
Timer program example for Hexiwear
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| GregC | 0:19c6b2e95531 | 1 | #include "mbed.h" |
| GregC | 0:19c6b2e95531 | 2 | |
| GregC | 0:19c6b2e95531 | 3 | Timer t; |
| GregC | 0:19c6b2e95531 | 4 | Serial pc(USBTX, USBRX); |
| GregC | 0:19c6b2e95531 | 5 | |
| GregC | 0:19c6b2e95531 | 6 | int main() |
| GregC | 0:19c6b2e95531 | 7 | { |
| GregC | 0:19c6b2e95531 | 8 | t.start(); |
| GregC | 0:19c6b2e95531 | 9 | pc.printf("Hello World!\n"); |
| GregC | 0:19c6b2e95531 | 10 | t.stop(); |
| GregC | 0:19c6b2e95531 | 11 | pc.printf("The time taken to boot and display this message was %f seconds\n", t.read()); |
| GregC | 0:19c6b2e95531 | 12 | } |
