-
Posts
2,656 -
Joined
-
Last visited
-
Days Won
2
Content Type
Forums
Store
Downloads
Blogs
Posts posted by Joel Bodenmann
-
-
Also check out the documentation (wiki) on how you can store calibration data which is loaded automatically so you don't have to perform calibration every time you launch the application.
-
Hello Tobias and welcome to the µGFX community!
There's no technical problem here. Most likely that example uses the touchscreen in Pen mode. There are two modes that a touchscreen driver can run in: Finger mode and Pen mode. There's no functional difference. The only difference there is is that the Finger mode is a lot less strict when it comes to moves and calibration error. Basically you need to press the calibration crosshairs a lot more precise in the Pen mode.
I'm currently on the road so I can't easily check but there's some API call which allows you to switch the mode. However, calibration takes place in gfxInit() and you cannot change the mode before that, only after the µGFX library has been initialized. Therefore, you need to change the default mode. That's a driver configuration so you need to look at /drivers/ginput/touch/<driver_name> and check whether you can do it in the drivers configuration file. If not, have a look at the VMT (struct) in the drivers implementation.
-
We cannot help you while you keep ignoring our posts.
You can always come back once you have specific questions that we can answer.
-
Hi,
You can use any font you want with µGFX. Therefore, you can just use a font of a different size. The font converter allows you to use any TTF and BDF font you can find which you can render to any size. Here's the corresponding documentation: https://wiki.ugfx.io/index.php/Font_rendering#Adding_fonts
There are four ways to encode a font:
- Use the online font converter (currently unavailable)
- Use the font converter inside GFX-Studio
- Use the pre-compiled font converter that comes with the library
- Compile the font converter yourself from the source that comes with the library
-
54 minutes ago, Fabien Comte said:
If you take a simple button, you can see that the text draw is after the retangle draw. I modified some controls to use pixmaps for compositions and display is very clean. I can move controls with no blink effect now
Yep that's often done in applications. That's definitely a proper way to handle things. In fact, the µGFX-Studio does that internally as well.
-
I've uploaded a patched version (v0.24.1) that addresses this issue with the Y coordinate.
@Steffan: I'm pretty sure that that was related. However, I'd appreciate it if you could check. -
On 01/08/2018 at 10:31, Fabien Comte said:
Could it be because page containers and status bar overlap ?
What do you mean by overlapping? The statusbar is a widget and can therefore either be in a container or not. It cannot be half way in one.
On 01/08/2018 at 10:49, Fabien Comte said:How to manage statusbar parent if it's called in multiple pages ?
Can you please show screenshots/mockups of what you're trying to achieve?
A statusbar is usually not part of a page container as it's always visible. -
Hello & welcome to the µGFX community!
The reason that you're not finding any information like this is because it's very difficult to provide them. The µGFX library has been designed to be lightweight as possible. Keeping resources down to a minimum is one of the main goals (like having a completely cross platform (agnostic) library)). Therefore, everything in µGFX is highly modular. At the highest level you will find that you can enable/disable entire modules. For example, if you don't have a touchscreen you can completely disable the GINPUT module. When you keep going further you'll see that you can individually enable/disable features, sub-features, sub-sub-features and so on.
There's A LOT that is being done prior to compilation by the preprocessor to throw out anything uneeded. Those optimizations don't only take the individual modules & features that have been enable/disable into account but also the used processor, used drivers and even the used compiler. Therefore, every build is completely unique and comparing resource usage across different platforms is extremely difficult and misleading.
We do have an internal spreadsheet which lists RAM usage of the individual objects of the µGFX library. However, we only provide that to customers which we are sure know how to everything works as misinterpreting these numbers is very easy.We have several dozen customers & users that run µGFX on a Cortex-M0 CPU - some with a much higher resolution that what you're targeting. µGFX will definitely be able to run on you platform without any problems at all. We even provide Cortex-M0 specific optimization (see GFX_CPU macro in the configuration file).
The chosen display controller usually has a much bigger impact on performance than anything else. µGFX will always run at full throttle. Choosing the correct display controller and the correct interface is therefore crucial. However, which one the "correct one" is depends on the rest of the hardware and especially the application that will run on it. -
Well that should work just out of the box. Nothing special required. The basic GUI functionality should not change depending on the GWIN redrawing mode. If you encountered some bug we'll need a minimal test case that allows us to reproduce the problem.
-
Hello and welcome to the µGFX community!
Please contact us via e-mail to get a quotation for a new driver implementation.
Alternatively, you can always do it yourself. You'll find plenty of documentation, examples and other resources in the documentation and on this forum. -
Thank you very much for bringing this to our attention. I just fixed that.
-
Sir, you really need to start giving more details in your feedback posts: For which widget/window/container/...? How can we reproduce it? Is it correct in the generated code? ...
-
It seems that you didn't enable all the features in the configuration file that you're using in your application.
Please read through the introduction page(s) in the wiki to learn how things are supposed to work.
-
Just released v0.24. Changelog:
- Fixing issue with relative child coordinates in generated code
- Improving image editor (fixing various file copying bugs)
- Adding the ability to change a display page's widget style
- Adding missing configuration options for some of the widgets (eg. GDISP_NEED_CONVEX_POLYGON for buttons with arrow rendering method)
- Adding post-generation script option to target editor
The post-generation script stuff will be improved in the next release. Right now it can just launch an OS-native script with no parameters. If you want to run a Python script or anything like that you need to create a standard script for Windows (a *.bat file) and launch your Python script from t here.
-
That's why the board file tried to change the video mode of the Linux framebuffer (which is what you just disabled).
The proper solution is to figure out why it doesn't work on your platform and modifying the board file accordingly (that file is ALWAYS project/application/platform specific anyway). Otherwise, you'll have to change the pixel format that your GDISP driver is using to match the default one of your Linux framebuffer. But then you'll never be able to change it to anything else.
-
Please have a look at the board file. If you're using the default one it will most likely be /boards/base/Linux-Framebuffer/board_framebuffer.h. As you'll see that message is printed when board_init() couldn't set the video mode. This can have various reasons such as every Linux distribution using slightly different framebuffer compilation flags and so on.
To get things sorted out, you can simply start by commenting out this line at the top of the board file:
#define USE_SET_MODE // Optional - comment this out to not to try to set the color mode we want
-
Okay, I feel like adding a "Would you like to overwrite?" dialog is the most sensible solution here.
I'll add that tonight.So far the following things were done for the new release:
- Adding the ability to change the page container's widget style
- Fixing issues with relative coordinates of widgets in a container (in the generated code)
- Adding static text item to background editor (95% done)
-
Thank you for your feedback, much appreciated!
I'm working on fixing the issue with the code generator regarding containers that @king2 mentioned right now.
After that I'll tackle the image editor dialog. I know that it needs some work, I just don't know how to improve it exactly. Any kind of tipps would be welcomed. -
Hello Austin!
The first thing you need to do is figuring out whether you really want to run µGFX as an SDL2 application on your target. In most cases, people running µGFX on Linux on embedded devices use the framebuffer driver. SDL2 requires you to have a desktop environment which is horribly slow & heavy and that's usually not something you're after if you're actually using µGFX. µGFX has been designed to be extremely lighweight and fast. Running it inside a desktop environment brings very little benefits. Whenever you have a desktop environment that allows to run SDL2 application you already have some sort of GUI toolkit such as GTK or KDE. Usually the SDL port for µGFX is only used for development as it allows you to compile & run µGFX as a native application of your host machine. The same exists for Windows and other Unix systems.
So if you're using µGFX on your target because you need something that's extremely fast & lightweight you usally want to use the Linux Framebuffer driver. That driver allows µGFX to directly render into the framebuffer which the Linux kernel will display over some video interface. In that case you don't need any desktop environment, SDL or other package. µGFX compiles without any dependencies!
We don't have a guide specific for the beaglebone black wireless. However, these things always tend to be very similar. You can have a look at the RaspberryPi example as it will be very similar (that example uses the framebuffer driver as well): https://wiki.ugfx.io/index.php/Raspberry_Pi
I hope that helps. Please don't hesitate to ask if you have any further questions.
-
Hi & welcome to the µGFX community!
Your use-case & environment is definitely fully supported. µGFX has been designed to run on literally any platform. Your platform is very common among µGFX users.
I don't exactly understand what's keeping you from just using the 32-bit SDL2 package? It is not a "hack" or "workaround".
-
You'll handle the I2C stuff in the driver's board file just like with GDISP or any other driver stuff in µGFX.
-
You have to write what's called a Toggle driver for the GINPUT module.
There's no way to register an IRQ in the upper levels. You'll find information about this on this forum. It's still possible to hack it into the GINPUT driver though.
-
Glad to hear that you got it working
-
1 hour ago, Angus Schmaloer said:
But i couldn't find anything about flushing in the "stm32f401re_nuleo_ssd1306" example project.
That project will most likely use auto-flushing or timer based flushing which is simply a setting in gfxconf.h.
ILI9341 TSC2046 (ADS7843) STM32F103
in Support
Posted
The board file is completely specific to each application. The existing ones are more of templates and examples that anything else. You're supposed to copy them to your application folder and modify them to fit your needs.
If you have an updated/improved board file for a supported board file we'd appreciate it if you could share it. Most of them were not created by ourselves so it's likely that there's a lot of room for improvement.
No need to feel bad at all
Thank you for the feedback - glad to hear that!