Setting the value to zero will disable the function. This allows the user to define a time out in which the I2C will release itself and reinitialize and continue on with the next function. I2C bus lockups have a tendency to freeze a program which typically requires a power cycle to restart your program. Returns: none I2c.timeOut(timeOut) Description: Allows the user to program a time out limit to prevent and recover from I2C bus lockups. True: Enable internal pullup resistors (default) Returns: none I2c.pullup(activate) Description: Enables/disables internal pullup resistors Parameters: activate - Boolean For more details see the documentation below, section titled: Low-level Methods Documentation I2c.begin() Description: Enables the I2C hardware Parameters: none Returns: none I2c.end() Description: Disables the I2C hardware Parameters: none Returns: none I2c.setSpeed(fast) Description: Enables high speed mode (400kHz) Parameters: fast - Boolean
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |