SmittyHalibut / EleksTubeHAX

A custom firmware for the EleksTube IPS Clock
GNU General Public License v3.0
112 stars 44 forks source link

BoingBall + FW Backup not displaying anything #1

Closed saschaludwig closed 3 years ago

saschaludwig commented 3 years ago

If I flash the BoingBall, the displays remain all black. On the serial I can see the fps numbers though.

I also tried flashing your original firmware: same result, black displays. The fw dump from my clock looks a bit different in some places. https://github.com/saschaludwig/EleksTubeHAX/blob/main/original-firmware/fw-backup-4M_sascha.bin

Any Idea what might be the difference? My PCB says "EleksTube IPS Docker v6.1.11"

Best regards, Sascha

frankcohen commented 3 years ago

Thanks and welcome to the fun! I’m glad you tried it. Did you make these changes:

On MacOS change changed the ~/Documents/Arduino/libraries/TFT_eSPI/User_Setup.h as:

define ST7789_DRIVER

define TFT_SDA_READ

define TFT_RGB_ORDER TFT_RGB

define TFT_HEIGHT 240 (I know this is wrong, yet it works)

define TFT_CS 16 // Chip select control pin D8

define TFT_DC -1 // Data Command control pin

define TFT_RST 17 // Reset pin (could connect to NodeMCU RST, see next line)

define TFT_MISO -1

define TFT_MOSI 23

define TFT_SCLK 18

define TFT_CS -1 // Chip select control pin

define TFT_DC 25 // Data Command control pin

define TFT_RST 26 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST

-Frank

On May 10, 2021, at 7:59 AM, Sascha Ludwig @.***> wrote:

If I flash the BoingBall, the displays remain all black. On the serial I can see the fps numbers though.

I also tried flashing your original firmware: same result, black displays. The fw dump from my clock looks a bit different in some places. https://github.com/saschaludwig/EleksTubeHAX/blob/main/original-firmware/fw-backup-4M_sascha.bin https://github.com/saschaludwig/EleksTubeHAX/blob/main/original-firmware/fw-backup-4M_sascha.bin Any Idea what might be the difference? My PCB says "EleksTube IPS Docker v6.1.11"

Best regards, Sascha

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SmittyHalibut/EleksTubeHAX/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUEWMMSHO2KBALMIUCYI7DTM7YGXANCNFSM44RNIVEQ.

saschaludwig commented 3 years ago

Thanks for pointing that out :-) my fault. I'm a bit confused because TFT_CS and TFT_DC is redefined with different values at the end. I will use the last ones and give it a try.

saschaludwig commented 3 years ago

I now use:

#define ST7789_DRIVER
#define TFT_SDA_READ
#define TFT_RGB_ORDER TFT_RGB
#define TFT_HEIGHT 240
#define TFT_MISO -1
#define TFT_MOSI 23
#define TFT_SCLK 18
#define TFT_CS   -1 
#define TFT_DC   25
#define TFT_RST  26

And that gives me an output, but it's shifted towards the top and does some strange garbage if the ball is in the upper part of the display.

Here is a video of that: https://www.youtube.com/watch?v=K37HdH-bM6A

SmittyHalibut commented 3 years ago

Set width to 135. The same way you’re setting height.

On May 10, 2021, at 9:10 AM, Sascha Ludwig @.***> wrote:

 I now use:

define ST7789_DRIVER

define TFT_SDA_READ

define TFT_RGB_ORDER TFT_RGB

define TFT_HEIGHT 240

define TFT_MISO -1

define TFT_MOSI 23

define TFT_SCLK 18

define TFT_CS -1

define TFT_DC 25

define TFT_RST 26

And that gives me an output, but it's shifted towards the top and does some strange garbage if the ball is in the upper part of the display.

Here is a video of that: https://www.youtube.com/watch?v=K37HdH-bM6A

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

frankcohen commented 3 years ago

Cool! At least part of the ball is working. I felt a thrill when I saw it for the first time. Hope you did too!

I’ll bet the garbage is coming from one of the values being set wrong - I mean, that I gave you some wrong advice on the settings. I will have time tonight to keep hacking away at it.

By the way, you’re further than I was… you have double displays working. I had only one!

-Frank


Frank Cohen, Founder @.*** http://www.votsh.com Phone: (408) 364-5508 USA

On May 10, 2021, at 9:10 AM, Sascha Ludwig @.***> wrote:

I now use:

define ST7789_DRIVER

define TFT_SDA_READ

define TFT_RGB_ORDER TFT_RGB

define TFT_HEIGHT 240

define TFT_MISO -1

define TFT_MOSI 23

define TFT_SCLK 18

define TFT_CS -1

define TFT_DC 25

define TFT_RST 26

And that gives me an output, but it's shifted towards the top and does some strange garbage if the ball is in the upper part of the display.

Here is a video of that: https://www.youtube.com/watch?v=K37HdH-bM6A https://www.youtube.com/watch?v=K37HdH-bM6A — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SmittyHalibut/EleksTubeHAX/issues/1#issuecomment-836898032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUEWMKPWZOVQQS55VH22YDTNAAPZANCNFSM44RNIVEQ.

saschaludwig commented 3 years ago

Set width to 135. The same way you’re setting height.

That did the trick! :-)

and @frankcohen: yes, gave me goosebumps. awesome!

frankcohen commented 3 years ago

Yeah!!!!!


Frank Cohen, Founder @.*** http://www.votsh.com Phone: (408) 364-5508 USA

On May 10, 2021, at 9:48 AM, Sascha Ludwig @.***> wrote:

Set width to 135. The same way you’re setting height.

That did the trick! :-)

and @frankcohen https://github.com/frankcohen: yes, gave me goosebumps. awesome!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SmittyHalibut/EleksTubeHAX/issues/1#issuecomment-836952063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUEWMP5VRFHLSOC65E3GYTTNAE45ANCNFSM44RNIVEQ.

saschaludwig commented 3 years ago

For reference: https://www.youtube.com/watch?v=zj1XFj4SVxM