0

Feather nRF52840 Express pinout diagram similar to nRF52832
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather nRF52840 Express pinout diagram similar to nRF52832

by whippjs on Thu Apr 25, 2019 2:48 pm

I am using all the GPIO on a nRF52840 and am having difficulty referencing the pins in code.
Previously I used a nRF52832 and was able to reference pins in the code using the port pin numbers without the leading zero and decimal using the pinout diagram here:
https://learn.adafruit.com/bluefruit-nr ... ice-pinout
I tried to do this on the nRF52840 but was unable to find a similar diagram and attempted to use the schematic (https://learn.adafruit.com/introducing- ... /downloads) and identify the port pin number but the nRF52840 has 1.XX port pin numbers and that does not appear to work in the code.
I tried to identify a tutorial for referring to pins related to pinout diagrams but could not find anything. Here is a sample of the code I am using to assign the pins:
Code: Select all | TOGGLE FULL SIZE
byte colPinsTH[COLSTH] = {0.14,1.09}; //connect to the row pinouts of the keypad
byte rowPinsTH[ROWSTH] = {0.04, 0.05, 0.30, 0.28, 0.02}; //connect to the column pinouts of the keypad

whippjs
 
Posts: 3
Joined: Thu Apr 25, 2019 11:44 am

Re: Feather nRF52840 Express pinout diagram similar to nRF52

by bzy on Thu Apr 25, 2019 5:59 pm

Refer to `variant.cpp` in the `hardware/nrf52/0.10.1/variants/feather_nrf52840_express` for an annotated mapping of Arduino pin indices to nRF52840 pins:

https://github.com/adafruit/Adafruit_nR ... ariant.cpp

bzy
 
Posts: 3
Joined: Thu Oct 19, 2017 3:26 pm

Please be positive and constructive with your questions and comments.