Keyestudio Ks0428 Manual page 203

Table of Contents

Advertisement

www.keyestudio.com
character
{
digitalWrite(SCL_Pin,LOW);
change the signals of SDA
delayMicroseconds(3);
if(send_data & 0x01)
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 clock pin SCL_Pin to stop
transmitting data
delayMicroseconds(3);
send_data = send_data >> 1;
data right by one
}
}
//The sign that data transmission ends
//pull down clock pin SCL Pin to
//set high and low level of SDA_Pin
// detect bit by bit, so move the
203

Advertisement

Table of Contents
loading

Table of Contents