0

Grand central m4 RGB pinout?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Grand central m4 RGB pinout?

by josephchrzempiec on Tue May 18, 2021 11:58 pm

Hello i have tried to look up the grand central m4 board for the RGB pinout and found out it is on Pin 88. When i look up the processor it is the ATSAMD51P20A-AU processor. And i tried to look at the pinout and pin 88 says Resetn pin. Am i wrong? I know pin 88 works when i assign it to the neo pixel sketch. But when i look the pinout up it says its a reset pin. Am i wrong does anyone know of this?


Joseph

josephchrzempiec
 
Posts: 74
Joined: Tue May 12, 2015 4:34 am

Re: Grand central m4 RGB pinout?

by dastels on Wed May 19, 2021 9:46 am

The pin numbers in Arduino and CircuitPython don't equate to pins on the MCU.

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Re: Grand central m4 RGB pinout?

by viatorus on Thu Jun 03, 2021 11:54 am

Hello,

thank you for your reply.

Where do we find a mapping to know which board pin number is which concrete port pin for the MCU?

For example the red LED of the grand central M4 should be on D13. The MCU port/pin is PB01.

I didn't find any references anywhere. I looked it up in the UF2-Bootloader.

viatorus
 
Posts: 1
Joined: Thu Jun 03, 2021 11:47 am

Re: Grand central m4 RGB pinout?

by dastels on Thu Jun 03, 2021 2:11 pm

You can look in the pins.c file in the CircuitPython source boards directory for the corresponding board. For example, for the GrandCentral M4 Express this is https://github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/grandcentral_m4_express/pins.c.
The bulk of the file is the mapping from CircuitPython pin names (which correspond closely enough to Arduino pins names) to MCU pins.

E.g.:
Code: Select all | TOGGLE FULL SIZE
{ MP_OBJ_NEW_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PB01) },


is the mapping from D13 to PB01.

Dave

dastels
 
Posts: 6868
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.