Hi
I have been playing with V8 today, got it working OK now. Here are a few random things I noticed
(I am using the latest V8.x.x pdf document)
- Latest V8.1 Doc under Getting started section (Code doesnt compile)
disp_drv.draw_buf = &draw_buf; /Assign the buffer to the display/
I think this should say
disp_drv.buffer = &disp_buf; /Assign the buffer to the display
- In the 8.1 Docs the keyboard example wont compile as listed.
This function documentation needs a trivial fix
static void ta_event_cb(lv_event_t * e)
lv_obj_t* kb = lv_event_get_user_data(e);
needs a cast
lv_obj_t* kb = (lv_obj_t*)lv_event_get_user_data(e);
Also in the examples search for
lv_anim_t * a = lv_event_get_param(e);
that also needs a cast to (lv_anim_t *) to make it compile
-
Amusing one In the V8.1 source code file LVGL.Simulator.cpp
There is an commented out function called fuck() .Not that it bothered me but it doesnt give a very professional appearance seeing that in the latest code. -
The Simulator was bugging me a bit in that the LCD Window kept opening up on the left hand side of my screen rather than nicely centered. I have fixed that albeit not thoroughly tested, but works for my setup. If anyone is interested in fixing this in the archive let me know and I will post my hack on the Simulator forum or try and figure out how to do a pull request. (Never used Github)
-
The 8.1 docs refer to this function in a couple of places
lv_obj_set_click()
A far as I can see this function does not exist in V8.1 ? This section needs a rewrite ?
-
The example for a simple tabview looks weird to me unless I am missing something ?
Search for void lv_example_tabview_1(void) it seems to have an extra page of the same demo code repeated ? Not sure that is what was intended. -
A question to finish with. The examples are working as intended, but for smallish text fonts my fonts look rather spidery and indistinct compared to native Windows text. Is there anyway to adjust the antialising for text, I am assuming its due to that or maybe just because its rendering bitmaps rather than TTF fonts. I couldnt find a way to switch text fonts antialias on or off ?
Thanks