Grand central m4 RGB pinout?

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
josephchrzempiec
 
Posts: 77
Joined: Tue May 12, 2015 4:34 am

Grand central m4 RGB pinout?

Post by josephchrzempiec »

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

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Grand central m4 RGB pinout?

Post by dastels »

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

Dave

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

Re: Grand central m4 RGB pinout?

Post by viatorus »

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.

User avatar
dastels
 
Posts: 15655
Joined: Tue Oct 20, 2015 3:22 pm

Re: Grand central m4 RGB pinout?

Post by dastels »

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/circuitpyth ... ess/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

{ MP_OBJ_NEW_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PB01) },
is the mapping from D13 to PB01.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”