Tipkalo Linija

Dependents:   Lilnija_29012017

Revision:
0:9624782a02b3
Child:
1:fa666d2759a4
diff -r 000000000000 -r 9624782a02b3 tipkalo.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tipkalo.cpp	Sun Jan 29 23:31:09 2017 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+#include "tipkalo.h"
+
+Tipkalo::Tipkalo(PinName T) : _T(T), _countT(0) {
+    
+    t_status status = new t_status;
+    
+    Tipkalo::t_status.tiskljucen = TDOLJE;
+    _T.fall(this, &Tipkalo::tDolje);
+    
+    Timer.debounce;
+    debounce.start();
+}
+
+t_status Tipkalo::tDolje() {
+    
+    status.radim = TDOLJE;
+    _countT++;
+    status.pritisnut = _countT;
+    return TGORE;
+    
+}
+
+
+
+
+    
+    
\ No newline at end of file