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.
Led/Led.cpp
- Committer:
- Toary
- Date:
- 2015-10-22
- Revision:
- 0:f37ec9490923
File content as of revision 0:f37ec9490923:
#include "Led.h"
Led::Led(string s)
{
if(s == "red")
pin = PD_14;
l = new DigitalOut(pin);
}
void Led::On()
{
l->write(1);
}
void Led::Off()
{
l->write(0);
}