stevemarple / SoftWire

Software I2C implementation for Arduino and other Wiring-type environments
GNU Lesser General Public License v2.1
136 stars 31 forks source link

Can't compile the SoftWire_MLX90614 example #16

Closed katkothaza closed 3 years ago

katkothaza commented 3 years ago

Hi this:

void exitPWM(void)
{
    // Make SMBus request to force SMBus output instead of PWM
    SoftWire::setSclLow(&i2c);
    delay(3); // Must be > 1.44ms
    SoftWire::setSclHigh(&i2c);
    delay(2);
}

should be:

void exitPWM(void)
{
    // Make SMBus request to force SMBus output instead of PWM
    SoftWire::sclLow(&i2c);
    delay(3); // Must be > 1.44ms
    SoftWire::sclHigh(&i2c);
    delay(2);
}
stevemarple commented 3 years ago

Thanks, that should be fixed in v2.0.1.