Jump to content

Sergey Kushnir

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by Sergey Kushnir

  1. Thank you very much, Joel! I try it.
  2. I have successfully implemented drawing of graphic primitives using the built-in Geometric Drawing Engine. But I have the following question. Preamble. My project uses a display with a screen size of 1024x600 pixels. The exchange rate between the control controller and the display is not enough and leads to flickering of the screen elements. This is annoying for the user. The memory size of the LT7381 display controller is 32 Mbit and can accommodate two images. If one image is displayed on the display, the second image - the shadow screen - can be prepared. The cycle of drawing and displaying can be represented as follows (real code of another project): void CDisplay::RedrawStaticScreen(void) { // Filling the shadow screen area // Displaying the menu m_pMenu->Draw(m_pGui); // Drawing the screen m_pCurrentScreen->DrawStatic(); m_pCurrentScreen->DrawRefresh(m_iFrameIndex, true); // Switching the active frame m_pHal->FrameActivate(m_iFrameIndex); if (1 < (++m_iFrameIndex)) m_iFrameIndex = 0; // Filling the second screen area // Displaying the menu m_pMenu->Draw(m_pGui); // Drawing the screen m_pCurrentScreen->DrawStatic(); m_pCurrentScreen->DrawRefresh(m_iFrameIndex, true); } The question is: where in the library uGFX can you switch screens?
  3. I understand that I am tampering with the library's code, and it becomes unique to me. Well, I'm ready!
  4. I also thought in this direction. Your answer confirms that this is the correct way. I was looking to see if maybe there is some *.h file included as an extension in the main code. Sometimes they do this.
  5. Hi folks! I use High Performance TFT-LCD Graphics Controller LT7381 with Geometric Drawing Engine and I want to use hardware functions of drawing Circles, Ellipses, Boxes, Rounded Boxes and etc. I found how to draw lines and fill a rectangle using GDISP_HARDWARE_LINES and GDISP_HARDWARE_FILLS. For example, for GDISP_HARDWARE_CIRCLE I did not find the corresponding code. How to do it right without interfering with the uGFX library? Thanks!
  6. I have prepared a small project. I'm not sure if it's completely correct because I'm using the IAR IDE, but the main idea is there. I hope that you can get the effect that I got. Thak you! TableParentTabset.rar
  7. Ok, Joel! I will prepare a project with this problem. It's not urgent, just curious how it happens.
  8. I discovered a small detail: if you prohibit the Title rendering (#define GWIN_NEED_TABLE_TITLE GFXOFF), then the display is made as it was conceived - only on page 3. I don’t know how it can help, because the code _drawTitle and _drawHeader is almost the same.
  9. Table widget has a problem - when changing the Page of Tabs, the Table does not update completely. I have now made a workaround. I detect an event from the page and call the Table update function that I had to add. The second problem is rendering the Table on Page1, although the parent is specified as Page3. When rendered by an event from Page3, the Table is displayed on Page3. It looks like this. The program starts and displays Tabs and Page1 "Main states" with Table. I select the Page3 "Results" tab and see Table. Then I select the Page1 "Main states" tab without Table. How to solve this problem?
  10. Thanks Joel! I use my own OS for STM32 and adapted uGFX. The development environment is IAR IDE, so some minor changes were required. I'll make adjustments to the Table and Spinbox widgets and post the results here. For example, I added the ability to determine the width of each table column, or the width will remain the same as it is now.
  11. Thank you very much! You helped me out a lot.
  12. Hello Joel! I have a project that includes an STM32L476 and a display with an LT7381 video controller and a touch GT911. I initially tried using LVGL, but had to give up. The library required an unacceptably large amount of memory. That's why I turned my attention to uGFX. I really liked your library because it takes 10 times less memory than LVGL. For example, a project with LVGL takes up [ 230'184 bytes of readonly code memory; 134'912 bytes of readonly data memory; 86'600 bytes of readwrite data memory]. The same project with uGFX takes [33'700 bytes of readonly code memory; 3'027 bytes of readonly data memory; 33'159 bytes of readwrite data memory]. Additionally, I wrote touchscreen drivers using the Shape Drawing Engine. LVGL does not allow this feature. In my project I plan to use Table widget. I found a similar Table widget on this forum. Very nice widget. Unfortunately, the link to the Table widget archive is not active. How can I access the link? Thanks for the answer!
×
×
  • Create New...