LED
flipLED.cpp
- Committer:
- nbarnjak
- Date:
- 2021-05-06
- Revision:
- 2:10452462b2fc
- Parent:
- 1:a98432d290c3
File content as of revision 2:10452462b2fc:
#include "klasaLED.h" #include "mbed.h" LED_::LED_(PinName pin) : _pin(pin) { _pin = 0; } //Određivanje stanja na LED void LED_::status(int status) { _pin = status; } //Mijenjanje stanja na LED void LED_::flip() { _pin = !_pin; }