Connecting FRAM memory to second i2c bus

Recently purchased the Adafruit FRAM breakout board, trying to expand the memory of my Teensy 4.1, which has multiple i2c buses.

The Adafruit i2c EEPROM library includes a few examples of how to get it working. On my second i2c bus, the code from the first snippet below obeys the “&Wire1” command, while the code with the second snippet gives the error "No matching function for call to ;Adafruit_FRAM_i2c::begin(int, TwoWire*)’. Where should I place “&Wire1” in the second code? I can also provide the full codes if needed.

#include <Wire.h>
#include "Adafruit_EEPROM_I2C.h"
   
Adafruit_EEPROM_I2C i2ceeprom;

#define EEPROM_ADDR 0x50

void setup(void) {
  Serial.begin(115200);
  
  if (i2ceeprom.begin(0x50, &Wire1)) { // etc. etc.

The one that doesn’t work:

#include <Wire.h>
#include "Adafruit_FRAM_I2C.h"
   
Adafruit_FRAM_I2C fram     = Adafruit_FRAM_I2C();

void setup(void) {
  Serial.begin(9600);
  
  if (fram.begin(0x50, &Wire1)) {  // This is where the error occurs.

If you compare the source code for the two classes, you'll see that Adafruit_EEPROM_I2C supports specifying which I2C interface to use (default is Wire) while Adafruit_FRAM_I2C does not ("hardwired" for Wire). It wouldn't be too difficult to modify Adafruit_FRAM_I2C to make it work like you want. Use Adafruit_EEPROM_I2C as a guide.