TTY2OLED Issue

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
mike4t5
Posts: 4
Joined: Sun May 24, 2020 9:40 pm
Been thanked: 3 times

TTY2OLED Issue

Unread post by mike4t5 »

Hey there, I was hoping someone could help me. I have set up the tty2oled and it seems to not be working quite right. It's displaing things but not properly. When not in a core it's just desplaying the letter z like this:

20230806_120651.jpg

When I'm in a core I get this random string:

20230806_120917.jpg

Is there any idea what I've done wrong?
Thanks in advance

You do not have the required permissions to view the files attached to this post.
AngelicLiver
Posts: 329
Joined: Fri May 29, 2020 8:50 am
Has thanked: 69 times
Been thanked: 95 times

Re: TTY2OLED Issue

Unread post by AngelicLiver »

I would check your .ini settings against what's listed on the repo's wiki. It strikes me that it is probably misconfigured to use a display of a different resolution to the one you are using and as a result it is spitting out parts of the terminal not intended to be seen.

Failing that, start from the beginning of the installation process and/or post in this thread and someone might be able to help you.

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: TTY2OLED Issue

Unread post by venice »

Hi,
we need a few more infos from you!

See:
https://github.com/venice1200/MiSTer_tt ... nformation

Do you see the startup screen after the display is powerred on?

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

mike4t5
Posts: 4
Joined: Sun May 24, 2020 9:40 pm
Been thanked: 3 times

Re: TTY2OLED Issue

Unread post by mike4t5 »

Hi there, sorry for the late reply, I was getting the startup screen. After an update, I'm getting nothing. I've started to look at redoing it from scratch and I'm now getting an error when compiling the code in the Arduino IDE This is what I'm getting:

Code: Select all

Arduino: 1.8.13 (Windows 10), Board: "WEMOS LOLIN32, 80MHz, Default, 240MHz (WiFi/BT), 921600"

C:\Users\miiik\Documents\Arduino\mistertty2oled\MiSTer_SSD1322_USB\MiSTer_SSD1322_USB.ino: In function 'void oled_showScreenSaverPicture()':

MiSTer_SSD1322_USB:1076:52: error: a function-definition is not allowed here before '{' token

 void oled_showSmallCorePicture(int xpos, int ypos) {

                                                ^

MiSTer_SSD1322_USB:1088:12: error: 'py' was not declared in this scope

   for (py=0; py<DispHeight; py=py+2) {

        ^

MiSTer_SSD1322_USB:1089:14: error: 'px' was not declared in this scope

     for (px=0; px<DispLineBytes1bpp; px++) {

          ^

MiSTer_SSD1322_USB:1090:11: error: 'b1' was not declared in this scope

       b1=logoBin[px+py*DispLineBytes1bpp];                       // Get Data Byte for 8 Pixels

       ^

MiSTer_SSD1322_USB:1091:16: error: 'i' was not declared in this scope

       for (i=0; i<8; i=i+2){

            ^

MiSTer_SSD1322_USB:1093:30: error: 'xpos' was not declared in this scope

           oled.drawPixel(xpos+x, ypos+y, SSD1322_WHITE);         // Draw Pixel if "1"

                          ^

MiSTer_SSD1322_USB:1093:38: error: 'ypos' was not declared in this scope

           oled.drawPixel(xpos+x, ypos+y, SSD1322_WHITE);         // Draw Pixel if "1"

                                  ^

MiSTer_SSD1322_USB:1096:30: error: 'xpos' was not declared in this scope

           oled.drawPixel(xpos+x, ypos+y, SSD1322_BLACK);         // Clear Pixel if "0"

                          ^

MiSTer_SSD1322_USB:1096:38: error: 'ypos' was not declared in this scope

           oled.drawPixel(xpos+x, ypos+y, SSD1322_BLACK);         // Clear Pixel if "0"

                                  ^

MiSTer_SSD1322_USB:1114:12: error: 'py' was not declared in this scope

   for (py=0; py<DispHeight; py=py+2) {

        ^

MiSTer_SSD1322_USB:1115:14: error: 'px' was not declared in this scope

     for (px=0; px<DispLineBytes1bpp; px++) {

          ^

MiSTer_SSD1322_USB:1116:16: error: 'i' was not declared in this scope

       for (i=0; i<4; i++) {

            ^

MiSTer_SSD1322_USB:1117:13: error: 'b1' was not declared in this scope

         b1=logoBin[(px*4)+i+py*DispLineBytes4bpp];                                                  // Get Data Byte 1 for 2 Pixels

         ^

MiSTer_SSD1322_USB:1118:13: error: 'b2' was not declared in this scope

         b2=logoBin[(px*4)+i+(py+1)*DispLineBytes4bpp];                                              // Get Data Byte 2 for 2 Pixels

         ^

MiSTer_SSD1322_USB:1120:13: error: 'br' was not declared in this scope

         br=round((((0xF0 & b1) >> 4) + (0x0F & b1) + ((0xF0 & b2) >> 4) + (0x0F & b2)) / 4);        // rounding

         ^

MiSTer_SSD1322_USB:1121:28: error: 'xpos' was not declared in this scope

         oled.drawPixel(xpos+x, ypos+y, br);   // Draw only Pixel 1, Left Nibble

                        ^

MiSTer_SSD1322_USB:1121:36: error: 'ypos' was not declared in this scope

         oled.drawPixel(xpos+x, ypos+y, br);   // Draw only Pixel 1, Left Nibble

                                ^

MiSTer_SSD1322_USB:1144:36: error: a function-definition is not allowed here before '{' token

 void oled_showSystemHardware(void) {

                                ^

MiSTer_SSD1322_USB:2623:1: error: expected '}' at end of input

 }

 ^

exit status 1

a function-definition is not allowed here before '{' token



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I haven't made any changes to the code and it just won't work. I have all the required libraries installed as it says on GitHub. Not sure what I was doing wrong.

User avatar
venice
Top Contributor
Posts: 741
Joined: Tue Jun 16, 2020 9:29 am
Location: Germany
Has thanked: 264 times
Been thanked: 262 times

Re: TTY2OLED Issue

Unread post by venice »

Hi,
I need to ask again for more details.
Follow the list from my link and post your answers please.

Cheers

//Edit

Just compiled the source from github using Arduino IDE v2.1.1 with all recent libraries and the Lolin32 Hardware Profile.
Everything OK.

My MiSTer Add-On-Projects tty2oled, i2c2oled, SNAC2IEC
You can donate by sending a Postcard to me.

Post Reply