Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Skool_wkshp_lib2015 by
keypad.h
00001 #ifndef KEYPAD_H 00002 #define KEYPAD_H 00003 00004 #include "mbed.h" 00005 00006 // Define your own keypad values 00007 const char Keytable[] = { '1', '2', '3', 'A', // r0 00008 '4', '5', '6', 'B', // r1 00009 '7', '8', '9', 'C', // r2 00010 '*', '0', '#', 'D' // r3 00011 }; 00012 // c0 c1 c2 c3 00013 const uint16_t rows[4] = {GPIO_PIN_5, GPIO_PIN_6, GPIO_PIN_8, GPIO_PIN_9}; 00014 const uint16_t cols[4] = {GPIO_PIN_10, GPIO_PIN_11, GPIO_PIN_12, 0xFFFF}; 00015 //const int nrows = 4; 00016 const int ncols = 3; 00017 00018 void EXTI9_5_IRQHandler(void); 00019 void HAL_GPIO_EXTI_Callback(uint16_t pin); 00020 void Init_keypad(void); 00021 int Poll_keypad_vert(void); 00022 int Poll_keypad_yesno(void); 00023 int Poll_keypad_full(void); 00024 00025 #endif
Generated on Thu Jul 14 2022 17:13:24 by
1.7.2
