// ESP-01
/*
AT Firmware simulation example
Use the serial monitor to interface with the AT firmware. For instance, to scan for WiFi:
AT+CWMODE=1
AT+CWLAP
Connect to WiFi:
AT+CWJAP="Wokwi-GUEST",
Show the current IP address:
AT+CIFSR
Show firmware version
AT+GMR
To show list list of available commands:
AT+CMD?
*/
*/
pinout
GND GPIO2 GPIO0 RX/GPIO1
TX/GPIO3 Enable Reset 3.3V VCC
*/
#include <U8g2lib.h>
#include <Wire.h>
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE);
void setup(void) {
u8g2.begin();
u8g2.setFont(u8g2_font_ncenB14_tr);
}
void loop(void) {
u8g2.firstPage();
do {
u8g2.drawStr(0, 15, "Hello World!");
u8g2.drawStr(0, 35, "U8g2 Demo!");
} while (u8g2.nextPage());
delay(1000);
}
Loading
esp-01
esp-01