|
Treehopper C# API
|
Provides Serial-like functionality that can be directed both to the Debug output, or also to the board's UART. More...
Public Member Functions | |
| SerialShim (TreehopperUsb board) | |
| Construct a new instance of SerialShim. More... | |
| void | begin (int baud, bool redirectToDebugStream=true) |
| Enable the UART module (or Debug logging) on the board with the given parameters More... | |
| void | write (dynamic value) |
| Write a value to the given stream. More... | |
Events | |
| SerialShimWriter | WriteRequested |
| An event that fires when data was written More... | |
Provides Serial-like functionality that can be directed both to the Debug output, or also to the board's UART.
| SerialShim | ( | TreehopperUsb | board | ) |
Construct a new instance of SerialShim.
| board | the board to reference for hardware UART transactions |
| void begin | ( | int | baud, |
| bool | redirectToDebugStream = true |
||
| ) |
Enable the UART module (or Debug logging) on the board with the given parameters
| baud | The baud rate to use |
| redirectToDebugStream | Whether to direct Serial.write() to Debug, or to send over the physical UART. |
| void write | ( | dynamic | value | ) |
Write a value to the given stream.
| value | The value to write |
| SerialShimWriter WriteRequested |
An event that fires when data was written