What are the "P" pins for?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
harambecute101
Posts: 12
Joined: Mon Nov 28, 2016 10:04 pm

What are the "P" pins for?

Post by harambecute101 » Fri Dec 23, 2016 5:24 am

Hi,
I have a pyboard V1.0 lite.
I was soldering on headers to my board and I found out that the 2nd row from the bottom of the board are all labeled as "p-something" and not X or Y, like on the sides of the board.

What are these for?
Are they analog or digital?
Why are they labeled "P?"

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: What are the "P" pins for?

Post by dhylands » Fri Dec 23, 2016 6:16 am

Looking at the schematic for the PYBLITE: http://micropython.org/resources/PYBLIT ... matics.pdf the P pins are all assigned to other functionality.

P1 - aka DFU
P2 - PB4 - Blue LED
P3 - PA15 - Yellow LED
P4 - PA14 - Green LED
P5 - PA13 - Red LED
P6 - VBACKUP - backup battery for RTC
P7 - V+
P8 - GND

The X and Y pins are a rotated version of each other, so that if you made an expansion board that fitted on the X pins, then you could rotate it 180 degrees and it would fit on the Y pins, with mostly the same functionality (as far as SPI, I2C, UART) is concerned.

harambecute101
Posts: 12
Joined: Mon Nov 28, 2016 10:04 pm

Re: What are the "P" pins for?

Post by harambecute101 » Fri Dec 23, 2016 8:47 am

THANKS!!!!!! That was the info I was looking for the past month!!!! THANKS!!!

smurfendrek123
Posts: 6
Joined: Sat Dec 10, 2016 3:46 pm

Re: What are the "P" pins for?

Post by smurfendrek123 » Sun Dec 25, 2016 11:48 pm

What are pin p2 - p5 supposed to be used for? Should one use them like other gpio pins?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: What are the "P" pins for?

Post by dhylands » Mon Dec 26, 2016 6:14 am

They're connected to the LEDs on the board. You can use them as general purpose outputs if you don't mind the LEDs flashing and don't plan on using the LEDs for anything else.

It would allow you to install external LEDs (in the event that the on-board ones weren't visible).

Post Reply