Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. inmarket

    ginput: Touch invert/flip

    The trouble here is that you get any two devices from different sources and they will possibly have different alignments between the touch screen and the display screen. To make things worse very few devices are well aligned physically. Also the resolution of the display seldom matches the resolution of the touch panel. What this means is that floating (or fixed) point multiplication is needed in 99% of cases whether or not that is via fixed calibration settings. Despit this we have implemented fixed alignment code as an option for some drivers but that doesn't work for all devices (as you have already discovered) due to the reasons above. In V3 we are looking at providing better fixed alignment code that caters for more orientations but for now the correct solution is either a custom driver hack or, preferably, the fixed calibration matrix.
  3. Yesterday
  4. chrisjn52

    Online Font Converter

    Hi Joel, I tried again this morning and I can confirm that there are two reasons why I have been having a problem. The first is that the converter fails if the font file is selected directly from the Windows font folder, but works ok if the font is within some other folder. ????? The second reason is that I was trying to obtain a large font and all font sizes over 20px fail for Arial.ttf causing the webpage to drop through to https://fonts.ugfx.io/index.php. I also tried another font, (Candara), and font sizes >21 fail for this font. I used numeric only conversions to limit the file size in each case. Incidentally, I also found that it is necessary to refresh the browser page before attempting a second conversion request in order to get rid of the "No Entry" symbol when hovering over the "Get .C File" button.
  5. Last week
  6. Sorry for the late reply - not sure how this didn't show up in my notifications list. That's certainly possible. We have several customers who use µGFX for overlays / OSDs. I'd recomment that µGFX provides its own video output that you then mix together / on-top of the video using gstreamer.
  7. Joel Bodenmann

    Online Font Converter

    I'm having serious trouble reproducing this - could someone else give it a try?
  8. Joel Bodenmann

    gwinPrintg not truncates floats

    Hello and welcome to the µGFX community! I'd have to check the code to be sure but if I remember correctly the vfnprintg() implementation doesn't support leading zeros at the moment. If that's the case we'd be more than happy if you decide to add support for that.
  9. Joel Bodenmann

    Yocto Embedded Linux

    Did you try to debug to figure out where the segmentation fault origins from? It will most likely be due to an issue in the GOS abstraction as everything else is high-level code that builds on top of that.
  10. Joel Bodenmann

    GLISTENER_WITHLISTENER flag in gevent

    I'll have to look at this when I got a bit more time to understand this properly. However, unless you're in a serious memory shortage I'd recommend you not to destroy & re-create the widgets. Instead, just use gwinShow() and gwinHide() (alternatively gwinSetVisible()) to make the appropriate widget become visible.
  11. Joel Bodenmann

    optimizing gdisp_lld_ILI9341 for STM32 SPI DMA

    Thank you for sharing this - much appreciated!
  12. chrisjn52

    Online Font Converter

    Hi Joel, I am still seeing the same issue, although I now see the file upload percentage in the browser lower left corner which I don't recall seeing before. It still complains about "could not import font - bad file format" despite trying several different ttf fonts? Should I see some sort of confirmation that the request is valid/has been accepted, once the "Get .c File" button is pressed? (I haven't used the Font Converter for some time until recently).
  13. Joel Bodenmann

    Online Font Converter

    We've tracked the problem down to a source-IP based load-balancing issue. It should be fixed now.
  14. chrisjn52

    Online Font Converter

    Is the online Font Converter working? When using from https://ugfx.io/font-converter the browser drops through to https://fonts.ugfx.io/index.php whereupon it displays the "could not import font - bad file format" message. I am using windows font file arial.ttf and I cannot get it to work with any character filter. I would use the built-in font converter in uGFX Studio but I want to restrict the conversion to a custom range to include the Greek Omega character and Studio won't allow a range beyond 255? Is there a way in uGFX Studio to limit the Custom Range to include just the Omega character, (U+03A9)?
  15. Endalvik

    ginput: Touch invert/flip

    Update: working around this by creating and retrieving hard-coded calibration data, per the wiki. I am not needing general calibration, as the touch/LCD are physically matched (aside from the flipped/inverted Y). Now have this in my custom board_framebuffer.h: // Force in calibration data, to compensate for hardware configuration float calibrationData[] = { 1, // ax: no change 0, // bx: no change 0, // cx: no change 0, // ay -1, // by: flip Y axis SCREEN_HEIGHT-1 // cy: flip Y axis }; gBool LoadMouseCalibration(unsigned instance, void *data, gMemSize sz) { if( sz != sizeof( calibrationData ) || instance != 0 ) { return FALSE; } memcpy( data, (void *)&calibrationData, sz ); return gTrue; } However, this is not ideal as now every single touch/movement now has costly floating-point math overhead. I am open to suggestions on a lower-overhead (yet consistent) way of handling touch hardware that is flipped/inverted. Thanks.
  16. Earlier
  17. Endalvik

    ginput: Touch invert/flip

    I have a LCD panel that implements capacitive touch using the FT5406. Oddly, the touch Y axis is inverted/flipped relative to the display Y axis. To compensate for this, I would like to add an axis invert/flip option. I cannot find any such option while inspecting the code for ginput / gmouse / FT5x06 driver, etc -- though perhaps I am simply missing it. Can you recommend how best to add this too the code? For instance, would it be appropriate to add "flipY" (and "flipX") flags to the GMouse struct, and then allow read_xyz() to perform the inversion arithmetic? Thanks!
  18. cpu20

    STM32F401RE+CubeMX+Eclipse+ILI9341

    In the last image you sent inidcates that you haven't correctly included the gdisp configuration file. Adding files to be included in the build is done in the Properties window of your project. Go to: C/C++ General > Paths and Symbols > Includes In that window you need to add all the folders that contain .h files that need to be included in your project for example the folder containing the "gdisp_lld_config.h". Sorry for my late reply. If you have any questions don't hesitate to ask.
  19. Artemla

    gwinPrintg not truncates floats

    Hello. I tried to use gwinPrintg() with format "%.2f" to display float value with 2 digits after point. But float value displays with 5 digits after point, no matter what precision is set in format. I found that precision value in function vfnprintg(), which is used to parse format, is a constant equal to 100000. Changing this constant to 100 gives me precision equal to 2 digits after point. Is it a bug? Or I'm doing something wrong? Thanks.
  20. Stephan van Kampen

    Yocto Embedded Linux

    For a project we are using a yocto embedded linux bsp and are deciding to use the commercially licensed ugfx library for this. Has somebody succeeded in integrating the ugfx library within a openembedded recipe using the preferred layered makefile approach? At this moment I created a customized yocto-gcc.mk file. I manged to build the demo application. The first time always results in a segmentation fault at the beginning of the application, after that I can start it normally (also other ugfx applications). Perhaps it would be great to have default support for Yocto, as this is more or less the standard embedded linux environment nowadays.
  21. DCWR

    Problem with low performance

    I would like to notice, that we have to use external RAM as a Framebuffer (we do not have 200kB in internal RAM). Heap after adding file system on external Flash/USB grows up to enormous size (png converter) - we have to keep it in external RAM also. We use the same external RAM configuration (and the same HW) for TouchGFX framework, and it works fine. We don't have LTDC on NXP mcu. We set up CPU and compiler in configuration file. We spent time to figure out how to handle our external RAM and FLASH properly. And we prove it on commercial product with TouchGFX on board. Now we would like to check your library. And we can not find out how to solve performance problem. We have problem with filling the screen with color, and we have huge problem with showing .png file from external memory (even if it cached in RAM). DCWR
  22. I have two frames widget in my project and created a customize widget for Horizontal Menu. I need to destroy previous frame at switching between them and create the new second frame in each toggle event. when I call gwinDestroy for first frame, I will miss events of "Horizontal Menu" in second frame. I traced uGFX functions and realize that by calling gwinDestroy, uGFX will call doExitEvent from the deleteAssignments and set "flags" field of widget GListener to GLISTENER_WITHLISTENER. Then when new Frame created and toggle button attached to its child (Horizontal Menu), my program will miss widget events because of GLISTENER_WITHLISTENER flag. For ensuring about it, I commented line 34 of https://git.ugfx.io/uGFX/uGFX/src/master/src/gevent/gevent.c temporary and then second frame toggle event works well as first one. My question is how can i reset GListener->flags of widgets to zero (or flags&=~GLISTENER_WITHLISTENER), after calling gwinDestroy?
  23. weiyongwill

    uGFX-Studio v0.20 - Beta

    Hello, Joel How can I join in µGFX-Studio beta program group? Thank you!
  24. M3Michi

    optimizing gdisp_lld_ILI9341 for STM32 SPI DMA

    My CUBEMX generated Makefile project using spi dma ili9341. I use Visual Studio Code, you may want to edit the path to make,gcc and stcubeprogrammer in settings.json. uGFX_STM32f103.7z
  25. M3Michi

    optimizing gdisp_lld_ILI9341 for STM32 SPI DMA

    I can read from the display, AA is working fine. Reading requires 3x8bit transfer per pixel. This is weired because when you write you need to write 16bit per pixel. Reading happends in the slowest possible way. Pixel by pixel using gdisp_lld_get_pixel_color. gdisp_lld_read_start, gdisp_lld_read_color and gdisp_lld_read_stop is never been used. Is this to be expected? I have GDISP_HARDWARE_STREAM_READ defined TRUE. How to use streaming for reading ? I will try to change the setting for the ILI (RIM).
  26. Hello, first of all, thanks a lot for your excellent work on µGFX! I would like to use uGFX to design a GUI for a video device, is there a possibility to use uGFX along with gstreamer with the following assumptions: - Linux without X Server - Orange Pi H5 Quad Core 512MB - Framebuffer driver - TFT Display /w serial interface - uGFX as overlay on the video or uGFX providing a video window and gstreamer is doing the overlay on this video window - Video size is just 320x240 Thanks your support Juergen
  27. Joel Bodenmann

    Colors of GProgressBar

    If you just want to change the colors you can use widget styles: https://wiki.ugfx.io/index.php/Widgets#Widget_Style Alternative you can write a custom rendering function for the widget: https://wiki.ugfx.io/index.php/Creating_a_custom_rendering_routine Or even write your own widget that does exactly what you want: https://wiki.ugfx.io/index.php/Creating_a_widget
  28. rain62ster

    Colors of GProgressBar

    Can I change default colors of GProgressBar? Thank You advance.
  29. I tried uGfx but its to slow. I started to optimize the ili9341 lld. i switched spi to 16bit, wrote functions for Hardware clear, fill & bitfills with DMA. Speed is fine now. Had a hard time to initialize the lcd with 16bit spi. Now i init the lcd with 8bit spi and switch to 16bit after init is done. Now i want to try to read back from display, how can i test? What else could be done to speed things up? Thanks for your uGFX.
  1. Load more activity
×