• AVR Freaks

Helpful ReplyHot!Legato display portrait orientation

Author
deinjani
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2021/01/05 04:47:28
  • Location: 0
  • Status: offline
2021/01/08 02:49:48 (permalink)
0

Legato display portrait orientation

Hi!
 
My current project is a handheld device, wich has a landscape display. But because the case design, it used as a portrait display. Custom board, populated with fully custom parts with an PIC32MZ2064DAS169, but based on the MEBII hardware architect. When the project was in proof of concept phase, I use Aria lib (which works OK), but nowadays, Legato is the thing. Everything is working, as it should, but the display orientation is always 0(zero) degree, but i need 270 degree orientation. I try different settings in Harmony, with different lib versions, but Legato never cooperates with orientation change. I tried gfx 3.9.0 lib too, with negative results. I tried the example projects, but all of them are landscape. I tried force portait in composer, even in the generated code. It never worked.
 
Maybe I miss a setting somewhere?
Or, if impossible to solve this challenge in Legato, how can I downgrade back to Aria to work properly (like a year ago)?
Please, excuse my English, I'm not a native English speaker.
 
John from Hungary.
#1
automate
Super Member
  • Total Posts : 123
  • Reward points : 0
  • Joined: 2014/11/10 09:58:57
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/08 09:11:13 (permalink)
0
@deinjani
 
Continue to use GFX Legato v3.9.0.
 
Try these steps to set 270 orientation:
  • Using Composer, open Project Settings
  • Under Library Settings, navigate to Software Render Orientation. Select 270.
  • Select OK
  • Save, Generate, Compile, and run your design on your hardware
 
#2
deinjani
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2021/01/05 04:47:28
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/08 10:11:50 (permalink)
0
@automate
 
Thank your suggestion! It makes some changes, but it shows on the display weirdly.
You can see here: https://www.dropbox.com/sh/soznspxcfa48do7/AADDbaT-3FrBMvthfMuTvBsia?dl=0
 
Could I set orientation outside the composer set 270 or 0? I checked both, neither work.
#3
deinjani
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2021/01/05 04:47:28
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/13 03:35:30 (permalink)
0
So, I did some test, and the LE 2DGPU appears to be the problem. In this portrait orientation the display become a huge mess, but without GPU, it looks fine.
Any suggestion, why behave like this?
 
John from Hungary.
#4
automate
Super Member
  • Total Posts : 123
  • Reward points : 0
  • Joined: 2014/11/10 09:58:57
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/15 00:13:54 (permalink)
0
I was able to reproduce your problem using one of our quickstart demonstrations for MZ DA. I am working on a solution support non-ZERO orientations with the GPU. I will respond as soon as possible.
#5
deinjani
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2021/01/05 04:47:28
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/15 04:58:50 (permalink)
0
@automate
 
Thank your respond! Now, I know, its not me, I can move on.
I will wait Your solution with love. Thank You for all the effort.
 
John from Hungary.
#6
automate
Super Member
  • Total Posts : 123
  • Reward points : 0
  • Joined: 2014/11/10 09:58:57
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/25 08:35:52 (permalink) ☄ Helpfulby MHGC 2021/01/26 12:41:51
5 (1)
 @deinjani
It appears that the library and the GPU driver were competing on which would control the orientation setting for rectangles and lines. Test the fix below.
 
There are two recommended updates to address your 90 or 270 orientation issue. Please modify your gfx/legato/renderer/legato_gpu.c file as follows:
 
1. In function leGPU_DrawLine() at line 62: replace buf.orientation = GPU_ORIENTATION;   ==>  buf.orientation = GPU_ORIENT_0;
 
2. In function leGPU_FillRect() at line 146: replace  buf.orientation = GPU_ORIENTATION;   ==>  buf.orientation = GPU_ORIENT_0;
#7
deinjani
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2021/01/05 04:47:28
  • Location: 0
  • Status: offline
Re: Legato display portrait orientation 2021/01/26 05:05:26 (permalink)
0
Dear automate!
 
I tested it, and it seems working OK.
(btw, GPU_ORIENT_0 not included this file, i wrote a 0 instead.)
 
Thank You for the solution:
John from Hungary.
#8
Jump to:
© 2021 APG vNext Commercial Version 4.5