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
00001 #include "mbed.h" 00002 #include "rgbled.h" 00003 00004 int main(void) 00005 { 00006 rgbled rgb(PTB22, PTE26, PTB21); // create rgb object with pin definitions for FRDM-K64F board 00007 rgb.active(false); // set led output to active low 00008 rgb.set(none); // set led output of all off 00009 while(1){ 00010 rgb.set(red); 00011 wait(1); 00012 rgb.set(yellow); 00013 wait(1); 00014 rgb.set(green); 00015 wait(1); 00016 rgb.set(cyan); 00017 wait(1); 00018 rgb.set(blue); 00019 wait(1); 00020 rgb.set(magenta); 00021 wait(1); 00022 } 00023 }
Generated on Wed Jul 20 2022 23:24:26 by
1.7.2
