-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Has any low level interface in this LIB? #54
Comments
Hi! Maybe you know that there are two drawing methods: buffered and unbuffered. Learn more here: http://www.gl.littlev.hu/basics#drawing-and-rendering In buffered mode (LV_VDB_SIZE > 0) you can't draw to the display directly because the buffering is controlled by the library. In unbuffered mode (LV_VDB_SIZE == 0) you can draw to the display directly but your drawing might be "overdrawn" when a refresh occurs. I recommend rather to create and In general lvgl not thinking in drawing (from the user side) but thinking in graphical objects. This way the library will know the graphical objects and can draw them correctly. |
That means I can create anything I want after create a object? (Such as an oscilloscope or a multi-meter.) |
For an oscilloscope you can create a line object or a chart and set the point's values. See http://www.gl.littlev.hu/object-types |
Yep, I know that. |
If you mean you would like to add e.g. Volt/div or trigger mode just create drop down lists for them or for AC/DC coupling create button. |
Well, I mean there are lot of point and line, that I have to draw directly into the background, and the style just diff from LVGL, how about that? |
I just don't understand why would you like to draw directly to the background. Please tell a little bit more details about your goals. What kind of style do you need? Please tell it too. |
Well, for an example, I saw an Agilent Oscilloscope, I want to design like that. There are some dash line to mark or measuring, some curve to display the FFT effect, such like those. |
Well, actually dash line is not supported now but maybe it will in a next release. Or check http://gl.littlev.hu/services to request a new feature or use thin line instead. |
Ok. That will be more efficient. : P |
Then you have two options:
Are you familiar with styles? You can modify the appearances with them. |
Sorry, closed by mistake :) |
Fine. |
How do you mean? I forget to say that I recommend the using of styles because they are created for users. The new object type and design function are more complicated and kind of hacks |
Yes, I know that will be better. I will prior use the objects existing. BTW, what does "LV_MISC" means? |
Lv_misc contains not graphics but general stuffs like memory management, task handling etc. |
It seems like a little bit heavy? I just undefined most of objects, anti-aliasing, shadow, but still cost a lot of time to compile and download the firmware. |
The flash size I will check latter, not small. |
For about 130K extra more with LVGL... |
Have you disabled the unused fonts? |
I dis the used 40 Fonts, works, thanks. |
Basically yes. There are some "tricky" languages like Arabic or Thai which needs some things but e.g Chinease, Korean, Greek, Cyrillic etc is fully supported. Read this to learn how the fonts work: And this to see how ta add a new font: |
As a lot of question is answered here and we are far from the original question I close this issue. |
Add minor change to notice on xhost command
LittlevGL is nice.
I figured it using some object drawing interface, but when I wana just draw a simple line or rectangle or just for testing the hardware, the Lib just stop in lv_refr_areas(), seems like I should enbale the area firstly?
The text was updated successfully, but these errors were encountered: