I realize “There is no guarantee on functionality.”
That said, I still have a question. It boils down to if I have the correct CPU Pin selected (if the onboard D1 Led is implemented in the firmware).
It does not matter if it works or not . I wanted to double check if I am doing it correctly.
G400-D. Pin 147, PD3 (The Pinout does not show any information)
Reference D1/R11 JP2_14-PD3 Shown in G400HDR_Breakout_SCH.pdf.
There is a physical connection from D1 - R11 to PD3 - I have no idea if JP2_14 - PD3 is really connected to Pin 147 of the G400-D.
Cpu.Pin PD3 = (Cpu.Pin) (3*32+3);
Port D, (A=0, B=1, C=2, D=3). Therefore 3[D] * 32 + pin number .
The IO pin I needed is PD3 - (3[D]*32 = 96 + 3) is (CPU.Pin)99
//#### Exception System.Exception - CLR_E_PIN_UNAVAILABLE (1) #### D1LED = new OutputPort((Cpu.Pin)99, true);
Sorry to bother on a simple thing but I wanted to be sure I was using the correct method to access the LED D1.