#include <Arduino.h>
#include <U8g2lib.h>
#include <Wire.h> // library requires for IIC communication
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // initialization for the used OLED display
void setup() {
// put your setup code here, to run once:
u8g2.begin(); // start the u8g2 library
}
void loop() {
// put your main code here, to run repeatedly:
u8g2.clearBuffer(); // clear the internal memory
String espF;
espF = "14.4v";
u8g2.setFont(u8g2_font_profont17_tf);
u8g2.setCursor(20, 39);
u8g2.print(espF.length() * u8g2.getMaxCharHeight());
u8g2.sendBuffer(); // transfer internal memory to the display
}