Skip to content

Commit 153c807

Browse files
authored
Merge pull request #1374 from arduino/karlsoderby/minima-serial
[UNO-R4-Minima] Added SerialUSB docs
2 parents ed3ad46 + c16376f commit 153c807

File tree

1 file changed

+14
-0
lines changed
  • content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,20 @@ if(Serial.available() > 0) {
436436
}
437437
```
438438

439+
### SerialUSB
440+
441+
The UNO R4 Minima has an extended set of Serial methods:
442+
443+
- `Serial.baud()` - Returns the baud rate **(int)** currently used.
444+
- `Serial.stopbits()` - Returns the number of stop bits **(int)** used in the communication.
445+
- `Serial.paritytype()` - Returns the type of parity **(int)** used in the communication.
446+
- `Serial.numbits()` - Returns the number of data bits **(int)** used in the communication.
447+
- `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.
448+
- `Serial.rts()` - Returns the status of the Request to Send (RTS) signal **(bool)**.
449+
450+
Supported links:
451+
- [SerialUSB.h](https://github.com/arduino/ArduinoCore-renesas/blob/main/cores/arduino/usb/SerialUSB.h) (Github).
452+
439453
## USB HID
440454

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

0 commit comments

Comments
 (0)