You do not send ACK or NAK when WRITING to the slave. You READ ACK or NAK FROM the slave when writing to the slave.I don't understand what that means
C:/* check for last byte */ if(ByteCount == 7) SendNAk() /* NAK if last byte */ Is this line wrong ? I2C_Stop(); return Failure else SendACK(); /* ACK for all bytes */ Is this line wrong ? return Success
#59: why???
Last edited: