adl_io_handle = adl_ioSubscribe ( ADL_IO_Q24CLASSIC_GPIO_0, 1, 1, 0, NULL); //always return the value 5
adl_io_handle always return the value 5 and i assume ioSubscribe is successfull.
I use the following code to read the current state of the input. I call this from a Timer Handler every 1 second.
io_value=adl_ioRead(adl_io_handle);
I tap pin #47 (GPIO_0) of the module to ground from time to time but it always return -5. It seems no state change happens. Im expecting io_value to change. What could be the problem?
The datasheet did not say anything about its open circuit state but that pin can also be used as CTS pin for UART2. Im new in open AT i just want to read state of a particular GPIO and count the number of times the input i subscribe changes state (from 1 to 0 or and vise versa). May i request a simple working code for this? Thank you very much for the help.