Question on virtual screen

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Question on virtual screen

    what is the max virtual size of axes Y?

    I define the follow:

    C Source Code

    1. //// Physical display size//
    2. #define XSIZE_PHYS 800
    3. #define YSIZE_PHYS 480
    4. #define VXSIZE_PHYS (XSIZE_PHYS)
    5. #define VYSIZE_PHYS (YSIZE_PHYS*10)



    but I when I create windows on the area (0,480*8 ) - (800, 480*800+480), it display the follow:



    why?

    The post was edited 2 times, last by eamonning ().

  • SEGGER - Adrian wrote:

    Hello,

    The hardware has to provide video RAM which is able to store the size of the virtual screen. In addition to that the display controller has to allow setting the start address of the video RAM.

    Best regards,
    Adrian
    I have add the following code:

    C Source Code

    1. LCD_SetVRAMAddrEx(LayerIndex, (void*)LCD_VRAM_BASE_ADDR);



    But it still does not work well...
  • SEGGER - Adrian wrote:

    Hello,

    For detailed information on how to implement Virtual Screens, please refer to the chapter "Virtual Screens / Virtual Pages" in the emWin user manual.

    Best regards,
    Adrian


    First thanks for you reply.

    I have read the the Vitual Screens of the user manual.
    But still I could find the solution of this question.
    The manual shows the following:

    I want to know is there any limits of LCD_VYSIZE ? The VRAM is large enough.
    If not limits, why I can not draw widgets in the 9th vscreen ?
    : )
  • Hello,

    First of all I would go back to my question:

    SEGGER - Adrian wrote:

    Are you sure you want to create a window with the following coordinates?

    (0, 3840) - (800, 384480)

    emWin does not limit the size of virtual screens, but the hardware does.

    Please note that (0, 3840) - (800, 384480) is the result of the following

    eamonning wrote:

    but I when I create windows on the area (0,480*8 ) - (800, 480*800+480), it display the follow:

    Best regards,
    Adrian
  • SEGGER - Adrian wrote:

    Hello,

    First of all I would go back to my question:

    SEGGER - Adrian wrote:

    Are you sure you want to create a window with the following coordinates?

    (0, 3840) - (800, 384480)

    emWin does not limit the size of virtual screens, but the hardware does.

    Please note that (0, 3840) - (800, 384480) is the result of the following

    eamonning wrote:

    but I when I create windows on the area (0,480*8 ) - (800, 480*800+480), it display the follow:

    Best regards,
    Adrian
    OKAY OKAY.
    I test the emwin virtual screen.
    the code follow:



    why do i get the follow picture:
    the first virtual screen shows correct:


    but from the 8th screen, it shows error like this:


    the 10th screen is totally black.