Package comm
Class SPI

Public Method setTimeout

static void setTimeout(int ms)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
ms 2 ... 10000 value for timeout in milliseconds

The timeout is used for transferData method to provide a defined time frame for one data frame. The default value is 2 milliseconds and is automatically set with the open method.

Example

The following example sets up a timeout of 10 milliseconds.

   SPI.setTimeout(10);

See also:

I2C
UART