I2C and LCD on wire1 or wire2 pins instead of wire

I have printed the circuit and I can not change the HW ports to another in a teensy 4.1.

What of these options are possible?:

1. Write at the beginning:

Code:
#define Wire  Wire1



2. Rewrite the library: LCD_I2C_lib in the file:lcd_I2C.cpp all "Wire" by "Wire1" (or 2)
 
Yes, #2. Well, unless the library has a constructor or other way to specify which port. Some newer libraries have this. But most older libraries have "Wire" hard coded. In that case, you will need to edit every "Wire" inside the library to Wire1 or Wire2.
 
Back
Top