We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
while (SDA_READ()==0 && clockCount>0){
should be
while (SDA_READ()==0 && clockCount-->0){
i feel that clockCount should be 10 not 20 (eight bit + ack + stop)