Learning Cobra II: Can I use the LDR button?

Trying to learn my way around the cobra.

I have been able to do several things already… Found my wifi network, flash the debug led.

Now I’d like to use one of those fancy LDR buttons as a normal buton (if possible). I found old posts doing it with other units, but that code didn’t work once I adjusted it for the G120.

InputPort ldrButton = new InputPort(G120.Pin.P2_10, false,Port.ResistorMode.PullUp);
ldrButton.OnInterrupt += ldrButton_OnInterrupt;

So is it possible & if so how?

On other boards, the LDR button is only used at boot and can then be re-purposed. I believe that this is not the case on G120, it’s dedicated.