Analog and Digital in the same pin
sorry for my english
I have a LCD TFT 480x320 with touch, and the pins like for the arduino. He is working very fine with STM32F407ZG, its all OK, I converted MCUFRIEND_KBV, with help from developer, to stm32. But i need to use the touch, but theproblem is in this. The touch, share pins with the digital pins. the touch analog read is in the same pin of the CS (sample).
In Arduino, its easy, only change pinmode from digital to analog, read analog, and then turn again to digital.
But in stm32cubeide, where i need to turn on the ADC and INx on the .ioc, I need to know. Can I turn on the ADC, and in the run time, turn off to use the pin as digital, and turn on only when i need to read the touch?
Thanks a lot.
Moacir Jr.
