• chuck todd's avatar
    Preserver custom pin assigments (#1239) · 7998e232
    chuck todd authored
    This code allows Wire.begin() to assign the default values of SDA, and SCL only if they have not been previously configured.  Arduino libraries that use Wire() usually re-init the I2C interface in their initialization code with a call to Wire.begin().  If a user app sets custom pins assignment in setup(); These assignments will be overwritten with the default values  whenever Wire.begin() is called.
    7998e232
Wire.cpp 5.3 KB