A keypad library used in one of my projects.
Keypad.h
- Committer:
- tgrgic1
- Date:
- 2021-05-03
- Revision:
- 1:b9458512717a
- Parent:
- 0:1ae25267abc0
File content as of revision 1:b9458512717a:
#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(); void colActivate(int state); }; #endif