You are reading a single comment by @Jean-Philippe_Rey and its replies. Click here to read the full conversation.
  • It seems that nrf52 gpio input registers can't be read if gpio is set as output. Anyway, for a LED, which does have the exact logic level you previously imposed to it ( which may not be the case if output is open drain and used for communication such as I2C) , you should be able to get the current status of the LED by using the peek() method on the OUTPUT register, because digitalRead() won't work as it may poll INPUT register only.

About