A keypad library used in one of my projects.

Committer:
tgrgic1
Date:
Mon May 03 21:40:24 2021 +0000
Revision:
0:1ae25267abc0
Child:
1:b9458512717a
Moja keypad biblioteka

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tgrgic1 0:1ae25267abc0 1 #ifndef MBED_KEYPAD_H
tgrgic1 0:1ae25267abc0 2 #define MBED_KEYPAD_H
tgrgic1 0:1ae25267abc0 3
tgrgic1 0:1ae25267abc0 4 #include "mbed.h"
tgrgic1 0:1ae25267abc0 5
tgrgic1 0:1ae25267abc0 6 class Keypad
tgrgic1 0:1ae25267abc0 7 {
tgrgic1 0:1ae25267abc0 8 public:
tgrgic1 0:1ae25267abc0 9 Keypad(PinName row1, PinName row2, PinName row3, PinName row4,PinName col1, PinName col2, PinName col3, PinName col4);
tgrgic1 0:1ae25267abc0 10
tgrgic1 0:1ae25267abc0 11 char keyscan();
tgrgic1 0:1ae25267abc0 12 void cetvrtiStupac();
tgrgic1 0:1ae25267abc0 13
tgrgic1 0:1ae25267abc0 14 private:
tgrgic1 0:1ae25267abc0 15 BusOut _col;
tgrgic1 0:1ae25267abc0 16 BusIn _row;
tgrgic1 0:1ae25267abc0 17
tgrgic1 0:1ae25267abc0 18 void visokoStanje();
tgrgic1 0:1ae25267abc0 19 void prviStupac();
tgrgic1 0:1ae25267abc0 20 void drugiStupac();
tgrgic1 0:1ae25267abc0 21 void treciStupac();
tgrgic1 0:1ae25267abc0 22
tgrgic1 0:1ae25267abc0 23 };
tgrgic1 0:1ae25267abc0 24
tgrgic1 0:1ae25267abc0 25 #endif