This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change TX_PIN_NUMBER to P1.00 on the nRF52840?

This is really a two part question.

1.  How do I even refer to pin P1.00?  It's clear that pin P0.06 is referred to simply as pin 6, but what is the naming convention for the P1.xx pins?

2.  Do I just hack the pca10056.h file directly to change the TX_PIN_NUMBER  definition?  If not, that, what do you recommend?

Please advise.

Parents Reply
  • Yipee!  I made the change by hacking pca10056.h to use this line instead, and it worked!  Slight smile

    #define TX_PIN_NUMBER  NRF_GPIO_PIN_MAP(1,0)   

    So, that part is good.  However, hacking SDK header files is problematic, because then different projects start to interfere with one another because they rely on different hacked SDK's.  Is there a more elegant solution than hacking the SDK directly?  

    i.e. question #1 is answered.  But, what is the answer to question #2 in the OP?

Children
No Data
Related