This Feather has a lot going on! This page details all of the pin-specific information and various capabilities.
PrettyPins PDF on GitHub.
- USB C connector - This is used for power and data. Connect to your computer via a USB C cable to update firmware and edit code.
- LiPoly Battery connector - This 2-pin JST PH connector allows you to plug in LiPoly batteries to power the Feather. The Feather is also capable of charging batteries plugged into this port via USB.
- chg LED - This small amber LED is located below the USB C connector. This indicates the charge status of a connected LiPoly battery, if one is present and USB is connected. It is solid amber while charging. Note, it's normal for this LED to flicker when no battery is in place, that's the charge circuitry trying to detect whether a battery is there or not.
- GND - This is the common ground for all power and logic.
- BAT - This is the positive voltage to/from the 2-pin JST PH jack for the optional LiPoly battery.
- USB - This is the positive voltage to/from the USB C connector, if USB is connected.
- EN - This is the 3.3V regulator's enable pin. It's pulled up, so connect to ground to disable the 3.3V regulator.
- 3.3V - These pins are the output from the 3.3V regulator, they can supply 500mA peak.
I2C and SPI on RP2040
The RP2040 is capable of handling I2C, SPI and UART on many pins. However, there are really only two peripherals each of I2C, SPI and UART: I2C0 and I2C1, SPI0 and SPI1, and UART0 and UART1. So while many pins are capable of I2C, SPI and UART, you can only do two at a time, and only on separate peripherals, 0 and 1. I2C, SPI and UART peripherals are included and numbered below.
PWM on RP2040
The RP2040 supports PWM on all pins. However, it is not capable of PWM on all pins at the same time. There are 8 PWM "slices", each with two outputs, A and B. Each pin on the Feather is assigned a PWM slice and output. For example, A0 is PWM5 A, which means it is first output of the fifth slice. You can have up to 16 PWM objects on this Feather. The important thing to know is that you cannot use the same slice and output more than once at the same time. So, if you have a PWM object on pin A0, you cannot also put a PWM object on D10, because they are both PWM5 A. The PWM slices and outputs are indicated below. Note that PWM2 A and PWM3 B are not available on the this Feather because not all pins are broken out.
Analog Pins
The RP2040 has four ADCs. These pins are the only pins capable of handling analog, and they can also do digital.
- A0/GPIO26 - This pin is ADC0. It is also SPI1 SCK, I2C1 SDA and PWM5 A.
- A1/GPIO27 - This pin is ADC1. It is also SPI1 MOSI, I2C1 SCL and PWM5 B.
- A2/GPIO28 - This pin is ADC2. It is also SPI1 MISO, I2C1 SDA and PWM6 A.
- A3/GPIO29 - This pin is ADC3. It is also SPI1 CS, I2C0 SCL and PWM6 B.
Digital Pins
These are the digital I/O pins. They all have multiple capabilities.
- D24/GPIO24 - Digital I/O pin 24. It is also UART1 TX, I2C0 SDA, and PWM4 A.
- D25/GPIO25 - Digital I/O pin 25. It is also UART1 RX, I2C0 SCL, and PWM4 B.
- SCK/GPIO14 - The main SPI1 SCK. It is also I2C1 SDA, and PWM7 A.
- MO/GPIO15 - The main SPI1 MOSI. It is also I2C1 SCL, and PWM7 B.
- MI/GPIO8 - The main SPI1 MISO. It is also UART1 TX, I2C0 SDA, and PWM4 A.
- RX/GPIO1 - The main UART0 RX pin. It is also I2C0 SDA, SPI0 CS and PWM0 B.
- TX/GPIO0 - The main UART0 TX pin. It is also I2C0 SCL, SPI0 MISO and PWM0 A.
- D13/GPIO13 - Digital I/O pin 13. It is also SPI1 CS, UART0 RX, I2C0 SCL and PWM6 B.
- D12/GPIO12 - Digital I/O pin 12. It is also SPI1 MISO, UART0 TX, I2C0 SDA and PWM6 A.
- D11/GPIO11 - Digital I/O pin 11. It is also SPI1 MOSI, I2C1 SCL and PWM5 B.
- D10/GPIO10 - Digital I/O pin 10. It is also SPI1 SCK, I2C1 SDA and PWM5 A.
- D9/GPIO9 - Digital I/O pin 9. It is also SPI1 CS, UART1 RX, I2C0 SCL and PWM4 B.
- D6/GPIO6 - Digital I/O pin 6. It is also SPI0 SCK, I2C1 SDA, and PWM3 A.
- D5/GPIO5 - Digital I/O pin 5. It is also SPI0 CS, UART1 RX, I2C0 SCL, and PWM2 B.
- SCL/GP03 - The main I2C1 clock pin. It is also SPI0 MOSI, I2C1 SCL and PWM1 B.
- SDA/GP02 - The main I2C1 data pin. It is also SPI0 SCK, I2C1 SDA and PWM1 A.
CircuitPython I2C, SPI and UART
Note that in CircuitPython, there is a board object each for STEMMA QT, I2C, SPI and UART that use the connector and pins labeled on the Feather. You can use these objects to initialise these peripherals in your code.
-
board.STEMMA_I2C()
uses the STEMMA QT connector (in this case, SCL/SDA pins) -
board.I2C()
uses SCL/SDA pins -
board.SPI()
uses SCK/MO/MI pins -
board.UART()
uses RX/TX pins
Arduino I2C, SPI and UART
I2C, SPI and UART can be accessed with these objects in Arduino:
-
Wire
is used for the default I2C and STEMMA QT connector (GPIO2 and GPIO3). -
SPI
is used for the default SPI pins (GPIO14, GPIO15 and GPIO8). -
Serial1
is used for the default UART pins (GPIO0 and GPIO1).
The peripheral order is defined in the board support definition for Arduino. For example, you'll notice that even though the default I2C (GPIO2 and GPIO3) is located on I2C1, it is defined as Wire
rather than Wire1
.
GPIO Pins by Pin Functionality
Primary pins based on the silkscreen pin labels are bold.
I2C Pins
- I2C0 SCL: A3, D25, RX, D13, D9, D5
- I2C0 SDA: A2, D24, MISO, TX, D12
- I2C1 SCL: SCL, A1, MOSI, D11
- I2C1 SDA: SDA, A0, SCK, D10, D6
SPI Pins
- SPI0 SCK: D6, SDA
- SPI0 MOSI: SCL
- SPI0 MISO: TX
- SPI0 CS: RX, D5
- SPI1 SCK: SCK, A0, D10
- SPI1 MOSI: MOSI, A1, D11
- SPI1 MISO: MISO, A2, D24, D12
- SPI1 CS: A3, D25, D13, D9
UART Pins
- UART0 TX: TX, A2, D12
- UART0 RX: RX, A3, D13
- UART1 TX: D24, MISO
- UART1 RX: D25, D9, D5
PWM Pins
- PWM0 A: TX
- PWM0 B: RX
- PWM1 A: SDA
- PWM1 B: SCL
- PWM2 A: (none)
- PWM2 B: D5
- PWM3 A: D6
- PWM3 B: (none)
- PWM4 A: D24, MISO
- PWM4 B: D25, D9
- PWM5 A: A0, D10
- PWM5 B: A1, D11
- PWM6 A: A2, D12
- PWM6 B: A3, D13
- PWM7 A: SCK
- PWM7 B: MOSI
The DVI (digital video output) connector is located on the right side of the board. This connector allows you to connect your Feather directly to an HDMI monitor or television. It uses the following pins for DVI.
-
CKN - This is the clock - pin. Available in CircuitPython as
board.CKN
and Arduino asPIN_CKN
. -
CKP - This is the clock + pin. Available in CircuitPython as
board.CKP
and Arduino asPIN_CKP
. -
D0N - This is the data 0- pin. Available in CircuitPython as
board.D0N
and Arduino asPIN_D0N
. -
D0P - This is the data 0+ pin. Available in CircuitPython as
board.D0P
and Arduino asPIN_D0P
. -
D1N - This is the data 1- pin. Available in CircuitPython as
board.D1N
and Arduino asPIN_D1N
. -
D1P - This is the data 1+ pin. Available in CircuitPython as
board.D1P
and Arduino asPIN_D1P
. -
D2N - This is the data 2- pin. Available in CircuitPython as
board.D2N
and Arduino asPIN_D2N
. -
D2P - This is the data 2+ pin. Available in CircuitPython as
board.D2P
and Arduino asPIN_D2P
.
The connector's I2C pins are connected to the Feather SCL and SDA pins (through a safe level-shifter) to enable you to read the EDID and EEPROM of the connected display using those pins.
- SCL - Connected to Feather SCL.
- SDA - Connected to Feather SDA.
There are three pins from the DVI connector that are broken out to through-hole pads on the Feather. This allows you to easily connect to them.
- HPD - This is the Hot Plug Detect pin. It is located at the end of the 16-pin header on the bottom of the Feather. You can read this pin to know when a display has been connected.
- CEC - This pin is labeled CEC on the board silk. Consumer Electronic Control is a one-wire bidirectional serial bus that is standardized for remote control functions. It is connected to pin 14 on the DVI/HDMI connector.
- UTIL - This pin is labeled U on the board silk. It is reserved for future HDMI specification updates. It is connected to pin 17 on the DVI/HDMI connector.
The large square towards the middle is the RP2040 microcontroller, the "brains" of this Feather board.
The square towards the top-middle is the QSPI Flash. It is connected to 6 pins that are not broken out on the GPIO pads. It is used for program and data storage in Arduino and CircuitPython.
The Boot button is the button on the right. It is available as board.BOOT
in CircuitPython, and is available for use in Arduino as PIN_BUTTON
. It is also used to enter the bootloader. To enter the bootloader, press and hold Boot and then power up the board (either by plugging it into USB or pressing Reset). The bootloader is used to install/update CircuitPython.
The Reset button is on the left. It restarts the board and helps enter the bootloader. You can click it to reset the board without unplugging the USB cable or battery.
The RST pin is can be used to reset the board. Tie to ground manually to reset the board.
Above the pin label for D24 is the status NeoPixel LED. It is on GPIO4. In CircuitPython, the NeoPixel is available at board.NEOPIXEL
and the library for it is available in the bundle. In Arduino, it is accessible at PIN_NEOPIXEL
. The NeoPixel is powered by the 3.3V power supply but that hasn't shown to make a big difference in brightness or color. In CircuitPython, the LED is used to indicate the runtime status.
Above the USB C connector is the D13 LED. This little red LED is controllable in CircuitPython code using board.LED
, and in Arduino as PIN_LED
.
Towards the top of the board, a bit right of center, is the STEMMA QT connector! This means you can connect up all sorts of I2C sensors and breakouts, no soldering required! This connector uses the SCL and SDA pins for I2C, which end up being the RP2040's I2C1 peripheral. In CircuitPython, you can initialise the STEMMA connector with board.STEMMA_I2C()
(as well as with board.SCL
/board.SDA
). In Arduino it is Wire
.
Text editor powered by tinymce.