Revision:
0:1ae25267abc0
Child:
1:b9458512717a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Keypad.h	Mon May 03 21:40:24 2021 +0000
@@ -0,0 +1,25 @@
+#ifndef MBED_KEYPAD_H
+#define MBED_KEYPAD_H
+
+#include "mbed.h"
+
+class Keypad
+{
+public:
+    Keypad(PinName row1, PinName row2, PinName row3, PinName row4,PinName col1, PinName col2, PinName col3, PinName col4);
+       
+    char keyscan();
+    void cetvrtiStupac();
+
+private:
+    BusOut _col;
+    BusIn _row;
+    
+    void visokoStanje();
+    void prviStupac();
+    void drugiStupac();
+    void treciStupac();
+    
+};
+
+#endif
\ No newline at end of file