Thursday, November 23rd 2017, 12:09pm UTC+1

You are not logged in.

  • Login
  • Register

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 36

1

Wednesday, March 16th 2016, 2:55pm

[SOLVED] How to use hardware cursor with emWin?

These days I was struggling with hardware cursor.
I configured the lpc43xx, and tested ok.

I knew that both lpc43xx and emWin support hardware cursor.
But, there're some questions with emWin:
a) Need another layer? (Now GUI_NUM_LAYERS is limited to 1 by default)
b) How to tell emWin there's a hardware cursor and use it?
c) lpc43xx modifies frame buffer directly, will emWin overwrite them?

The UM03001 says very little about it.
Any idea or hint is welcome! Thanks.

This post has been edited 1 times, last edit by "kenmux" (Mar 30th 2016, 7:52am)


SEGGER - Jörg

Super Moderator

Date of registration: Dec 20th 2007

Posts: 81

2

Tuesday, March 29th 2016, 4:44pm

Hi,

a) Yes, as explained in the documentation. Excerpt:

"If a hardware supports multiple layers and the ability of layer positioning emWin can be configured to use a separate layer for managing the cursor."

b) “GUI_AssignCursorLayer()” should be used.

c) Should be explained in detail under “GUI_AssignCursorLayer() in chapter 'MultiLayer API'

Regards,
Jörg

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 36

3

Wednesday, March 30th 2016, 7:50am

I see. Thanks for your reply!
It seems that lpc43xx done all job, no extra layer needed.