TODO: include when working.
[](https://registry.platformio.org/libraries/robtillaart/TwoWireSW)
Arduino-lint is failing as library is not registered.
TwoWire interface wrapper around SoftwareWire (experimental ==> not possible)
VERY VERY EXPERIMENTAL TwoWireSW is a wrapper class under development (not working).
Goal is to create a wrapper class which inherits from TwoWire around the SoftwareWire class.
This would allow the wrapper class to be inserted as the I2C interface in many libraries (sensors, IO chips, DAC, multiplexer etc.) that now expect an instance of a TwoWire object.
The SoftwareWire library had a TwoWire interface in the past however since version 1.6.0 this interface has been removed.
- 2023-03-15 - not working
- 2023-03-20 - not possible to work => see discussion in issue #1
- 2023-10-09 - add build-CI frame to fix open issue.
It is possible to write the wrapper class, but impossible to use that as an instance for TwoWire as the main functions of TwoWire are not virtual. (See issue #1).
Will not investigate further unless as project.
- Wire
- SoftwareWire
- AsyncDelay
#include "TwoWireSW.h"
See TwoWire documentation.
- improve documentation
- create PR / issue to make main functions TwoWire virtual. (would at least help a bit on AVR)
If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.
Thank you,