Skip to content

Custom Clock Speed

Choose a tag to compare

@matthewfriskey matthewfriskey released this 20 Feb 07:10
· 14 commits to main since this release
5a7bac8

Changelog

[1.1.0] - 2025-02-20

Added

  • Adjustable I2C Clock Speed: Added a clockSpeed parameter to the begin() method, allowing users to set the I2C frequency (e.g., 100 kHz, 400 kHz). Defaults to 100 kHz for compatibility. The TCA9555 supports up to 400 kHz, while ESP32 variants can go higher.
    • Example: expander.begin(21, 22, 23, 400000) sets 400 kHz.

Changed

  • Updated documentation in README.md to reflect the new clock speed feature, including usage notes and example.
  • Modified library.json description and keywords to mention adjustable clock speed.
  • Updated the example sketch (interrupt_example.ino) to demonstrate the new clockSpeed parameter.

Notes

  • This is a minor update with no breaking changes; existing code using begin() without the clockSpeed parameter will continue to work as before, defaulting to 100 kHz.

[1.0.0] - 2025-02-19

Initial Release

  • Initial version of the SimpleTCA9555 library.
  • Features:
    • Reading all 16 inputs (P00-P07 on Port 0, P10-P17 on Port 1) from the TCA9555.
    • Input redefinition using #define (e.g., #define reed_switch input_1).
    • Optional interrupt-driven updates via the TCA9555's INT pin.
    • Compatible with all ESP32 variants under the Arduino framework via PlatformIO.
  • Default I2C clock speed fixed at 100 kHz (Arduino default).