Package comm
Class I2C

Public Method poll

boolean poll()

boolean poll(int addr)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

poll() method:

Returns Range Description
acknowledge true ... false is ACK received or not

The poll() method waits until an acknowledge (ACK) is received from a slave device after a busy period.

Note

poll(int addr) method:

Parameter Range Description
addr 0 ... 127 target device address

The addr parameter is used to set up the address of a specific I2C slave device. The poll(int) method waits until an acknowledge (ACK) is received from the slave device after a busy period.

Returns Range Description
acknowledge true ... false is ACK received or not

Note

Example

   i2c.poll();

The poll() method waits until an ACK from the slave is received.

See also:

SPI
UART