Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with firmware #6

Closed
CyberSpiderPrime opened this issue May 24, 2023 · 11 comments
Closed

Issue with firmware #6

CyberSpiderPrime opened this issue May 24, 2023 · 11 comments

Comments

@CyberSpiderPrime
Copy link

Hello.

First, a thank you; I have previously used your driver/firmware with a Lilygo ESP32 T-Display. It works wonderfully.

I have recently purchased some Lilygo ESP32S3 T-HMI units (240x320, Flash and PSRAM is 16MB per demo) and wanted to use your driver/firmware again. I have downloaded the firmware and tried Thonny, esptool, and the Flash Download tool to flash the firmware to said device - all failed (device keeps repeatedly connecting/disconnecting). Please note that I have downloaded and flashed the generic ESP32S3 version of Micropython 1.20.0 multiple times with no failure.

I was wondering if you have py/mpy driver(s) and config.py files that can be dropped onto the device and used with the generic ESP32S3 Micropython instead of a full firmware flash?

Also, how would one go about creating new fonts like the old 5x7 monospace/fixedsys font (I know that is telling my age) for use by the driver?

Thank you for any assistance you may render.

@Wind-stormger
Copy link
Contributor

It seems that the FLASH or PSRAM size configuration does not match.

@russhughes
Copy link
Owner

Are you using the firmware from the S3LCD_OCT_16M folder?

@CyberSpiderPrime
Copy link
Author

CyberSpiderPrime commented May 25, 2023 via email

@russhughes
Copy link
Owner

The driver is written in C and compiled into the firmware while building the MicroPython firmware. The source for the driver is in the repo.

The Python driver from https://github.com/russhughes/st7789s3_mpy should be able to drive the T-HMI display, but you will have to modify the tft_config.py code for the pins used on the T-HMI. Also, it will be much slower.

Your device may have a different memory configuration (Quad SPI needing S3LCD_QUAD_16M firmware?). Can you post a link to the generic version of firmware that is working?

@CyberSpiderPrime
Copy link
Author

CyberSpiderPrime commented May 26, 2023 via email

@russhughes
Copy link
Owner

Sorry that link should have been https://github.com/russhughes/t-display-s3.

@CyberSpiderPrime
Copy link
Author

CyberSpiderPrime commented May 27, 2023 via email

@russhughes
Copy link
Owner

Reset is tied to the processors reset line and not to an IO pin, so you can ignore it. LCD_PCLK is the WR pin(8). Pin 10 controls power to the LCD and must be set high to turn on the display. This needs to be done before you configure the display.

@russhughes
Copy link
Owner

russhughes commented May 27, 2023

Here is a pure python driver customized for the T-HMI display. It is faster than the other driver, but not as fast as the s3lcd C driver.

Edit: forgot the link to https://github.com/russhughes/thmi_py

@CyberSpiderPrime
Copy link
Author

CyberSpiderPrime commented May 28, 2023 via email

@CyberSpiderPrime
Copy link
Author

CyberSpiderPrime commented May 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants