You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document special upload procedure in UNO R4 WiFi HID tutorial
When an UNO R4 WiFi board is running a sketch that uses the HID capabilities, the port address changes during the
upload. Since this change does not occur under other conditions, the platform is not configured to handle such a change.
This causes uploads via the standard procedure to fail under these conditions. Since adjusting the configuration to
allow reliable uploads under any conditions would have harmful side effects, the decision was made to leave the
configuration as it is now.
The upload can be accomplished reliably if the user performs a double reset before uploading, but this fact was not
documented in the tutorial about the board's HID capabilities. The missing documentation is hereby added to the
tutorial.
As a consequence of the multi-processor design of the UNO R4 WiFi board, uploads may fail with a "`No device found on ...`" error when the board is running a sketch that uses the HID capabilities.
42
+
43
+
For this reason, you should use the following procedure to upload under these conditions:
44
+
45
+
**1.** Press and release the button marked "**RESET**" on the board quickly twice. The LED marked "**L**" on the board should now be pulsing.
46
+
47
+
**2.** Select the port of the board from the menu in Arduino IDE. The port might have changed after the previous step, so make sure to verify that it is selected.
48
+
49
+
**3.** Upload your sketch as usual.
50
+
39
51
## Keyboard
40
52
41
53
To use keyboard functionalities, we need to include the library at the top of our sketch. The Keyboard class contains several methods that are useful to emulate a keyboard.
0 commit comments