I want to use my own name for an instance of wire [I2C] comms similar to LCDTFT references.
eg:
const int i_tftCS = A3; const int i_tftCD = A2; const int i_tftWR = A1;
const int i_tftRD = A0; const int i_tftRESET = A4;
Adafruit_ILI9341_8bit_AS my_tft = Adafruit_ILI9341_8bit_AS(i_tftCS, i_tftCD, i_tftWR, i_tftRD, i_tftRESET);
The my_tft is very useful but would like to do same with I2C comms...
Anyone already done this ??
I am new to this board..
Regards colin.
PS: Please note my question was regarding renaming the wire.h appearance not creating multiple instances..
IE: naming it my_wire1 or my_i2c_wire2 etc pre configured with port ids etc.