//  ***  meierinc copyright 2022  ***  //
//  ***  sundayisnowy@gmail.com  ***  //

//  ***  includes  ***  //
#include <U8g2lib.h>
#include <Wire.h>

//  ***  const  ***  //
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
// 这串代码不用记,打开源文件就有,可以直接拷贝。

//  ***  notes  ***  //
// data 21; clock 22

//  ***  tasks  ***  //


//  *** origin  ***  //
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");

  u8g2.begin();
  u8g2.enableUTF8Print();
}

void loop() {
  // put your main code here, to run repeatedly:
  u8g2.clearBuffer();					// clear the internal memory
  // u8g2.setFont(u8g2_font_ncenB08_tr);	// choose a suitable font
  u8g2.setFont(u8g2_font_unifont_t_chinese2);
  u8g2.setCursor(0,15);				// set write position
  u8g2.print("u8g2");			// write something to the internal memory
  u8g2.setCursor(0,30);
  u8g2.print("通用八位图形库第二代");
  u8g2.sendBuffer();					// transfer internal memory to the display
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
oled1:GND
oled1:VCC
oled1:SCL
oled1:SDA