Using VL53L1X with an atTiny85

Hello,

I am trying to develop a low profile circuit that will convert distance to a magnitude of vibration.

I am trying to use Sparkfun’s

<SparkFun_VL53L1X_Tiny.h> and

<vl53l1x_class_Tiny.h>

in the Arduino compiler.

To use with the atTiny I am trying to convert the use of Wire in these header files to TinyWireM.

I am getting the error

error: could not convert ‘TinyWireM’ from ‘USI_TWI’ to ‘TwoWire&’

I’d appreciate any help you can give!

Thanks,

Caleb Dueck

Thanks for reaching out to us on this.

We don’t support coding other than the examples; but this post had a user with a similar issue - though not exactly the same, you may be able to edit the file’s USI_TWI portion (this user’s post mentions WUI_TWI) https://forum.arduino.cc/index.php?topic=656742.0

Best of luck!