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 #include "mbed.h" 00002 00003 Serial pc(PA_2, PA_3); // TX, RX 00004 DigitalOut myled(PC_13); // on-board LED 00005 00006 int main() 00007 { 00008 while(1) { 00009 // The on-board LED is connected via a resistor to +3.3V (not to GND). 00010 // So the LED is active on 0 00011 myled = 0; // turn the LED on 00012 wait_ms(200); // wait 200 millisecond 00013 myled = 1; // turn the LED off 00014 pc.printf("Blink\r\n"); 00015 wait_ms(1000); // wait 1000 millisecond 00016 } 00017 }
Generated on Fri Jul 15 2022 17:09:11 by
1.7.2