LED
Dependents: Semafor Karanovic_Semafor
led.cpp
- Committer:
- akaranovi
- Date:
- 2020-11-29
- Revision:
- 0:8b4a8e2414db
File content as of revision 0:8b4a8e2414db:
#include "led.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; }