I've recently seen a post about the possibility of using the Ports library to work with I2C in the original Arduinos (using P0). I'm thinking of using it instead of the standard Wire library, to communicate using pins SDA and SCL (and leave everything else free), and to have a bit more tolerance to node failure (the Wire library seems to hang when no response comes back). Is it doable?
- I'm trying to communicate between 20 nodes.
- I'm using Arduclemas, that already have the I2C resistors built-in with jumpers to activate them.
- The nodes are right next to each other (10cm cable between each node, 2 meters of cable from start to finish, tops)
Is anything fundamentally wrong with this approach? If it is possible, I'd like to have it communicating on pins 0 and 1, but that should be easy to change on the library.