LED
Diff: klasaLED.h
- Revision:
- 1:a98432d290c3
- Parent:
- 0:8b4a8e2414db
- Child:
- 2:10452462b2fc
diff -r 8b4a8e2414db -r a98432d290c3 klasaLED.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/klasaLED.h Thu May 06 13:26:21 2021 +0000 @@ -0,0 +1,14 @@ +#ifndef MBED_LED_H +#define MBED_LED_H +#include "mbed.h" +//Klasa za LED koja daje funkcije za mijenjanje stanja +class LED +{ +public: + LED(PinName pin); + void status(int status); + void flip(); +private: + DigitalOut _pin; +}; +#endif \ No newline at end of file