Promjena stanja ledice
Diff: On_Off.h
- Revision:
- 0:5cd439f68160
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/On_Off.h Sat Feb 20 16:19:16 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