.

Dependents:   Konstrukcijski_Blazevic kontrola_ulaza_IF

Revision:
1:aa26b9c6dc15
Parent:
0:b3bc716e5bea
--- a/Ledica.cpp	Tue Apr 06 12:07:11 2021 +0000
+++ b/Ledica.cpp	Fri May 07 08:44:05 2021 +0000
@@ -1,14 +1,13 @@
 #include "Ledica.h"
 #include "mbed.h"
+Indicator::Indicator(PinName lightPin) : light(lightPin) {
+    
+}
 
-Ledica::Ledica(PinName pin) : _pin(pin){
-    _pin = 0;
-    }
+void Indicator::light_on(int t, int v1, int v2) {
     
-void Ledica::status(int status){
-    _pin = status;
-    }
-void Ledica::flipp(){
-    _pin = !_pin;
-    }
-    
\ No newline at end of file
+    if(t>=v1 && t<v2)
+    light=1;
+    wait(0.00001);
+    light=0;
+}