Keyestudio Ks0428 Manual page 153

Table of Contents

Advertisement

www.keyestudio.com
according to 1 or 0 of every bit
{
digitalWrite(SDA_Pin,HIGH);
}
else
{
digitalWrite(SDA_Pin,LOW);
}
delayMicroseconds(3);
digitalWrite(SCL_Pin,HIGH); //pull up the clock pin SCL_Pin to
stop transmission
delayMicroseconds(3);
send_data = send_data >> 1;
data to the right by one
}
}
//The sign of ending data transmission
void IIC_end()
{
digitalWrite(SCL_Pin,LOW);
delayMicroseconds(3);
digitalWrite(SDA_Pin,LOW);
// detect bit by bit, shift the
153

Advertisement

Table of Contents
loading

Table of Contents