#include <Arduino.h>
#include <U8g2lib.h>

#include <Wire.h>

U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
//U8G2_SSD1306_128X64_ALT0_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);   // same as the NONAME variant, but may solve the "every 2nd line skipped" problem

int Temp1 = 25;
int Temp2 = 23;
int V = 0;
int I = 0;
int W = 0;
int mah = 0;

void setup() {
  Serial.begin(9600);

  u8g2.begin();
}

void loop() {
  
  u8g2.clearBuffer();					// clear the internal memory
  u8g2.setFont(u8g2_font_ncenB08_tr);	// choose a suitable font
  u8g2.drawStr(2,30,"V"); u8g2.drawStr(13,30,"="); u8g2.setCursor(21,30); u8g2.print(V);	// write something to the internal memory
  u8g2.drawStr(4,45,"I"); u8g2.drawStr(13,45,"="); u8g2.setCursor(21,45); u8g2.print(I);
  u8g2.drawStr(0,60,"W"); u8g2.drawStr(13,60,"="); u8g2.setCursor(21,60); u8g2.print(W);
  u8g2.setFont(u8g2_font_5x7_tf);
  u8g2.setCursor(30,7); u8g2.print(Temp1); u8g2.drawStr(42,7,"C");
  u8g2.setCursor(70,7); u8g2.print(Temp2); u8g2.drawStr(82,7,"°C");
  u8g2.sendBuffer();					// transfer internal memory to the display
  delay(1000);  
}
esp:0
esp:2
esp:4
esp:5
esp:12
esp:13
esp:14
esp:15
esp:16
esp:17
esp:18
esp:19
esp:21
esp:22
esp:23
esp:25
esp:26
esp:27
esp:32
esp:33
esp:34
esp:35
esp:3V3
esp:EN
esp:VP
esp:VN
esp:GND.1
esp:D2
esp:D3
esp:CMD
esp:5V
esp:GND.2
esp:TX
esp:RX
esp:GND.3
esp:D1
esp:D0
esp:CLK
oled1:GND
oled1:VCC
oled1:SCL
oled1:SDA