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.
blink.cpp
00001 #include "Blinker.h" 00002 #include "mbed.h" 00003 00004 Blinker::Blinker(PinName pin) : LED1(pin) 00005 { 00006 LED1 = 0; 00007 } 00008 LED2(pin) 00009 { 00010 LED2 = 0; 00011 } 00012 void Blinker::Blink(int n) { 00013 for(int i=0; i<n*2; i++) { 00014 LED1=1; 00015 wait(0.2); 00016 LED1=0; 00017 wait(0.2); 00018 LED2=1; 00019 wait(0.2); 00020 LED2=0; 00021 wait(0.2); 00022 00023 00024 } 00025 }
Generated on Sun Jul 17 2022 04:45:24 by
1.7.2