Module arduboy_rust::arduino_system::serial_print
source · Expand description
This is the Module to interact in a save way with the Arduino Serial C++ library.
You will need to uncomment the Serial in the config.toml file.
Traits
Functions
- Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
- Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
- Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().
- The Arduino Serial Print class is available for writing text to the screen buffer.
- The Arduino Serial Print class is available for writing text to the screen buffer.
- Reads incoming serial data. Use only inside of available():
- Reads incoming serial data.