We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
void TwoWire::set_scl(bool state) { I2C_DELAY(this->i2c_delay); digitalWrite(this->scl_pin, state); //Allow for clock stretching - dangerous currently if (state == HIGH) { while(digitalRead(this->scl_pin) == 0); } }
卡在了 while里面 请问这个 while有什么作用
The text was updated successfully, but these errors were encountered:
这边是确保时钟线被拉高。 I2C两根线有上拉电阻吗?尝试取消FULL_SPEED_I2C宏定义。
FULL_SPEED_I2C
Sorry, something went wrong.
No branches or pull requests
void TwoWire::set_scl(bool state)
{
I2C_DELAY(this->i2c_delay);
digitalWrite(this->scl_pin, state);
//Allow for clock stretching - dangerous currently
if (state == HIGH)
{
while(digitalRead(this->scl_pin) == 0);
}
}
卡在了 while里面 请问这个 while有什么作用
The text was updated successfully, but these errors were encountered: