Skip to content

Support for Pico second serial port #832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions variants/RASPBERRY_PI_PICO/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ static const uint8_t A3 = PIN_A3;
#define ADC_RESOLUTION 12

// Serial
#define PIN_SERIAL_TX (0ul)
#define PIN_SERIAL_RX (1ul)
#define PIN_SERIAL1_TX (0ul)
#define PIN_SERIAL1_RX (1ul)
#define PIN_SERIAL2_TX (8ul)
#define PIN_SERIAL2_RX (9ul)

// SPI
#define PIN_SPI_MISO (16u)
Expand All @@ -56,9 +58,11 @@ static const uint8_t SCK = PIN_SPI_SCK;
#define PIN_WIRE_SDA (4u)
#define PIN_WIRE_SCL (5u)

#define SERIAL_HOWMANY 1
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))
#define SERIAL_HOWMANY 2
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL1_TX))
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL1_RX))
#define SERIAL2_TX (digitalPinToPinName(PIN_SERIAL2_TX))
#define SERIAL2_RX (digitalPinToPinName(PIN_SERIAL2_RX))

#define SERIAL_CDC 1
#define HAS_UNIQUE_ISERIAL_DESCRIPTOR
Expand Down