Skip to content

Commit

Permalink
Switch UART0 to GPIO 16 (TX) & GPIO 17 (RX)
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
  • Loading branch information
Noltari committed Nov 4, 2022
1 parent 01e7831 commit 3aa5d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Raspberry Pi Pico Pinout

| Raspberry Pi Pico GPIO | Function |
|:----------------------:|:--------:|
| GPIO0 (Pin 1) | UART0 TX |
| GPIO1 (Pin 2) | UART0 RX |
| GPIO16 (Pin 21) | UART0 TX |
| GPIO17 (Pin 22) | UART0 RX |
| GPIO4 (Pin 6) | UART1 TX |
| GPIO5 (Pin 7) | UART1 RX |
4 changes: 2 additions & 2 deletions uart-bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const uart_id_t UART_ID[CFG_TUD_CDC] = {
.inst = uart0,
.irq = UART0_IRQ,
.irq_fn = &uart0_irq_fn,
.tx_pin = 0,
.rx_pin = 1,
.tx_pin = 16,
.rx_pin = 17,
}, {
.inst = uart1,
.irq = UART1_IRQ,
Expand Down

0 comments on commit 3aa5d05

Please sign in to comment.