From c16376f96cc4a5bb1eeda1dc2914f495ccb5c0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:54:52 +0200 Subject: [PATCH] Update cheat-sheet.md --- .../tutorials/cheat-sheet/cheat-sheet.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md index ae6ea839bd..8db03d3f68 100644 --- a/content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md +++ b/content/hardware/02.hero/boards/uno-r4-minima/tutorials/cheat-sheet/cheat-sheet.md @@ -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.