Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank screen (lii9325) #33

Open
AlivE-git opened this issue Jun 10, 2023 · 7 comments
Open

Blank screen (lii9325) #33

AlivE-git opened this issue Jun 10, 2023 · 7 comments

Comments

@AlivE-git
Copy link

Hi. I have a white screen issue. "afio_cfg_debug_ports(AFIO_DEBUG_NONE)" and "disableDebugPorts()" don't help. But the factory firmware works fine.
Also, the serial port works fine, so the problem is definitely with the display.
I tried to build the firmware from the sources, as well as precompiled binaries from the repository.
Perhaps some hardware modification is needed?

@AlivE-git
Copy link
Author

So, in my case, the display controller is lii9325. If I change it in the tft.display function it starts working, but it looks like fillScreen is not working properly. I tried the examples taken from the Adafruit_TFTLCD_8bit_STM32 library repository, they also do not work correctly.
photo_2023-06-12_16-44-07

@AlivE-git AlivE-git changed the title Blank screen Blank screen (lii9325) Jun 12, 2023
@kittenarmy
Copy link

kittenarmy commented Oct 29, 2023

I think I have the same display or variant. Looking at the ribbon cable under the screen it says CL9325-115. TFT board is PN 109-13700-00A1.

I tried adding #include "src/TFTLib/ili932x.h" to DLO-138 and put tft.begin(0x9325); in display; I get some upside down images not quite drawn correctly. Well, it is better than just white screen.

@kittenarmy
Copy link

kittenarmy commented Oct 29, 2023

After updating to Adafruit GFX 1.2.7 library I get some waveform too. But still upside down and draw problems.

IMG_0531

Setting getrotate to landscape 3 to flip it, also uncommented the breakout since we don't have breakout board on DSO-138, now I can see some more text (sampling), but still some small text is not visible i.e. when it boots it only displays "DLO-138" and the bottom row with voltage etc never displays.

IMG_0535

I may try SPI instead as the TFT and later Adafruit supports it, however already I notice how slow the oscilloscope feels compared to stock firmware.

@kittenarmy
Copy link

So, in my case, the display controller is lii9325. If I change it in the tft.display function it starts working, but it looks like fillScreen is not working properly. I tried the examples taken from the Adafruit_TFTLCD_8bit_STM32 library repository, they also do not work correctly. photo_2023-06-12_16-44-07

Comparing this project code to Adafruit_TFTLCD_8bit_STM32 there's sections that could be causing some elements to display upside down like in your second picture. Additionally there is some 8bit or 32bit vs originally 16bit variables that could be messing with display.

@AlivE-git
Copy link
Author

I haven't looked into the project for a long time, but the screen has worked for me.
I replaced "tft.begin(0x9341)" with "tft.begin(0x9325)", "tft.setRotation(LANDSCAPE)" with "tft.setRotation(3)", "tft.full Screen(ILI9341_BLACK)" with "tft.fillRect(0, 0, TFT_WIDTH, TFT_HEIGHT, ILI9341_BLACK);".
But the oscilloscope was not working correctly. The values on the display were updated only by pressing the keys. There may be a problem with interrupts.

@kittenarmy
Copy link

I've been poring over the code and it seems like the main problem is fillScreen GFX function isn't working. Everything else is drawing correctly. It's just a mess without fillScreen. But there is a snag, fillScreen function seems to rely on setAddrWindow but for me I can't call it directly or it crashes.

@kittenarmy
Copy link

kittenarmy commented Dec 21, 2023

I replaced fillScreen with fillRect and that helped, but I'm still missing a lot of the size1 text.
foto_no_exif(4)

Not sure why the text isn't working, I can get these functions to work fine in a simple sketch. I see on your pics this small text from banner is displaying, whereas I only get DLO-138 in a box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants