Dual-Axis Compass icon Dual-Axis Compass Dual-axis I2C magnetic sensor for EZ-B robots enabling magnetic direction sensing; requires short 2-3 in wiring. Third-party hardware. Try it →
 

Hardwareuartread

UART.hardwareUartRead(uartIndex, bytesToRead, [ezbIndex])

Parameters

uartIndex Index of UART to read from.
bytesToRead Number of bytes to read from the UART.
ezbIndex (optional) Board index of the EZB to use.

Returns

A byte array of length bytesToRead containing data received from the specified UART.

Description

Returns a byte array of length bytesToRead containing data received from the specified UART.