PURS_seminar

Dependents:   TipkovnicaZadnje

Revision:
0:19f75d1f3ea2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/KEY_PAD.h	Wed Jan 10 16:03:17 2018 +0000
@@ -0,0 +1,46 @@
+#ifndef KEY_PAD
+#define KEY_PAD
+
+volatile extern int row=0;
+volatile extern int col=0;
+volatile extern int key=0;
+volatile extern int step=0;
+volatile extern int code=0;
+volatile extern int pass_code=0;
+
+class KEY_PAD {
+    
+    public:
+    
+    private:
+    
+        InterruptIn red1;
+        InterruptIn red2;
+        InterruptIn red3;
+        InterruptIn red4;
+        
+        BusInOut stupci(stupac1, stupac2, stupac3);
+    
+void init();
+
+void make_num();
+
+void make_code();
+
+void shift();
+
+void get_key();
+
+void get_row1();
+
+void get_row2();
+
+void get_row3();
+
+void get_row4();
+
+void enable_keys();
+    
+};
+
+#endif
\ No newline at end of file