4 years, 1 month ago.

Newbie - Need help identifying correct pin

This is a painfully dumb question but,

I am using DISCO-F469NI. I am trying to adapt a program that makes use of p30 it is declared as :

DigitalInOut DQ(p30);

In the pinout for the board I have I see nothing that is labeled p30. I have DO,D1,D2 etc. I am sure that p30 is defined in some header file but I have not been able to figure that out. Can anyone point me to why p30 is defined. I sure wish there was a 'Browse to definition' feature in the mbed IDE. So if anyone can suggest a way to accomplish "browse to definition" , I will stop asking dumb question. Thanks in advance for you help.

1 Answer

4 years, 1 month ago.

The pXX pinname shortcuts are only used for the original LPC1768 and LPC11U24 mbed boards. You have probably downloaded example code for one of these boards. The nucleo boards use the arduino style header and you can use pinnames such as D3 etc. You should check the boards platform page to find the right names. Note that you can also use the actual portpin name, something like PA_1. The pinnames are shortcuts or aliases for the actual portpin name. However, the naming conventions for portpin names also differs depending on the chip vendor. So you always need to check the names when porting software between platforms.