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.
Revision 9:dc800c7bf78e, committed 2015-12-10
- Comitter:
- ciryk
- Date:
- Thu Dec 10 14:51:05 2015 +0000
- Parent:
- 8:13f18147d76a
- Commit message:
- Main added;
Changed in this revision
main.cpp | Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Dec 10 14:48:42 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include "mbed.h" - -DigitalOut myled(LED1); - -int main() { - while(1) { - Color* chosen = new Color(Color::RED); - - Color* rood = new Color(Color::RED); - Color* groen = new Color(Color::GREEN); - Color* blauw = new Color(Color::BLUE); - Color* white = new Color(Color::WHITE); - /*Color* rood = new Color(Color::RED); - Color* rood3 = new Color(216711680);*/ - - RGB* myLed = new RGB(p23,p24,p25); - - - myLed->setColor(chosen); - wait(0.3); - myLed->setColor(white); - wait(0.3); - } -} - -