8000 Merge pull request #1132 from arduino/karlsoderby/hid-update-r4 · jakelawrence/docs-content@398946d · GitHub
[go: up one dir, main page]

Skip to content

Commit 398946d

Browse files
authored
Merge pull request arduino#1132 from arduino/karlsoderby/hid-update-r4
[UNO-R4] HID tutorials update
2 parents e13071c + 798c81c commit 398946d

File tree

2 files changed

+35
-1
lines changed
  • content/hardware/02.hero/boards

2 files changed

+35
-1
lines changed

content/hardware/02.hero/boards/uno-r4-minima/tutorials/usb-hid/usb-hid.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ To emulate a keyboard, we can use the `press()` and `releaseAll()` methods. This
5757
5858
void setup() {
5959
Keyboard.begin();
60+
delay(1000);
6061
}
6162
6263
void loop() {
@@ -67,6 +68,15 @@ void loop() {
6768
}
6869
```
6970

71+
To see more examples, please refer to links below:
72+
73+
- [Keyboard and Mouse Control Tutorial](/built-in-examples/usb/KeyboardAndMouseControl)
74+
- [Keyboard Reprogram Tutorial](/built-in-examples/usb/KeyboardReprogram)
75+
- [Keyboard Serial Tutorial](/built-in-examples/usb/KeyboardSerial)
76+
- [Keyboard Logout Tutorial](/built-in-examples/usb/KeyboardLogout)
77+
- [Keyboard Message Tutorial](/built-in-examples/usb/KeyboardMessage)
78+
79+
7080
## Mouse
7181

7282
To use mouse functionalities, we need to include the library at the top of our sketch. The Mouse class contains several methods that are useful to emulate a mouse.
@@ -86,6 +96,7 @@ The following example moves both axis of mouse just slightly (10 points), back a
8696
8797
void setup() {
8898
Mouse.begin();
99+
delay(1000);
89100
}
90101
91102
void loop() {
@@ -96,10 +107,17 @@ void loop() {
96107
}
97108
```
98109

110+
To see more examples, please refer to links below:
111+
112+
- [Keyboard and Mouse Control Tutorial](/built-in-examples/usb/KeyboardAndMouseControl)
113+
- [Button Mouse Control Tutorial](/built-in-examples/usb/ButtonMouseControl)
114+
- [Joystick Mouse Control Tutorial](/built-in-examples/usb/JoystickMouseControl)
115+
99116
## Summary
100117

101118
In this tutorial, we have demonstrated some basic HID usage with the UNO R4 Minima. To view the full API, please refer to the following APIs:
102119
- [Keyboard](https://www.arduino.cc/reference/en/language/functions/usb/keyboard/)
103120
- [Mouse](https://www.arduino.cc/reference/en/language/functions/usb/mouse/)
104121

105-
In there, you will find a detailed reference along with some good examples to get you started with HID features.
122+
In there, you will find a detailed reference along with some good examples to get you started with HID features.
123+

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/usb-hid/usb-hid.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ To emulate a keyboard, we can use the `press()` and `releaseAll()` methods. This
5757
5858
void setup() {
5959
Keyboard.begin();
60+
delay(1000);
6061
}
6162
6263
void loop() {
@@ -67,6 +68,14 @@ void loop() {
6768
}
6869
```
6970

71+
To see more examples, please refer to links below:
72+
73+
- [Keyboard and Mouse Control Tutorial](/built-in-examples/usb/KeyboardAndMouseControl)
74+
- [Keyboard Reprogram Tutorial](/built-in-examples/usb/KeyboardReprogram)
75+
- [Keyboard Serial Tutorial](/built-in-examples/usb/KeyboardSerial)
76+
- [Keyboard Logout Tutorial](/built-in-examples/usb/KeyboardLogout)
77+
- [Keyboard Message Tutorial](/built-in-examples/usb/KeyboardMessage)
78+
7079
## Mouse
7180

7281
To use mouse functionalities, we need to include the library at the top of our sketch. The Mouse class contains several methods that are useful to emulate a mouse.
@@ -86,6 +95,7 @@ The following example moves both axis of mouse just slightly (10 points), back a
8695
8796
void setup() {
8897
Mouse.begin();
98+
delay(1000);
8999
}
90100
91101
void loop() {
@@ -96,6 +106,12 @@ void loop() {
96106
}
97107
```
98108

109+
To see more examples, please refer to links below:
110+
111+
- [Keyboard and Mouse Control Tutorial](/built-in-examples/usb/KeyboardAndMouseControl)
112+
- [Button Mouse Control Tutorial](/built-in-examples/usb/ButtonMouseControl)
113+
- [Joystick Mouse Control Tutorial](/built-in-examples/usb/JoystickMouseControl)
114+
99115
## Summary
100116

101117
In this tutorial, we have demonstrated some basic HID usage with the UNO R4 WiFi. To view the full API, please refer to the following APIs:

0 commit comments

Comments
 (0)
0