Name

i2c_read — receives a byte

Synopsis

#include <i2c.h>   
uint8_t i2c_read (ack); 
bool ack;
 

Arguments

ack

the acknowledge bit to return

Description

Receives a byte from a slave. The ack parameter indicates, whether to acknowledge the received byte or not. Returns the byte received.