Page 6 of 11
Re: ST7789 display
Posted: Fri Feb 24, 2023 10:53 am
by BenR
Hello,
Looks like your display pixel width and height properties might be mixed up. This might help with getting access to the rest of the display.
As for the striping that's interesting. I wonder if it's down to brightness or contrast settings etc.
Re: ST7789 display
Posted: Sat Feb 25, 2023 11:32 am
by jandidden
This post deleted
Re: ST7789 display
Posted: Sat Feb 25, 2023 12:09 pm
by jandidden
The plot thickens. I can get the attached, which looks as advertised, with the following changes:
- swap the X and Y pixel defs in the display properties, AND make the x - number slightly larger than the display datasheet values. Display x = 320, y = 170, set properties to x = 205 and y = 320;
- set display orientation to 90deg CW (parameter = 1).
I tried all the other orientation and X-Y permutations, they all give wrapped line displays, with or without the hash area.
Jan Didden
Re: ST7789 display
Posted: Tue Feb 28, 2023 4:05 pm
by jandidden
Next up: color setting.
If I set all three forground colors to 0, I get a black image; with all colors set to 250, I get a white image.
But. Setting all background colors to 0 gives me a white background, and setting them all to 255 also gives me a white background.
Is this normal? If so, how do I get a black background?
FC9, ST7789 display.
Jan
Re: ST7789 display
Posted: Tue Feb 28, 2023 4:38 pm
by medelec35
After setting the new background colour, did you use ClearDisplay command straight after?
Re: ST7789 display
Posted: Tue Feb 28, 2023 4:46 pm
by jandidden
Martin, I did it as separate compiles.
Once with the 0,0,0 and once with the 250,250,250. Each time started with an initialise, rotate display, clear display.
Jan
Re: ST7789 display
Posted: Tue Feb 28, 2023 4:48 pm
by medelec35
Can you post your fcfx project file please?
Re: ST7789 display
Posted: Wed Mar 01, 2023 9:17 am
by jandidden
Yes, here it is Martin.
Another question: the ESP controller has configureable pin pull up/pull downs:
Do I use that in a C-block or is there some support for this in an FC9 macro?
Jan
Re: ST7789 display
Posted: Wed Mar 01, 2023 2:04 pm
by medelec35
Hi.
I have just had a look and a ClearDisplay command has not been placed after Background colours.
Please see the attached modified project.
As for the ESP32 pin pull-ups,
this post should help
Re: ST7789 display
Posted: Wed Mar 01, 2023 8:45 pm
by jandidden
Thanks Martin, that works.
What you probably got is that I want to display a soft keyboard, and then select characters with a couple of navigation buttons.
The character that is selected at any moment should reverse color to provide visual feedback to the user.
I'll work on that next.
Thanks for getting me going.
Jan