TTGO-TDisplay bug 5V external power

Pin 15 on at power up to enable screen when powered from external sources
This commit is contained in:
BitMaker 2023-12-31 01:04:25 +01:00
parent 249dadd107
commit af62f1c6a1
3 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,6 @@
#GET CURRENT COMPORT IF MORE THAN ONE (NOT RESOLVED)
$PORT = [System.IO.Ports.SerialPort]::getportnames()
#BURN BOOTLOADER, FIRMWARE
python -m esptool -p $PORT -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x0000 0x0000_bootloader.bin 0x8000 0x8000_partitions.bin 0xe000 0xe000_boot_app0.bin 0x10000 0x10000_firmware.bin

View File

@ -40,6 +40,12 @@ const char* ntpServer = "pool.ntp.org";
/********* INIT *****/ /********* INIT *****/
void setup() void setup()
{ {
//Init pin 15 to eneble 5V external power (LilyGo bug)
#ifdef PIN_ENABLE5V
pinMode(PIN_ENABLE5V, OUTPUT);
digitalWrite(PIN_ENABLE5V, HIGH);
#endif
#ifdef MONITOR_SPEED #ifdef MONITOR_SPEED
Serial.begin(MONITOR_SPEED); Serial.begin(MONITOR_SPEED);
#else #else