Search results

  1. D

    How to pass another Wire object to a library?

    So I have tried a new method of achieving this according to Richard. I have updated the init functions to accept a Wire object parameter. https://github.com/01-BlackHawk-11/lis3mdl-Teensy-I2C https://github.com/01-BlackHawk-11/lsm6-arduino-Teensy-I2C This time I get this error: Arduino: 1.8.19...
  2. D

    How to pass another Wire object to a library?

    This time I abandoned whatever KurtE suggested (I think I've overloaded the constructor aswell). And this time I worked by the solution provided Richard Gemmell himself: https://github.com/Richard-Gemmell/teensy4_i2c/issues/31 However as you can guys read in the issue I had an error as well.
  3. D

    How to pass another Wire object to a library?

    Did not work. I have ensured that Wire1 is connected.
  4. D

    How to pass another Wire object to a library?

    Here are the forks: https://github.com/01-BlackHawk-11/lis3mdl-Teensy-I2C https://github.com/01-BlackHawk-11/lsm6-arduino-Teensy-I2C What I had in mind was adding a variable that stores the wire address like this: I2CDriverWire MyWire; Replace every instance of Wire with MyWire. And make a...
  5. D

    How to pass another Wire object to a library?

    I want to modify those libraries in order to pass other I2C buses (Wire1 or Wire2) instead of the default Wire. The libraries are LIS3MDL and LSM6. I use the Teensy 4.1 I2C library as well by Richard Gemmell. I would like to use the device connected to the corresponding bus in order to get...
Back
Top