Page 5 of 46

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Thu May 06, 2021 1:49 pm
by venice
RealLarry wrote: Thu May 06, 2021 8:03 am
dave18 wrote: Wed May 05, 2021 3:16 pmHappy to swap code/esp with anyone who wants to test stuff (am in UK). Case arrived today so am distracted measuring and 3d printing, will hopefully have something to show after the weekend.
I think you're using Windows as you'd dropped Putty logs some posts ago? In case of using Linux I'd be happy to zip a cleaned up copy of my Arduino subfolder for you.
I have attached my actually compiled bin file which I have uploaded to my TTGO-T8 just a few minutes before.

//Edit
Attachment deletet

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 12:48 am
by dave18
Thanks, although I guess it will be hard to tell if it's working correctly on my 128 pixel display.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 12:53 am
by dave18
RealLarry wrote: Thu May 06, 2021 8:03 am
dave18 wrote: Wed May 05, 2021 3:16 pmHappy to swap code/esp with anyone who wants to test stuff (am in UK). Case arrived today so am distracted measuring and 3d printing, will hopefully have something to show after the weekend.
I think you're using Windows as you'd dropped Putty logs some posts ago? In case of using Linux I'd be happy to zip a cleaned up copy of my Arduino subfolder for you.
Hmm, might be an interesting test. I can always compile on a VM and see if it makes a difference. Thanks.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 4:40 am
by venice
dave18 wrote: Fri May 07, 2021 12:48 am Thanks, although I guess it will be hard to tell if it's working correctly on my 128 pixel display.
Sorry I forgot.
I can build one for you as well.

Did you already left an link for your source?

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 7:19 am
by dave18
venice wrote: Fri May 07, 2021 4:40 am
dave18 wrote: Fri May 07, 2021 12:48 am Thanks, although I guess it will be hard to tell if it's working correctly on my 128 pixel display.
Sorry I forgot.
I can build one for you as well.

Did you already left an link for your source?
I did but here it is to save you looking. https://github.com/dave18/MiSTer_tty2ol ... SD1306_USB

Please note that I added a function to the display library to integer scale the bitmap (included in the git)

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 7:41 am
by venice
dave18 wrote: Fri May 07, 2021 7:19 am ...
I did but here it is to save you looking. https://github.com/dave18/MiSTer_tty2ol ... SD1306_USB

Please note that I added a function to the display library to integer scale the bitmap (included in the git)
Here we are.
The SD Version didn't compile at my end but I have Compiler Warnings set to all and this causes sometimes more strict compiler errors

Code: Select all

the address of 'filename' will always evaluate as 'true' [-Werror=address]

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 9:23 am
by RealLarry
dave18 wrote: Fri May 07, 2021 12:53 am
RealLarry wrote: Thu May 06, 2021 8:03 am
dave18 wrote: Wed May 05, 2021 3:16 pmHappy to swap code/esp with anyone who wants to test stuff (am in UK). Case arrived today so am distracted measuring and 3d printing, will hopefully have something to show after the weekend.
I think you're using Windows as you'd dropped Putty logs some posts ago? In case of using Linux I'd be happy to zip a cleaned up copy of my Arduino subfolder for you.
Hmm, might be an interesting test. I can always compile on a VM and see if it makes a difference. Thanks.
Here you are: LINK DELETED This is my stripped down playground for my/our tty2xxx things. The archive includes a hidden subdirectory containing a cache and other things; I don't know if it's neccessary for your setup and tests so I nevertheless included it.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 2:29 pm
by dave18
Thanks, I'll give it a try

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 2:35 pm
by dave18
Case is finished and the display looks small but perfectly formed.
IMG_20210507_134826.jpg
IMG_20210507_150207.jpg

IMG_20210507_134837.jpg
IMG_20210507_150143.jpg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 4:07 pm
by dave18
RealLarry wrote: Fri May 07, 2021 9:23 am
dave18 wrote: Fri May 07, 2021 12:53 am
RealLarry wrote: Thu May 06, 2021 8:03 am

