Comments (4)
Hi Ramon,
It is already fixed in dev-5.0 branch but if you update you need to do other changes as well (see dev-5.0 doc/README).
For now, I think it would be easier to fix the issue in your current version. You only need to change area_t area;
to lv_area_t area;
I hope that is all.
from lvgl.
On Monday I can send you a .zip (like before) with the new version
from lvgl.
Here is the new version. lvgl_dev-5.0_arduino.zip
Please follow the updates in your initialization.
- Now only
disp_flush
is required (same asmap_fp
) butlv_flush_ready();
need to be called at the end lv_tick_inc(1)
is used instead oflv_tick_handler()
#include <lvgl.h>
void my_disp_flush(int32_t x1, int32_t y1, int32_t x2, int32_t y2, const lv_color_t *color_array)
{
/*Write the coordinates like with disp map*/
lv_flush_ready();
}
void hal_init(void)
{
/*Initialize the display*/
lv_disp_drv_t disp_drv;
disp_drv.disp_flush = my_disp_flush;
lv_disp_drv_register(&disp_drv);
/*Initialize the graphics library's tick*/
/*In a Timer call lv_tick_inc(1) in every milliseconds*/
}
void setup() {
lv_init();
hal_init();
lv_obj_t *label = lv_label_create(lv_scr_act(), NULL);
lv_label_set_text(label, "Hello Arduino!");
lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0);
}
void loop() {
// put your main code here, to run repeatedly:
lv_task_handler();
//delay_ms(3);
}
from lvgl.
Fixed in v5.0.0
from lvgl.
Related Issues (20)
- slow dynamic image refresh HOT 1
- Crash in _lv_event_mark_deleted() when call lv_obj_del() or lv_obj_del_async HOT 1
- Flush wait callback clarifications HOT 3
- Clarification OSAL Support (FreeRTOS, Windows, pthread ...) HOT 3
- can't move to tile >10 HOT 5
- Using fallback font with keyboard widget causes crash HOT 4
- Demo for the OSAL HOT 1
- Layer Blending HOT 7
- Build failed because of lvgl.h include HOT 3
- Montserrat 10 is missing in the LVGL default title font list in menuconfig HOT 3
- close the frame, break! HOT 10
- when i create a chart by lv_chart_create, but the lv_chart_set_axis_tick and lv_chart_set_zoom_x function is discard, how to replace? HOT 5
- height of lv_roller is abnormal HOT 2
- parameter types of functions in lv_obj_style_gen.h are incorrect HOT 16
- When different font sizes are set for LV_PART_MAIN and LV_PART_SELECTED of lv_roller, the text display position of the LV_PART_SELECTED section will be slightly higher. HOT 1
- How to prohibit a specified color from appearing inside the lvgl HOT 6
- LV Roller text is not centered. HOT 2
- lv_event_get_target(e) is a void method visual studio simulator HOT 1
- Missing header file lfs.h HOT 1
- Compilation error for FATFS HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.