Get info and pre-defined pins of Arduino Nano RP2040 Connect
Here is a simple code to get board info and pre-defined pins of Arduino Nano RP2040 Connect.
rp2Connect_info.inovoid setup() {
delay(2000);
Serial.begin(115200);
delay(200);
Serial.println("\n- Arduino Nano RP2040 Connect info -");
Serial.println("-------------------------------------");
Serial.println("BOARD_NAME:\t\t" + String(BOARD_NAME));
Serial.println("BOARD_VENDORID:\t\t" + String(BOARD_VENDORID, HEX));
Serial.println("BOARD_PRODUCTID:\t" + String(BOARD_PRODUCTID, HEX));
Serial.println();
Serial.println("LED_BUILTIN:\t" + String(LED_BUILTIN));
Serial.println();
Serial.println("SPI_MISO:\t" + String(SPI_MISO));
Serial.println("SPI_MOSI:\t" + String(SPI_MOSI));
Serial.println("SPI_SCK:\t" + String(SPI_SCK));
Serial.println();
Serial.println("I2C_SDA:\t" + String(I2C_SDA));
Serial.println("I2C_SCL:\t" + String(I2C_SCL));
Serial.println();
Serial.println("SERIAL1_TX:\t" + String(SERIAL1_TX));
Serial.println("SERIAL1_RX:\t" + String(SERIAL1_RX));
Serial.println();
Serial.println("A0:\t" + String(A0));
Serial.println("A1:\t" + String(A1));
Serial.println("A2:\t" + String(A2));
Serial.println("A3:\t" + String(A3));
Serial.println();
}
void loop() {
// put your main code here, to run repeatedly:
}
output
- Arduino Nano RP2040 Connect info -
-------------------------------------
BOARD_NAME: Nano RP2040 Connect
BOARD_VENDORID: 2341
BOARD_PRODUCTID: 5e
LED_BUILTIN: 13
SPI_MISO: 4
SPI_MOSI: 7
SPI_SCK: 6
I2C_SDA: 12
I2C_SCL: 13
SERIAL1_TX: 0
SERIAL1_RX: 1
A0: 14
A1: 15
A2: 16
A3: 17
Comments
Post a Comment