Skip to content

[UNO-R4-Minima] Added SerialUSB docs #1374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,20 @@ if(Serial.available() > 0) {
}
```

### SerialUSB

The UNO R4 Minima has an extended set of Serial methods:

- `Serial.baud()` - Returns the baud rate **(int)** currently used.
- `Serial.stopbits()` - Returns the number of stop bits **(int)** used in the communication.
- `Serial.paritytype()` - Returns the type of parity **(int)** used in the communication.
- `Serial.numbits()` - Returns the number of data bits **(int)** used in the communication.
- `Serial.dtr()` - Returns the status of the Data Terminal Ready (DTR) signal **(bool)** and also sets the- ignore_dtr flag to true if the DTR signal is actively used.
- `Serial.rts()` - Returns the status of the Request to Send (RTS) signal **(bool)**.

Supported links:
- [SerialUSB.h](https://github.com/arduino/ArduinoCore-renesas/blob/main/cores/arduino/usb/SerialUSB.h) (Github).

## USB HID

This board can act as an HID (keyboard/mouse) and send keystrokes or coordinates to your computer via native USB.
Expand Down