I’m playing with Classes and making an I2C IC library.
I need to pass I2C object to an Object on its creation, I’m working with MCU that has multiple I2C peripherals so please skip part “but why you need to do that?” or “you know you can connect up to 128 devices in one I2C peripherals?” – don’t wast yours and my time.
I’m not new at coding, I’m new at classes, I imagine it should be coded something like this in class constructor:
ICconstructor( TwoWire *I2C_pheripheral);
I’m guessing in Wire library “default” wire object gets created only when Wire.begin() is called so I can’t pass it before that?
Thanks for your time and input.