Skip to content

Commit

Permalink
TTGO-TDisplay bug 5V external power
Browse files Browse the repository at this point in the history
Pin 15 on at power up to enable screen when powered from external sources
  • Loading branch information
BitMaker-hub committed Dec 31, 2023
1 parent 249dadd commit af62f1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file added bin/bin LILYGO TDisplay S3/0x10000_firmware.bin
Binary file not shown.
6 changes: 6 additions & 0 deletions bin/bin LILYGO TDisplay S3/burnFirmware.ps1
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions src/NerdMinerV2.ino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const char* ntpServer = "pool.ntp.org";
/********* INIT *****/
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
Serial.begin(MONITOR_SPEED);
#else
Expand Down

0 comments on commit af62f1c

Please sign in to comment.