List pins of Nologo UNO R4 WiFi

UnoR4WiFi_info.ino, list pre-defined pins of Uno R4 WiFi.

/*
  Exercise run on Uno R4 WiFi
  to get pins info.
*/

void setup() {

  // set LED pin to output mode
  pinMode(LED_BUILTIN, OUTPUT);
  
  blinkLED();
  blinkLED();
  blinkLED();

  Serial.begin(9600);
  delay(500);

  Serial.println();
  Serial.println("-----------------------------");
  Serial.println("\n- Uno R4 WiFi pins info -");
  Serial.println("-----------------------------");
  Serial.println("USB_NAME:\t" + String(USB_NAME));
  Serial.println("USB_VID:\t" + String(USB_VID, HEX));
  Serial.println("USB_PID:\t" + String(USB_PID,  HEX));
  Serial.println();

  Serial.println("LED_BUILTIN:\t" + String(LED_BUILTIN));
  Serial.println();

  Serial.println("MOSI:\t" + String(MOSI));
  Serial.println("MISO:\t" + String(MISO));
  Serial.println("SCK:\t" + String(SCK));
  Serial.println("SS:\t" + String(SS));
  Serial.println();

  Serial.println("SDA:\t" + String(SDA));
  Serial.println("SCL:\t" + String(SCL));
  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("A4:\t" + String(A4));
  Serial.println("A5:\t" + String(A5));
  Serial.println();

  Serial.println("D0:\t" + String(D0));
  Serial.println("D1:\t" + String(D1));
  Serial.println("D2:\t" + String(D2));
  Serial.println("D3:\t" + String(D3));
  Serial.println("D4:\t" + String(D4));
  Serial.println("D5:\t" + String(D5));
  Serial.println("D6:\t" + String(D6));
  Serial.println("D7:\t" + String(D7));

  Serial.println("D8:\t" + String(D8));
  Serial.println("D9:\t" + String(D9));
  Serial.println("D10:\t" + String(D10));
  Serial.println("D11:\t" + String(D11));
  Serial.println("D12:\t" + String(D12));
  Serial.println("D13:\t" + String(D13));
  Serial.println("D14:\t" + String(D14));
  Serial.println("D15:\t" + String(D15));
  Serial.println();

}

void blinkLED(){
  //turn off LED
  digitalWrite(LED_BUILTIN, LOW);
  delay(300);

  //turn on LED
  digitalWrite(LED_BUILTIN, HIGH);
  delay(200);
}

// the loop function runs over and over again forever
void loop() {
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);   //LED_BUILTIN Off
  delay(1000);
  digitalWrite(LED_BUILTIN, HIGH);  ////LED_BUILTIN On
  
}


output

-----------------------------

- Uno R4 WiFi pins info -
-----------------------------
USB_NAME:	UNO R4 WiFi
USB_VID:	2341
USB_PID:	6d

LED_BUILTIN:	13

MOSI:	11
MISO:	12
SCK:	13
SS:	10

SDA:	18
SCL:	19

A0:	14
A1:	15
A2:	16
A3:	17
A4:	18
A5:	19

D0:	0
D1:	1
D2:	2
D3:	3
D4:	4
D5:	5
D6:	6
D7:	7
D8:	8
D9:	9
D10:	10
D11:	11
D12:	12
D13:	13
D14:	14
D15:	15




Comments

Popular posts from this blog

480x320 TFT/ILI9488 SPI wih EP32C3 (arduino-esp32) using Arduino_GFX Library

my dev.tools - FNIRSI 2C23T 3-in-1 Dual Channel Oscilloscope/Multimeter/Signal Generator