Does anyone know how to use the DL40 pin as input instead output ?
In the example of wiki register 3 should specify the direction, but how to read the state then?
thanks
Does anyone know how to use the DL40 pin as input instead output ?
In the example of wiki register 3 should specify the direction, but how to read the state then?
thanks
Google “lpc11xx.cmsis.driver.library” then you will see their example code, follow
GPIO_ReadInputPin(uint8_t port, uint32_t pin)
you will see how they read the state.
Hope this is what you need