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:
parent
249dadd107
commit
af62f1c6a1
BIN
bin/bin LILYGO TDisplay S3/0x10000_firmware.bin
Normal file
BIN
bin/bin LILYGO TDisplay S3/0x10000_firmware.bin
Normal file
Binary file not shown.
6
bin/bin LILYGO TDisplay S3/burnFirmware.ps1
Normal file
6
bin/bin LILYGO TDisplay S3/burnFirmware.ps1
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user