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.
main.cpp
00001 /* Program Example 9.3: A simple Timer example, from mbed web site. 00002 Activate Tera Term terminal to test. 00003 */ 00004 #include "mbed.h" 00005 Timer t; // define Timer with name “t” 00006 Serial pc(USBTX, USBRX); 00007 00008 int main() { 00009 t.start(); //start the timer 00010 pc.printf("Hello World!\n"); 00011 t.stop(); //stop the timer 00012 pc.printf("The time taken was %f seconds\n", t.read()); //print to pc 00013 } 00014
Generated on Mon Aug 22 2022 22:18:26 by
1.7.2