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
Diff: main.cpp
- Revision:
- 0:7c0b6a649748
- Child:
- 1:a43483907ce0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jun 09 14:17:39 2014 +0000 @@ -0,0 +1,17 @@ +#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); + } +} \ No newline at end of file