[SOLVED] Blank screen when running Tetris example

Post Reply
oovaoova
Posts: 3
Joined: Sat Oct 24, 2020 6:07 pm
languages_spoken: english, german
ODROIDs: ODROID GO
Has thanked: 1 time
Been thanked: 0
Contact:

[SOLVED] Blank screen when running Tetris example

Post by oovaoova »

Hi,

I want to run Tetris on my Odroid Go as described in this tutorial. The setup of the required libraries and the Arduino IDE on my Mac was successful: I could run a Hello world application by uploading it using the IDE.

But when I upload the Tetris example (its code can found here), all I see is a blank screen on my Odroid. Pressing buttons or restarting the Odroid has no effect.

The log output of my upload does not seem to contain any errors:

Code: Select all

In file included from /Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/Rtc_Pcf8563.cpp:44:0:
/Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/Rtc_Pcf8563.cpp: In member function 'char* Rtc_Pcf8563::version()':
/Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/Rtc_Pcf8563.h:33:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 #define RTCC_VERSION  "Pcf8563 v1.0.3"
                       ^
/Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/Rtc_Pcf8563.cpp:367:10: note: in expansion of macro 'RTCC_VERSION'
   return RTCC_VERSION;  
          ^
In file included from /Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/tca8418.cpp:30:0:
/Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/tca8418.h:26:0: warning: "INTERRUPT" redefined
 #define INTERRUPT 0x41
 ^
In file included from /Users/user/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32/xtensa/xtruntime.h:30:0,
                 from /Users/user/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos/freertos/portmacro.h:80,
                 from /Users/user/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos/freertos/portable.h:96,
                 from /Users/user/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/freertos/freertos/FreeRTOS.h:105,
                 from /Users/user/Documents/Arduino/hardware/espressif/esp32/cores/esp32/Arduino.h:32,
                 from /Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/tca8418.h:9,
                 from /Users/user/Documents/Arduino/libraries/ODROID-GO/src/sensors/tca8418.cpp:30:
/Users/user/Documents/Arduino/hardware/espressif/esp32/tools/sdk/include/esp32/xtensa/config/specreg.h:82:0: note: this is the location of the previous definition
 #define INTERRUPT 226
 ^
Der Sketch verwendet 434207 Bytes (33%) des Programmspeicherplatzes. Das Maximum sind 1310720 Bytes.
Globale Variablen verwenden 80028 Bytes (24%) des dynamischen Speichers, 247652 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
esptool.py v2.6
Serial port /dev/cu.SLAB_USBtoUART
Connecting........_
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 30:ae:a4:cf:5a:88
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 16MB
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 9506.1 kbit/s)...
Hash of data verified.
Flash params set to 0x024f
Compressed 18608 bytes to 12030...
Wrote 18608 bytes (12030 compressed) at 0x00001000 in 0.1 seconds (effective 1024.0 kbit/s)...
Hash of data verified.
Compressed 434432 bytes to 184495...
Wrote 434432 bytes (184495 compressed) at 0x00010000 in 3.8 seconds (effective 910.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 3069.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Any idea of what is going wrong? I'd appreciate any support.

Thanks,
oova

User avatar
odroid
Site Admin
Posts: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 909 times
Contact:

Re: Blank screen when running Tetris example

Post by odroid »

I think there could be a library compatibility issue with newer Arduino IDE versions.
Can you try this example to check the graphic library functionality?
https://wiki.odroid.com/odroid_go/ardui ... flappybird

oovaoova
Posts: 3
Joined: Sat Oct 24, 2020 6:07 pm
languages_spoken: english, german
ODROIDs: ODROID GO
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Blank screen when running Tetris example

Post by oovaoova »

Thanks for your feedback. Flappybird runs fine. I used the Arduino IDE 1.8.13.

lsc1117
Posts: 196
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 1 time
Been thanked: 18 times
Contact:

Re: Blank screen when running Tetris example

Post by lsc1117 »

Hello oovaoova,

Comment out line 42 to initialize a serial port.
https://github.com/hardkernel/ODROID-GO ... is.ino#L42
It has duplicated serial port initialization.

Thank you.
These users thanked the author lsc1117 for the post:
oovaoova (Mon Nov 02, 2020 1:13 am)

oovaoova
Posts: 3
Joined: Sat Oct 24, 2020 6:07 pm
languages_spoken: english, german
ODROIDs: ODROID GO
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Blank screen when running Tetris example

Post by oovaoova »

That was it! Line 42 was the culprit. It's working now. Thanks so much!

Post Reply

Return to “Arduino Coding Camp”

Who is online

Users browsing this forum: No registered users and 1 guest