PURS_seminar
Embed:
(wiki syntax)
Show/hide line numbers
KEY_PAD.h
00001 #ifndef KEY_PAD 00002 #define KEY_PAD 00003 00004 volatile extern int row=0; 00005 volatile extern int col=0; 00006 volatile extern int key=0; 00007 volatile extern int step=0; 00008 volatile extern int code=0; 00009 volatile extern int pass_code=0; 00010 00011 class KEY_PAD { 00012 00013 public: 00014 00015 private: 00016 00017 InterruptIn red1; 00018 InterruptIn red2; 00019 InterruptIn red3; 00020 InterruptIn red4; 00021 00022 BusInOut stupci(stupac1, stupac2, stupac3); 00023 00024 void init(); 00025 00026 void make_num(); 00027 00028 void make_code(); 00029 00030 void shift(); 00031 00032 void get_key(); 00033 00034 void get_row1(); 00035 00036 void get_row2(); 00037 00038 void get_row3(); 00039 00040 void get_row4(); 00041 00042 void enable_keys(); 00043 00044 }; 00045 00046 #endif
Generated on Fri Jul 15 2022 23:59:29 by 1.7.2