pinout-xyz / Pinout.xyz

Source files for the Raspberry Pi Pinout documentation website.
http://pinout.xyz/
Creative Commons Attribution Share Alike 4.0 International
704 stars 199 forks source link

UART on Pi zero #428

Open eiffel31 opened 3 years ago

eiffel31 commented 3 years ago

On this page https://pinout.xyz/pinout/uart# UARTs available for Pi 2, 3, 4 are listed. Adding Pi zero could be helpful.

Thanks for this very practical website.

lurch commented 3 years ago

The pinout on the Pi Zero is identical to the pinout on the Pi2 & Pi3 (and the Pi1 A+ / B+).

lurch commented 3 years ago

I've also just spotted that that page lists GPIOs 0, 4, 8, 12 & 14 as "TXD" and GPIOs 1, 5, 9, 13 & 15 as "RXD"; but fails to differentiate that some are for different UARTs.

And I was confused by GPIOs 0, 1, 4, 5, 8 & 9 being listed as UART pins, when https://elinux.org/RPi_BCM2835_GPIOs claims that they aren't, until I realised that this is also including the UART pins for Pi4 https://elinux.org/RPi_BCM2711_GPIOs (In which case, https://pinout.xyz/pinout/i2c and https://pinout.xyz/pinout/spi should probably also list the additional I2C and SPI pins available on the Pi 4? See also #322 )

Gadgetoid commented 3 years ago

Raised a new PR - #431 - to try and address this.

Looks like the elinux wiki has a bug, listing GPIO3 both for UART2 CTS and RTS. I've assumed so and labelled GPIO2/GPIO3.

lurch commented 3 years ago

Looks like the elinux wiki has a bug, listing GPIO3 both for UART2 CTS and RTS.

I've just fixed that typo, thanks :+1: (the big table above that was correct, the typo was only in the second table)