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.cpp
- Committer:
- rzalog
- Date:
- 2019-05-05
- Revision:
- 0:7a97ebb833eb
File content as of revision 0:7a97ebb833eb:
#include "led.h"
#include "pins.h"
Led::Led(PinName pin) : m_led(pin) {
}
void Led::toggle() {
m_led = !m_led;
}
void Led::on() {
m_led = 1;
}
void Led::off() {
m_led = 0;
}