Hello,
I am a new user to creating using HelTec and ESP32-S3. When I upload a sketch through Arduino studio the terminal content seems to be successful but the OLED remains blank. I have tried other sketches but the result is the same.
Product: HelTec ESP32 Wifi Kit V3 with OLED
Software: Arudino IDE
Code:
#include "heltec.h"
#include "Arduino.h"
//rotate only for GEOMETRY_128_64
SSD1306Wire display(0x3c, SDA_OLED, SCL_OLED, RST_OLED);
void VextON(void)
{
pinMode(Vext,OUTPUT);
digitalWrite(Vext, LOW);
}
void VextOFF(void) //Vext default OFF
{
pinMode(Vext,OUTPUT);
digitalWrite(Vext, HIGH);
}
void setup() {
VextON();
delay(100);
display.init();
display.clear();
display.display();
display.setContrast(255);
display.setTextAlignment(TEXT_ALIGN_CENTER);
display.clear();
display.display();
display.screenRotate(ANGLE_0_DEGREE);
display.setFont(ArialMT_Plain_16);
display.drawString(64, 32-16/2, "ROTATE_0");
display.display();
delay(2000);
display.clear();
display.display();
display.screenRotate(ANGLE_90_DEGREE);
display.setFont(ArialMT_Plain_10);
display.drawString(32, 64-10/2, "ROTATE_90");
display.display();
delay(2000);
display.clear();
display.display();
display.screenRotate(ANGLE_180_DEGREE);
display.setFont(ArialMT_Plain_16);
display.drawString(64, 32-16/2, "ROTATE_180");
display.display();
delay(2000);
display.clear();
display.display();
display.screenRotate(ANGLE_270_DEGREE);
display.setFont(ArialMT_Plain_10);
display.drawString(32, 64-10/2, "ROTATE_270");
display.display();
delay(2000);
}
void loop() { }
Terminal:
Sketch uses 261257 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13608 bytes (4%) of dynamic memory, leaving 314072 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3-dev
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:86:f1:39
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0004ffff...
Compressed 15008 bytes to 10328...
Writing at 0x00000000... (100 %)
Wrote 15008 bytes (10328 compressed) at 0x00000000 in 1.1 seconds (effective 111.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 512.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 810.9 kbit/s)...
Hash of data verified.
Compressed 261648 bytes to 142581...
Writing at 0x00010000... (11 %)
Writing at 0x0001b47c... (22 %)
Writing at 0x00024885... (33 %)
Writing at 0x00029e37... (44 %)
Writing at 0x0002f364... (55 %)
Writing at 0x00035613... (66 %)
Writing at 0x0003fcc5... (77 %)
Writing at 0x000463b7... (88 %)
Writing at 0x0004ba31... (100 %)
Wrote 261648 bytes (142581 compressed) at 0x00010000 in 12.7 seconds (effective 164.5 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...