Skip to content

Commit b151cb4

Browse files
authored
Merge pull request #1368 from arduino/jacobhylen/unowifihidpin
UNO R4 WiFi Change pin-number for USB-switch
2 parents bb7e981 + 6b4d4ee commit b151cb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Loading

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/cheat-sheet/cheat-sheet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ By default the ESP32 acts as a serial bridge between a computer and the RA4M1 MC
588588

589589
If you wish you can change this and get direct access to the serial bus on the RA4M1 MCU either with software or hardware. See the instructions below:
590590

591-
1. Software - By pulling D40 to HIGH you will close the circuit that controls which MCU is connected to USB. While D40 is HIGH, the RA4M1 is connected to the USB Serial port, and while D40 is LOW the ESP32 is connected, like the default configuration.
591+
1. Software - By pulling D21 to HIGH you will close the circuit that controls which MCU is connected to USB. While D21 is HIGH, the RA4M1 is connected to the USB Serial port, and while D21 is LOW the ESP32 is connected, like the default configuration.
592592
You can do this by including the following code in `void setup()`
593593
```arduino
594-
pinMode(40, OUTPUT);
595-
digitalWrite(40, HIGH);
594+
pinMode(21, OUTPUT);
595+
digitalWrite(21, HIGH);
596596
```
597597
2. On the back of the UNO R4 WiFi you will find solder pads labelled "RA4M1 USB". If you create a short circuit between these pads, by for example creating a bridge across them with solder, the RA4M1 will be connected to the USB Serial port, instead of the ESP32.
598598

0 commit comments

Comments
 (0)