Interface for the UART Plug - see https://jeelabs.org/up.
More...
#include <Ports.h>
Interface for the UART Plug - see https://jeelabs.org/up.
| byte UartPlug::available |
( |
| ) |
|
Test if UartPlug has incoming data.
- Returns
- True if data in device buffer. False if no data in device buffer.
| void UartPlug::begin |
( |
long |
baud | ) |
|
Initialize a UartPlug.
- Parameters
-
| baud | Baud rate for the serial port. |
Read two bytes from the UartPlug's serial input.
- Returns
- Two bytes with the data read.
| WRITE_RESULT UartPlug::write |
( |
byte |
data | ) |
|
|
virtual |
Write data on the serial port of the UartPlug.
- Parameters
-
| data | Byte of data to send out. |
The documentation for this class was generated from the following files: