Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years ago.
How does mbed refer to the P1.xx pins on the nRF52840-DK?
For instance, for pin P1.00, I tried P1_00, which would make sense since P0.13 is recognized as P0_13 by the compiler. However, the compiler does not recognize P1_00 and throw an error message:
Error: Identifier "P1_00" is undefined in "main.cpp", Line: 9, Col: 12 for the line: Serial pc(P1_00, P0_13);
What should I do instead?
1 Answer
7 years ago.
Hi David,
The pin mappings for the nRF52840_DK are defined here:
For Port 1 Pin 0 you must use P1_0 (or p32) instead of P1_00.
-Ralph, Team Mbed