Hi guys! I have a GPIO configured MINI2440. Setting the pin 9 as output with direction OUT works fine, I can change the value from 0 and 1, the connected LED turns on and off. When I set the direction to IN, the value sets automatically to HIGH and I can not change the value anymore - it stays always HIGH. I want to set the value to LOW(0), connect a button to the pin 9 and to the +3.3V pin. When the button will be pressed, the voltage should be put on the pin 9 and change the value to HIGH(1). I will not use the user button connections on the connector 12. What should I do, to read the button state from the GPIO pin 9? Thanks a lot! K.
GPIO direction IN value always HIGH
Hi! Is the pull-up function disabled for the GPIO pin? If not, the value read from GPxDAT will be HIGH (1) when the pin is not connected.