Keyestudio Ks0428 Manual page 190

Table of Contents

Advertisement

www.keyestudio.com
delayMicroseconds(3);
}
// transmit data
void IIC_send(unsigned char send_data)
{
for(char i = 0;i < 8;i++) //Each byte has 8 bits
{
digitalWrite(SCL_Pin,LOW);
to 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
//pull down clock pin SCL Pin
//set high and low level of SDA_Pin
190

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Ks0428 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF