Jump to content

Joel Bodenmann

Administrators
  • Posts

    2,620
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Joel Bodenmann

  1. Just to clarify: The driver file (eg. gdisp_lld_ILI3820.c) will only call functions like write_data() and write_cmd(). However, the implementation of those functions need to be in the board file (eg. board_ILI3820.h). In the implementation of those functions in the board file you'll access your microcontroller's peripherals to talk to the display controller. Never access pins or SPI stuff directly from the driver file!

  2. Quote

    How can i change background page color without using background properties. If i using background, 

    first drawn white window, then the background is drawn.

    That's currently not supported. Right now you can only place a solid rectangle yourself but as you mentioned that's rather inefficient. I've just added that to our ToDo list. Should be there in the upcoming release.

     

    Quote

    Console do not save to project file.

    After save then reload project console is missed on page.

    We've added that to the bug list.

  3. Hello and welcome to the µGFX community!

    Is it possible that you forgot to assign the font on the GWIN level? You can either use gwinSetDefaultFont() to set a default font for all widgets or you can set a per-widget specific font with gwinSetFont().

  4. Regarding 1: Keep in mind that µGFX can still optionally run off one or more buffers. We have a lot of applications that use either hardware level double buffering or application level double buffering. We also have a lot of applications that use our dynamic arbitrary sized framebuffers called pixmaps.

  5. What you did is correct. But now you need to debug:

    1. Step through your application and see whether it hangs or crashes somewhere
    2. Make sure that your board file is implemented properly. Use a logic analyzer / osmelloscope to verify that the signals are correct
    3. The ILIxxxx drivers are known to be very difficult to handle in terms of different revisions and so on. Some of the chips are even labeled wrong. Check out the initialization sequence in the driver file (/drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c) and compare it to the one that your manufacturer/supplier supplied with the module you bought.
  6. Hello and welcome to the µGFX community!

    Did you check out the Eclipse guide in the wiki (and/or the guides for the various eclipse based IDEs)?

    P.S. Next time please use code boxes in your post (I've added them).

  7. Hello and welcome to the µGFX community!

    Glad to hear that you managed to get the template up and running. Don't forget to upgrade the µGFX library directory to the latest master branch from the git repository to have all the latest bug fixes and features.

    You need to provide more information: What's not working?
    The µGFX-Studio only generates all the application code. You should be able to just copy/paste that into the running project you have and you're all set.

  8. Thank you for the video.

    Well, this is most likely a bug inside the textedit widget. I've added this to our internal ToDo list but it's gonna take a few weeks until we get there. You might want to try debugging it yourself if you need it quicker. We're happy to help if you have any specific questions.

     

  9. There's no generalized way as you can load an image from almost any source. µGFX doesn't care how you get your image into memory. All it requires is to have byte level access to the image in order to decode it. But whether you manually wrote it into some external FLASH or whether you loaded it from an SD-Card through FatFS doesn't matter.

    If you want to store images in your microcontroller's FLASH you can use ROMFS which is a file system that we wrote ourselves that allows loading images from the microcontroller's FLASH directly through the GFILE API as shown in many examples. The nice thing about ROMFS is that it comes with a tool named file2c that allows you to "convert" the image. All it does is taking any kind of data as input, interpreting it as binary data and creating one or more C arrays out of it including some file & directory information for easy handling during runtime and even easier handling during flashing as you can just #include the image data - no need to dick around with linker scripts or things like that.

×
×
  • Create New...