Description:
| Parameter | Range | Description | 
|---|---|---|
| uart | UART0 UART1 | UART target port | 
The iLCDJoC board provides two UART ports (UART0 and UART1). Each UART port provides one RX pin for data reception and one TX pin to send data. The UART1 port is selected when a decimal value of 0 or static variable UART.UART1 is passed to the UART constructor. The UART0 port is selected when a decimal value of 1 or static variable UART.UART0 is passed to the UART constructor.
Notes
Example
The following code example shows how to select the UART0 port for the serial communication.
import comm.UART;
...
UART uart;
...
uart = new UART(UART.UART0);
The comm package is imported in the first line to make use of the UART port. A new variable with the data type UART is created in the next step. Afterwards, a new instance for the UART0 port is created.
See also:
  
Copyright © demmel products gmbh. All rights reserved.