.
led.cpp
- Committer:
- Mariobrckovic
- Date:
- 2021-04-06
- Revision:
- 0:324f895054e0
File content as of revision 0:324f895054e0:
#include "led.h" #include "mbed.h" LED::LED(PinName pin) : _pin(pin) { _pin = 0; } //metoda određivanja stanja led diode void LED::stanje(int stanje) { _pin = stanje; } //metoda promjena stanja led diode void LED::promjena() { _pin = !_pin; }