#include #include #include #include /* Standard headers (recommended) */ #include #include #include #include #include #include "key_helper.h" uint8_t kb_Falling[8]; uint8_t kb_Rising[8]; void kb_scan_edge(){ int i; static uint8_t kb_Previous[8]; kb_Scan(); for(i = 0; i < 8; i++){ kb_Rising[i] = (kb_Data[i] ^ kb_Previous[i]) & kb_Data[i]; kb_Falling[i] = (kb_Data[i] ^ kb_Previous[i]) & kb_Data[i]; kb_Previous[i] = kb_Data[i]; } }