Hello, i bought Wemos D1 mini (esp8266 board) and 1,3" I2C OLED screen with SH1106 chip. i am trying to control it through U8G2 library, but everything after line 16 doesnt appear
i have set the correct adress. the screen power is connected to 5V, and the logic is 3.3V
#include <Arduino.h>
#include <U8g2lib.h>
#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif
U8G2_SH1106_128X64_NONAME_2_SW_I2C u8g2(U8G2_R0, 2, 0, U8X8_PIN_NONE);
void setup(void) {
u8g2.begin();
u8g2.setI2CAddress(0x3C*2);
}
void loop(void) {
u8g2.clearBuffer(); // clear the internal memory
u8g2.setFont(u8g2_font_ncenB10_tr ); // choose a suitable font
u8g2.drawStr(0,17,"Hello World!"); // write something to the internal memory
u8g2.sendBuffer(); // transfer internal memory to the display
delay(10000);
}