I’m porting some code I wrote initially (and is working) on arduino/esp8266. Due to the nature of the chip I’m interfacing with, I’m using the utility/twi.h portion of the Wire library rather than the Arduino-standard Wire class.

It does not work in Arduino (at least not 1.6.7 which is what I have installed).

I’ve solved the issue by just bringing twi.h and twi.c into the project as a library… becuase there are a lot of headers called “twi”, I switched it to mytwi.c and mytwi.h, and then ended up renaming it to mytwi.cpp and now it’s compiling.

Will know tomorrow when I have hands back on hardware if it’s actually working.