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
Revision 0:634e87e3d30e, committed 2016-11-06
- Comitter:
- Mattinico
- Date:
- Sun Nov 06 12:40:19 2016 +0000
- Commit message:
- k
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | 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 Sun Nov 06 12:40:19 2016 +0000 @@ -0,0 +1,14 @@ + /* Program Example 3: A simple Timer example, from mbed website. + Activate Tera Term terminal to test. + */ + #include "mbed.h" + Timer t; // define Timer with name â€oet†+ Serial pc(USBTX, USBRX); + + int main() + { + t.start(); //start the timer + pc.printf("Forza NAPOLI!\n\r"); + t.stop(); //stop the timer + pc.printf("The time taken was %f seconds\n\r", t.read()); //print to pc + } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Nov 06 12:40:19 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9bcdf88f62b0 \ No newline at end of file