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:
- trivla
- Date:
- 2015-03-16
- Revision:
- 0:580c20228743
File content as of revision 0:580c20228743:
#include "mbed.h"
DigitalOut d20(P1_13);
DigitalOut d19(P1_12);
DigitalOut d18(P1_7);
DigitalOut d17(P1_6);
void SimpleRunLight();
int main(void)
{
while (1)
{
d17=0;
d18=0;
d19=0;
d20=0;
SimpleRunLight();
}
}
void SimpleRunLight()
{
d17=1;
wait(5);
d17=0; d18=1;
wait(5);
d18=0; d19=1;
wait(5);
d19=0; d20=1;
wait(5);
d20=0;
}