Biblioteka za ledice
Diff: led.h
- Revision:
- 0:723bf76017a4
diff -r 000000000000 -r 723bf76017a4 led.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/led.h Wed Dec 01 07:20:49 2021 +0000 @@ -0,0 +1,14 @@ +#ifndef LED_H +#define LED_H +#include "mbed.h" +//Klasa koja daje funkcije za mjenjanje stanja +class LED +{ +public: + LED(PinName pin); + void stanje(int stanje); + void promijeni(); +private: + DigitalOut _pin; +}; +#endif \ No newline at end of file