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.
Fork of RGBLED by
main.cpp
- Committer:
- rcflyair
- Date:
- 2014-06-09
- Revision:
- 0:7c0b6a649748
- Child:
- 1:a43483907ce0
File content as of revision 0:7c0b6a649748:
#include "mbed.h"
#include "rgbled.h"
int main(void)
{
rgbled rgb(PTB22, PTE26, PTB21); // create rgb object with pin definitions for FRDM-K64F board
rgb.active(false); // set led output to active low
rgb.set(none); // set led output of all off
while(1){
rgb.set(red);
wait(1);
rgb.set(green);
wait(1);
rgb.set(blue);
wait(1);
}
}
