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 /** SimplestConsoleTest project. 00002 * Prints messages to the USB connected pc using default configuration 00003 * (9600-8-N-1). 00004 * 00005 * Based on an mbed example. This version maintained by Dr. C. S. Tritt. 00006 * v. 1.0 (last revised 2/12/17) 00007 * 00008 * @param None. 00009 * @returns Nothing. 00010 * @note This is a note. 00011 */ 00012 #include "mbed.h" 00013 00014 //------------------------------------ 00015 // Hyperterminal configuration 00016 // 9600 bauds, 8-bit data, no parity 00017 //------------------------------------ 00018 00019 DigitalOut myled(LED1); 00020 00021 int main() 00022 { 00023 int i = 1; 00024 printf("Hello World !\n"); 00025 while(1) { 00026 wait(1); 00027 printf("This program runs since %d seconds.\n", i++); 00028 myled = !myled; 00029 } 00030 }
Generated on Mon Jul 25 2022 08:57:25 by
1.7.2