.
Dependents: Konstrukcijski_Blazevic kontrola_ulaza_IF
Diff: Ledica.h
- Revision:
- 1:aa26b9c6dc15
- Parent:
- 0:b3bc716e5bea
--- a/Ledica.h Tue Apr 06 12:07:11 2021 +0000 +++ b/Ledica.h Fri May 07 08:44:05 2021 +0000 @@ -1,13 +1,13 @@ -#ifndef MBED_LEDICA_H -#define MBED_LEDICA_H +#ifndef ledica_h +#define ledica_h #include "mbed.h" - -class Ledica{ - public: - Ledica(PinName pin); - void status(int status); - void flipp(); - private: - DigitalOut _pin; - }; +class Indicator{ +public: + Indicator(PinName light); + void light_on(int t, int v, int n); + +private: + DigitalOut light; + +}; #endif \ No newline at end of file