Tipkalo Linija

Dependents:   Lilnija_29012017

Revision:
0:9624782a02b3
Child:
2:9085093855f0
Child:
3:b9ab9a191011
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tipkalo.h	Sun Jan 29 23:31:09 2017 +0000
@@ -0,0 +1,29 @@
+#ifndef TIPKALO_H
+#define TIPKALO_H
+
+#define t_milisec_pritisnut = 200;
+
+typedef enum {
+    TDOLJE = 1, TGORE = 0, TNEZNAM = -1
+};
+
+typedef struct t_status {
+    int radim;                // tukljucen ili tiskljucen
+    int pritisnut;
+} t_status;
+
+
+//---------------TIPKALO------------------//
+class Tipkalo {
+    public:
+        Tipkalo(PinName T);
+        t_status tDolje();
+    private:
+        InterruptIn _T;
+        int _countT;
+};
+
+//-----------TIPKALO JOYSTICK-------------//
+// To je zapravo TIPKALO
+
+#endif /* TIPKALO_H */
\ No newline at end of file