#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#include "esp_log.h"
void keypadscanning(){
char readKeyPadSingleScan(char _keys[4][4], uint8_t _scanColPins[4], uint8_t _rowPins[4]) {
uint8_t scanVal;
}
// 1. Set a default return value (when no key pressed)
char retVal(){
return -1;
}
//2. Add a print statement for debugging that gives a message about scanning in process..
printf("scanning in process '%C'",readKeyPadSingleScan);
//3. Use the necessary statements from the scan_keypad() function for the scanning and detecting a key press process. As this function has local variables and arrays, make sure to use them instead of using the global ones from Exercise 2
return retVal;
}
// 4. In the test code (main), make sure to pass the global parameters at function call, and add a statement to prove that the readKeyPadSingleScan function is a non-blocking code.
void app_main(){
}