无聊 — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by haot.

Components

Sketch code

#include <U8g2lib.h>
#include <Wire.h>

U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, U8X8_PIN_NONE);

// 描述该功能...
void page1() {
  u8g2.setFont(u8g2_font_timB08_tf);
  u8g2.setFontPosTop();
  u8g2.setCursor(0,20);
  u8g2.print(String("Hello") + String("Mixly"));
}

void setup() {
  u8g2.setI2CAddress(0x3C*2);
  u8g2.begin();
  u8g2.enableUTF8Print();

}

void loop() {
  u8g2.firstPage();
  do
  {
    page1();
  }while(u8g2.nextPage());

}

More projects by haot