Open Bendikos opened 4 months ago
I also encountered the same problem. The examples and demos were normal, but the code I wrote myself did not work.
我发现这是 C 和 C++ 语法不同的原因,经过测试,可以为 lvgl 生成的 img_test.c 添加一个 img_test.h 文件,并且添加上 '''#ifdef __cplusplus extern "C" {
extern const lv_image_dsc_t img_test;
} /extern "C"/
在我的电脑上测试是可以正常显示的。
But CodeBlocks lvgl9.1 can display images normally!