I think you're using Windows as you'd dropped Putty logs some posts ago? In case of using Linux I'd be happy to zip a cleaned up copy of my Arduino subfolder for you.
Hmm, might be an interesting test. I can always compile on a VM and see if it makes a difference. Thanks.
Here you are: https://drive.google.com/drive/folders/ ... sp=sharing This is my stripped down playground for my/our tty2xxx things. The archive includes a hidden subdirectory containing a cache and other things; I don't know if it's neccessary for your setup and tests so I nevertheless included it.
So, I used your archive with my Ubuntu 64 VM (under VMware). I went back to the original USB source file from Venice's github and re-added my display changes, so this now uses the Strings library again which kept crashing my ESP under Windows. Compiled and uploaded to the board straight from the VM (the upload process worked flawlessly from the VM!), and Voila! Everything works fine at 115,200. Definitely some buggy libraries floating around in the Windows version. Thanks for both your help on this.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 6:20 pm
by venice
dave18 wrote: Fri May 07, 2021 4:07 pm …and Voila! Everything works fine at 115,200. Definitely some buggy libraries floating around in the Windows version. Thanks for both your help on this.
Really strange behavior :roll:
And cool that it works now :)

Maybe a mix of old and new libraries.
If you like to try, add an new Windows User and install
all boards and libraries under this user from scratch and try again with an new working/project folder.

Btw, can I use one of your case pictures for the gallery?

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 6:52 pm
by dave18
venice wrote: Fri May 07, 2021 6:20 pm Btw, can I use one of your case pictures for the gallery?
Of course

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 6:58 pm
by gojira54
I was waiting for PCBs to turn up before trying this - got some spares if anyone wants at cost (I'm in the UK)

It isn't working for me though yet - please could I get some advise?
The OLED shows 'MISTER FPGA' on startup but then doesn't show the mister logo or any core image when cores are selected, if I change in the ini file USETEXTPICTURE="yes" the core name is shown in writing when the core is started :s

I'm not good at scripting/linux etc but tried to follow the instructions, this is what I have done;
set OLED jumpers for 4SPI
written the USB version sketch & installed U8g2 Library
run the install command and then altered the ini file

I have a populated tty2oledpics folder in \\mister\fat and NO msd card in the TTGO-T8.

What am I doing wrong please?

lVRodyB.jpeg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 7:28 pm
by dave18
Have you also set USBMODE="yes" in the ini file?

If so, worth double checking that you only have one ttyUSB device listed under /devs. The ini assumes that the TTGO will be on ttyUSB0 but this can be changed in the ini file.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 7:40 pm
by venice
gojira54 wrote: Fri May 07, 2021 6:58 pm
It isn't working for me though yet - please could I get some advise?
The OLED shows 'MISTER FPGA' on startup but then doesn't show the mister logo or any core image when cores are selected, if I change in the ini file USETEXTPICTURE="yes" the core name is shown in writing when the core is started :s

I'm not good at scripting/linux etc but tried to follow the instructions, this is what I have done;
set OLED jumpers for 4SPI
written the USB version sketch & installed U8g2 Library
run the install command and then altered the ini file
The Startscreen should show an USB Logo in the top right corner if you use the USB Arduino Sketch.
I don‘t see this on your screenshot.
USB_32x16png.png

Did you set the INI Option „USBMODE“ to „yes“?

Generally, all sketch versions should show the corename as text if no matching picture is available.
5A7FBB3C-CDB9-42A7-8016-507ABCC62CDC.jpeg

„USETEXTPICTURE“="yes" is only responsible for the download of „pictures with Text“ if you run the updater.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 7:43 pm
by venice
dave18 wrote: Fri May 07, 2021 7:28 pm If so, worth double checking that you only have one ttyUSB device listed under /devs. The ini assumes that the TTGO will be on ttyUSB0 but this can be changed in the ini file.
Good point!

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 8:20 pm
by RealLarry
dave18 wrote: Fri May 07, 2021 4:07 pm
RealLarry wrote: Fri May 07, 2021 9:23 am
dave18 wrote: Fri May 07, 2021 12:53 am

Hmm, might be an interesting test. I can always compile on a VM and see if it makes a difference. Thanks.
Here you are: https://drive.google.com/drive/folders/ ... sp=sharing This is my stripped down playground for my/our tty2xxx things. The archive includes a hidden subdirectory containing a cache and other things; I don't know if it's neccessary for your setup and tests so I nevertheless included it.
So, I used your archive with my Ubuntu 64 VM (under VMware). I went back to the original USB source file from Venice's github and re-added my display changes, so this now uses the Strings library again which kept crashing my ESP under Windows. Compiled and uploaded to the board straight from the VM (the upload process worked flawlessly from the VM!), and Voila! Everything works fine at 115,200. Definitely some buggy libraries floating around in the Windows version. Thanks for both your help on this.
Oi, glad to hear and congrats to get it running! 25:0 for Linux and me :) But very strange behaviour, providing that Windows, Arduino and it's Libs are up to date. Should not happen, definitely.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Fri May 07, 2021 8:53 pm
by gojira54
Thanks for the replies - but I've gone backwards :/
I wrote to the arduino again with the USB version sketch, OLED stays black all the time now.
After removing the mister installation and reinstalling the updater says '/dev/ttyUSB0 detected' so I haven't broken it?
How to test please? I don't understand the instructions> You can easily test your Display by sending text from the Arduino's Serial console.
I don't know what I'm doing with this stuff, this is connected direct to a PC, what software and what commands to type pls?
Apologies for my lack of understanding, any help much appreciated

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 6:20 am
by venice
Moinsen,
I am still working at the Documentation so it can be something is missed.
gojira54 wrote: Fri May 07, 2021 8:53 pm Thanks for the replies - but I've gone backwards :/
I wrote to the arduino again with the USB version sketch, OLED stays black all the time now.
I updated the USB Sketch a few days before and have not set the TTGO Board as default Board.
This setting is resonsible for the correct Display connection.
I have changed this now to TTGO as default Board.
Uncomment_Only_One_Board.png

