That's exactly what I need. But the I2C dedicated pins are controlled by the Wire library, hence the Wire library (or any other viable I2C library for Arduino) should give me the clock stretching functionality.
What I want to do is:

  • set the clock-stretching the very moment the master device asks for data, namely holding down the SCL line;
  • perform all my calculations to build the response data payload, while the I2C master device waits;
  • release the SCL line and resume the I2C slave reply logic.
    All of this obviously without colliding with the Wire library inner workings.

Thanks anyway for you help.