tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
Schnookums
Posts: 5
Joined: Wed May 19, 2021 6:50 am
Has thanked: 1 time
Been thanked: 5 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Schnookums »

RealLarry wrote: Tue Sep 03, 2024 3:45 am

Nice find, should work but I can't guarantee it as I don't know to which GPIO's they wired the display. If you are going to use that device you are on your own to find that out and to set this in the source code, if neccessary.

Are you using the TapTo extension? Then try to set tty2tft to another USB port in tty2tft-user.ini - see documentation also.

Code: Select all

TTYDEV="/dev/ttyUSB1"

Well, I've got nothing if not time, hopefully this isn't above my skill level. I don't use the TapTo thing but I'll give changing the USB port a shot as well. Thank you!

Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

I only just realized that there's an own forum thread for this project, so I apologize for double dipping with this question both here and in the github issues. Maybe someone here has actually messed around with this display beforre.

Are there any plans or any methods to get the CYD to work (Cheap Yellow Display)?
It's a very cheap display that consists of a screen in 2.8-4.8" sizes with an ESP32 onboard.
Examples: https://www.aliexpress.com/item/1005006110360174.html and https://www.aliexpress.com/item/1005005928255980.html

These would be a very simple way to get a display set up for use with the MiSTer, for far less money than the seperate parts. The 2.8" variant seems to use an ILI9341 driver.

Some more info: https://randomnerdtutorials.com/cheap-y ... 2432s028r/

I had tried flashing the various display test bin files, but to no avail.

User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Arakon wrote: Thu Sep 19, 2024 3:23 pm

Some more info: https://randomnerdtutorials.com/cheap-y ... 2432s028r/
I had tried flashing the various display test bin files, but to no avail.

The link you mentioned explains that this board is using different ping on the ESP32. The tty2tft project is almost obsolete in favor for tty2rpi but I've included the relevant lines of code for that CYD.

Take the attachment and transfer the archive to your MiSTer to /tmp ... Extract the archive there, enter the directory local_flasher and run

Code: Select all

bash ./flasher.sh esp32de_230421_ILI9341CYD.bin

Please report if this is working so I could push the code to it's github repo.

You do not have the required permissions to view the files attached to this post.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

Dang.. thanks for the super fast response!
Unfortunately, the screen remains completely blank.

I checked against a serial monitor and get:

Code: Select all

15:04:08.488 -> ets Jul 29 2019 12:21:46
15:04:08.488 -> 
15:04:08.488 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:04:08.488 -> configsip: 0, SPIWP:0xee
15:04:08.488 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:04:08.488 -> mode:DIO, clock div:1
15:04:08.534 -> load:0x3fff0030,len:1184
15:04:08.534 -> load:0x40078000,len:13220
15:04:08.534 -> ho 0 tail 12 room 4
15:04:08.534 -> load:0x40080400,len:3028
15:04:08.534 -> entry 0x400805e4
15:04:15.321 -> E (13084) wifi:Set status to INIT

Wifi file is on the sd card.

User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Difficult to analyse without having such a device. If you are familiar with compiling your own code in the Arduino IDE or with espmake32 I'd update the code at github so you can do your own experiments.

Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

...and I've just found an issue in my build routine where the/your CYD type was missing, which results in a standard ILI9341 binary :D
Please try again with the corrected build...

You do not have the required permissions to view the files attached to this post.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

I think it's working. The backlight is not turned on, but when I use a flashlight to light up the screen, I can see some shapes.

User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Progress, after all! New binary only attached. Replace the one under local_flasher/ and run the flash script again.
This time I have included a special case defining your backlight pin, which is normally automatic.

You do not have the required permissions to view the files attached to this post.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

PXL_20240921_120430961.jpg

Colors seem inverted, but otherwise it seems to work display-wise now.
Didn't get past that screen, but that may be a settings issue, didn't dive further into that yet.

You do not have the required permissions to view the files attached to this post.
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Great, that means that you gave me the corrects settings and I implemented it correctly, blindly 8-)
Let me find the, hopefully last, issue to have the correct colors (should be "inverted display").

Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Attache are two new binaries. One for "inverted on", the other "inverted off". Please try one / the other and report which is the correct one.

You do not have the required permissions to view the files attached to this post.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

"ON" is the correct one, assuming the colors are right. Backlight is flickering a bit, but that may be due to power supply or the board itself.

PXL_20240921_124926081.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Colors are correct. Great, only some last steps ahead! Attached is another binary, no real changes there but some nicer corrections/definitions for your CYD. If this is still working - like on your screenshot - then this would be the final binary before code is going public.

You wrote that this "Didn't get past that screen"... Are you using another MiSTer specific device on your USB, like TapTo or similar? They are almost using the same technology for communication between between MiSTer and "device", so they may interfere with tty2tft.

You do not have the required permissions to view the files attached to this post.
Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by Arakon »

It worked fine after a reboot. And the new binary does, too.
Thank you!

User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Great, congrats to your new display type and many thanks for contributing!
Don't hesitate to ask if anything is still not working.

Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
User avatar
RealLarry
Top Contributor
Posts: 881
Joined: Mon May 25, 2020 4:04 am
Location: San Junipero/DE/Earth
Has thanked: 120 times
Been thanked: 385 times

Re: tty2tft Soft & Hardware Add-On (shows core based pictures and videos on a color TFT display)

Unread post by RealLarry »

Schnookums wrote: Tue Sep 03, 2024 2:54 am

So I might just be in over my head or something but would this work for this? : https://www.amazon.com/dp/B0BVFXR313?re ... asin_title

If you scroll back the last msg's you'll find that another pal was coming to the same display type, but with the needed specs. I finished that display over the weekend. Fire at will!

Contributor of tty2oled, author of tty2tft, tty2rpi and update_tty2xxx
Post Reply