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.
RGB_LED.cpp
- Committer:
- Shirish
- Date:
- 2018-09-30
- Revision:
- 0:947ed6edab0f
File content as of revision 0:947ed6edab0f:
#include "mbed.h"
DigitalOut B(D2,1);
DigitalOut G(D3,1);
DigitalOut R(D4,1);
int main()
{
while(1)
{
R=1;
G=1;
B=0;
wait(1);
R=1;
G=0;
B=1;
wait(1);
R=0;
G=1;
B=1;
wait(1);
R=0;
G=0;
B=1;
wait(1);
R=0;
G=1;
B=0;
wait(1);
R=1;
G=0;
B=0;
wait(1);
R=0;
G=0;
B=0;
wait(1);
}
}