Page 9 of 9

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

Posted: Tue Sep 03, 2024 4:24 am
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!


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

Posted: Thu Sep 19, 2024 3:23 pm
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.


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

Posted: Fri Sep 20, 2024 11:49 am
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.


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

Posted: Fri Sep 20, 2024 12:55 pm
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.


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

Posted: Sat Sep 21, 2024 9:46 am
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.


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

Posted: Sat Sep 21, 2024 10:02 am
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...


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

Posted: Sat Sep 21, 2024 10:44 am
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.


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

Posted: Sat Sep 21, 2024 11:45 am
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.


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

Posted: Sat Sep 21, 2024 12:06 pm
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.


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

Posted: Sat Sep 21, 2024 12:13 pm
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").


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

Posted: Sat Sep 21, 2024 12:21 pm
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.


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

Posted: Sat Sep 21, 2024 12:55 pm
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

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

Posted: Sat Sep 21, 2024 3:09 pm
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.


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

Posted: Sat Sep 21, 2024 3:48 pm
by Arakon

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


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

Posted: Sat Sep 21, 2024 4:03 pm
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.


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

Posted: Mon Sep 23, 2024 2:09 pm
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!


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

Posted: Fri Jan 10, 2025 9:23 pm
by Naz2kool

Hi RealLarry, Awesome work on this project!

This week I bought one of those 2.8" CYD (Cheap Yellow Display) not knowing if it'll work on the MiSTer FPGA kit I bought from Taki Udon (RetroRemake) a few months ago. Spent a day trying to get tty2oled working on it without success, then luckily found here on the forums that you created a version for TFT displays. Read all the posts on this topic here and I managed to get it up and running on my CYD following your instructions on your Github page.

One thing I noticed is that the display colour is inverted on your current/latest release. I know you got this working for the CYD, blindly, via the help of just one user, Arakon, and via his testing you figured that Inverted should be set to ON for the CYD. But I did try installing and re-installing your current/latest firmware a couple of times and it always kept showing up with inverted colours. I then went ahead and downloaded the BIN file that you created and attached a few posts back that had 'Inverted' set to OFF, and once I flashed that firmware, it was working correctly with no inverted colours. Not sure if Arakon mistakenly flashed it with the Inverted colours OFF and thought the correct one was for it to be set to ON, or if there is something different between the CYD he bought compared to mine (although I do think it's identical), but I just thought you should be aware that it worked correctly for me with Inverted being turned OFF.

With these MiSTer FPGA kits gaining a fair amount of popularity with the help of Taki and his low cost MiSTer Pi, I think you will start seeing a lot more newcomers wanting to tinker with multiple software/hardware add-ons, and as these CYD ESP32 displays being plentiful and costing under $15, you might see more people asking about this.

Thanks again for creating this! Now I have a lot of work ahead of me to seek and create correctly sized jpeg image files for all the cores/games I have. XD


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

Posted: Mon Feb 03, 2025 6:22 pm
by Schnookums
RealLarry wrote: Mon Sep 23, 2024 2:09 pm
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!

Life got in the way so I didn't get a chance to test this out, will finally do so. Thank you so much!


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

Posted: Tue Feb 04, 2025 12:48 am
by Missus

Slow golf clap for RealLarry.
What a lad.