cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Group, I'm setting up the stm32h747i-disco (Joystick) by setting ports GPIOK - PK2,PK3,PK4,PK5 and PK6 respectively to inputs with no pull ups/downs. In Touch GFX, I'm calling a virtual function to signal when the selected direction goes low.

Hiram Hyman
Associate III

The voltage measured was approximately 3.3v at the pins of the joystick. As the direction changes the voltage drops to 0vs. I'm yet to work with the task and I understand that all inputs on the GPIO pins are set to analog by default.

My question is, what is the possible cause of not reading the inputs of this unit considering my simple setup? Please point me to the direction where I could read more about this Board.

Thanks in advance,

Hiram

2 REPLIES 2
TDK
Guru

You should set them as inputs with pullups. The buttons will ground each signal. Either poll the pin states or connect them to EXTI to be notified of a falling edge.

If you feel a post has answered your question, please click "Accept as Solution".
Hiram Hyman
Associate III

Hi!

It's been a while but, I found the issue with your help a while ago however.

First, I did have to change the device to input and make sure I was noticing when the interrupt occurred.

Thanks for your help!

Hiram

HXE