ContentsIndex
PreviousUpNext
Serial
Classes | Variables

 

The Serial API is capable of exchanging data with PCs and other devices. Set up the same baud rate as the remote device using begin() to exchange data using read() and write(). 

 

LinkIt provides 2 sets of UART, the physical UART (pin 0 and 1) and USB UART. When a LinkIt board is connected to a PC using a USB cable, the COM port seen in the IDE is USB UART, not the physical UART (pin 0 and 1). On the PC the port will be identified as MTK USB Modem Port in device Manager. 

 

The Serial object corresponds to the USB UART. To read from and write to the physical UART (pins 0 and 1), use the Serial1 object instead, as shown in Table below. 

 

Table : Mapping of UARTs to Serial objects

UART 
Serial Mapping 
USB UART 
UART 0/1 
Classes
Class 
Description 
UARTClass is designed for LinkIt One board connecte with other hardware device through UART LinkIt One has 2 serial ports: Serial and Serial1. Serial communicates on USB port, Serial1 on pins0(RX) and pins1(TX). 
Variables
Variable 
Description 
the UARTClass object, Serial on USB port 
the UARTClass object, Serial1 on pins0(RX) and pins1(TX) 
Links