PURS_seminar
KEY_PAD.h
- Committer:
- resetar
- Date:
- 2018-01-10
- Revision:
- 0:19f75d1f3ea2
File content as of revision 0:19f75d1f3ea2:
#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