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.
ST7789 display
-
- Matrix Staff
- Posts: 1786
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 455 times
- Been thanked: 621 times
Re: ST7789 display
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: ST7789 display
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
- 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
- Attachments
-
- CW rot & x y swapped.jpg (134.57 KiB) Viewed 1496 times
Re: ST7789 display
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
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
Last edited by jandidden on Tue Feb 28, 2023 4:44 pm, edited 1 time in total.
Re: ST7789 display
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
Another question: the ESP controller has configureable pin pull up/pull downs:
Code: Select all
pinMode(PIN, INPUT_PULLUP);
Jan
- Attachments
-
- ESP32 wroom test.fcfx
- (22.01 KiB) Downloaded 49 times
-
- Matrix Staff
- Posts: 1491
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 536 times
- Been thanked: 485 times
Re: ST7789 display
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
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
- Attachments
-
- ESP32 wroom test medelec35.fcfx
- (22.21 KiB) Downloaded 55 times
Martin
Re: ST7789 display
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
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