Please download the USB Sketch again and transfer it to the TTGO.
Take a look at https://github.com/venice1200/MiSTer_tt ... o-Settings as I add a few more Information there.

Step by Step

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 6:34 am
by venice
gojira54 wrote: Fri May 07, 2021 8:53 pm How to test please? I don't understand the instructions> You can easily test your Display by sending text from the Arduino's Serial console.
The Arduino IDE has an Terminal/Serial Monitor which you can use for testing.
Just open the Window, check the connecction details and send your test words.

SerialMonitor_Open_small.png
SerialMonitor_1_small.png

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 2:13 pm
by gojira54
Thanks very much for the infos =]
I have written to my TTGO again and display shows once correct option is selected in the sketch - thanks I missed that.
When writing the sketch I got in red info about my board, it has a 40mhz crystal & 4mb flash, I have amended the board properties when writing to match
I cannot get any picture to display when using the arduino software serial monitor, I'm starting to think have a dodgy TTGO - when connected to mister I get graphical corruption on oled and random behaviour, never seen any of the pictures load

Mt7xnej.jpeg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 2:25 pm
by venice
Make some good readable Pictures from the "red" messages, from your Board and from your Arduino Board Settings and post them here.
If possible also pictures from the connection between the ESP and the Display.
My Board has 16MB Flash, you need to change the amount of Flash Memory accordingly to your board.

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 2:46 pm
by gojira54
Thanks a lot for the help =]
I've only soldered the pins marked in red, the rest are not used?

ZParbSR.jpg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sat May 08, 2021 3:45 pm
by venice
No Problem seen at the "red" text.

Didn't you solder OLED Pin 1 with GND? That's OLED's Main GND Point.
See https://github.com/venice1200/MiSTer_tt ... Electrical

//Edit
Did you change the Flash Memory Frequency?

My TTGO T8 has an 40MHz Crystal as well (just checked) but I never changed the Flash Memory Frequency in Arduino IDE
which is normally set to 80Mhz.
See https://github.com/venice1200/MiSTer_tt ... o-Settings

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sun May 09, 2021 3:02 pm
by gojira54
GND wire fixed it :oops:
I made some PC Engine tiles - attached
Again if anyone wants a TTGO-T8/OLED PCB give me PM
Thanks a lot for your time & patience helping me & for creating - this is a great addition to mister!!

NErzWDN.jpg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sun May 09, 2021 6:27 pm
by venice
gojira54 wrote: Sun May 09, 2021 3:02 pm GND wire fixed it :oops:
Congratulations.
Do you plan to add it to an case?
If not, can I use this picture for the gallery?

Btw, did you use the TTGO PCB from the Github Repository?

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Sun May 09, 2021 7:28 pm
by gojira54
Yes I used the PCB from your github - works fine =]
No problem to use the pic anywhere, thanks again!

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Mon May 10, 2021 8:32 pm
by gojira54
I made some alt images for PCE, MD, MD-CD, famicom, super famicom & neo geo, attached :)

7RI2PrL.jpeg
DKyRlMj.jpeg

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Tue May 11, 2021 9:19 am
by venice
JP Style, cool 8-)

//Edit
I added your ZIP's to the Github Repo in Pictures/XBM_Packs.

https://github.com/venice1200/MiSTer_tt ... /XBM_Packs

Re: tty2oled Software Add-On now with USB/SD Support (Show Text/Pictures based on loaded Core on Display)

Posted: Thu May 13, 2021 7:27 pm
by jawler
I have some problems with tty2oled, i hope someone can help me.
My oled screen is showing mister fpga by sorgelig and the usb icon.
https://photos.app.goo.gl/5Zv7LJzmbnK4CZYu9
Thanks