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
- Committer:
- pa3jem
- Date:
- 2010-10-31
- Revision:
- 0:44d37e70965a
File content as of revision 0:44d37e70965a:
#include "mbed.h"
DigitalOut myled_1(PIN1);
DigitalOut myled_2(PIN2);
DigitalOut myled_3(PIN3);
DigitalOut myled_4(PIN4);
float dtime = 0.5;
int main() {
while(1)
{
myled_1 = 1;
wait(dtime);
myled_1 = 0;
myled_2 = 1;
wait (dtime);
myled_2 = 0;
myled_3 = 1;
wait (dtime);
myled_3 = 0;
myled_4 = 1;
wait (dtime);
myled_4 = 0;
myled_3 = 1;
wait (dtime);
myled_3 = 0;
myled_2 = 1;
wait (dtime);
myled_2 = 0;
}
}