how to Read value of an output GPIO with NCS

Hi,

I am develop with nRF5340, ncs1.5.1.

I am puzzled how to read the value of an output GPIO.

I saw the function gpio_pin_get_raw and gpio_port_get_raw, the comment said they are used to get the value of input pin/port.

1、How can I read value from output GPIO?

2、I tried to configure a GPIO with the code below, and am surprised of than I can get the value of GPIO with gpio_pin_get_raw. will that have any bad impact……

Parents Reply Children
No Data
Related