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.
On_Off.cpp
- Committer:
- ekunovic
- Date:
- 2021-02-20
- Revision:
- 0:5cd439f68160
File content as of revision 0:5cd439f68160:
#include "On_Off.h"
#include "mbed.h"
LED::LED(PinName pin) : _pin(pin)
{
_pin = 0;
}
//Metoda određuje stanje LED
void LED::status(int status)
{
_pin = status;
}
//Metoda mijenja stanje na LED
void LED::flip()
{
_pin = !_pin;
}