Using the example file in the seeed studio library, Examples/Grove - I2c thermocouple amplifier MCP9600/MCP9600_Basic_demo(or the 4channel version), on a Heltec WiFi Kit 32 board works initially, but when I add code to use the Oled display,
#include <U8g2lib.h> // Oled library
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, 16, 15, 4); // OLED graphics setup
the sensor readings stop. Delete the u8g2.begin(); and the readings come back.
SDA is on pin 21
SCL is on pin 22
for the The Oled is as it comes SDA pin4. SCL pin 16.
I have tried to use the same pins as the Oled but that did not work at all. Reading every post I could find, there is a solution yet I do not know how to implement it. Some say just pass in the new SDA and SCL into the Wire() command. i.e. Wire.begin(SDA, SCL). Some suggest use SoftWire and pass in the same parameters, and another says use TwoWire for this But in the sketch there is only
I do not know how to pass in the values to this. I could not see where modify it. Should I change the Seeed_MCP9600.h file?