ui4linux is easily interface for printing chinese and picture based on linux framebuffer.
./libcompile.sh
will productliblcd.so
../compile_test_case.sh
will productpicture_show
andchinese_show
.
-
chinese show
int main(int argc, char **argv) { struct ft f; ft_init(&f); print_chinese(&f, "测试汉字", 60, 130); sleep(10); lcd_clear(&f); print_ascii(&f, "test alphabet and number", 60, 130); fb_close(&f); return 0; }
-
picture show
picture_write(x_millimeter, y_millimeter, path_of_picture);
All copyrights are held by lapsule INC.
Written by Jim Yang.