AnsweredHot!Second Layer overrides first

Author
bordlab
Starting Member
  • Total Posts : 35
  • Reward points : 0
  • Joined: 2018/01/29 06:45:53
  • Location: 0
  • Status: offline
2018/02/09 07:34:47 (permalink)
0

Second Layer overrides first

Background: MPLAB X IDE v4.05, XC32 v1.44B, Harmony v2.05.01, PIC32MZ2064DAG169, PIC32MZ2064DAG169 development board with display.
 
I enabled a second layer in the Graphics Composer and it looks fine there.  When I run it on hardware the second layer overrides the first with a black background.
 
On the Layer I have Alpha Blending and Transparency enabled
 
I also I have:
Graphic Stack->Graphics Controller -> GLCD -> Driver Settings -> Max Layer Count = 3
Then in the code I set
#define LA_MAX_LAYERS     2
 
If I make the second layer half the screen I can see the first layer on the side of the screen the second layer does not cover.
 
What am I missing?
 
Thank you!
Andy
#1
bblessing
Super Member
  • Total Posts : 692
  • Reward points : 0
  • Joined: 2008/12/04 06:44:21
  • Location: Cincinnati, OH
  • Status: offline
Re: Second Layer overrides first 2018/02/09 07:43:02 (permalink)
0
This begs the question: what were you expecting it to do? What are you trying to achieve?
#2
bordlab
Starting Member
  • Total Posts : 35
  • Reward points : 0
  • Joined: 2018/01/29 06:45:53
  • Location: 0
  • Status: offline
Re: Second Layer overrides first 2018/02/09 08:09:34 (permalink)
0
It is my understanding that I can layer graphic on top of one another.  So I can have a base layer of images (background) that does not change.  Then I have have another layer that lays over it for an active layer that I can then switch in and out depending on user input.  Basically a way to organize and encapsulate different groups of things.
#3
bblessing
Super Member
  • Total Posts : 692
  • Reward points : 0
  • Joined: 2008/12/04 06:44:21
  • Location: Cincinnati, OH
  • Status: offline
Re: Second Layer overrides first 2018/02/09 11:53:19 (permalink)
0
So you're doing what I'm doing then. My lowest layer operates as a sort of wallpaper, which sounds like what you're trying to do. Take a look at a post titled, "MPLAB Harmony 2.05 GFX". This may help you out.
#4
qɥb
Monolothic Member
  • Total Posts : 3329
  • Reward points : 0
  • Joined: 2017/09/09 05:07:30
  • Location: Jupiter
  • Status: offline
Re: Second Layer overrides first 2018/02/09 15:45:40 (permalink) ☼ Best Answerby MikeinAZ 2018/02/13 12:15:28

This forum is mis-configured so it only works correctly if you access it via https protocol.
The Microchip website links to it using http protocol. Will they ever catch on?
PicForum "it just works"
#5
Jump to:
© 2018 APG vNext Commercial Version 4.5