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:
- bohocode
- Date:
- 2015-01-29
- Revision:
- 1:a43483907ce0
- Parent:
- 0:7c0b6a649748
File content as of revision 1:a43483907ce0:
#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(yellow); wait(1); rgb.set(green); wait(1); rgb.set(cyan); wait(1); rgb.set(blue); wait(1); rgb.set(magenta); wait(1); } }