Hallo ich fiddle zur Zelt mit lvgl rum
Erst mit der 8 Version nun die 9 Version das EEZ Studio ist einfach
super geil, damit kann man professionelle GUI erstellen Nun zur Frage
Meine GIF als C Array kann man das einfach ausgeben Nun bei der
9 Version stimmt was mit dem Code nicht.
Schaut euch das mal an
1 | gd_GIF gif_base;
|
2 |
|
3 | memset(&gif_base, 0, sizeof(gif_base));
|
4 |
|
5 | bool res = f_gif_open(&gif_base, fname, true);
|
6 |
|
7 | LV_LOG_INFO("<***************** Gif Return fname %s- OK %d
|
8 |
|
9 | ********************************************************>", fname,
|
10 |
|
11 | gif_base);
|
12 |
|
13 | if(!res) return NULL;
|
14 |
|
15 | LV_LOG_INFO("<*****************Errorn fname %s- Error %d
|
16 |
|
17 | ********************************************************>", fname,
|
18 | gif_base);
|
19 |
|
20 | return
|
21 |
|
22 | gif_open(&gif_base);
|
23 |
|
24 | }
|
25 |
|
26 | uns das struct von gd_Gif
|
27 |
|
28 | typedef struct _gd_GIF {
|
29 |
|
30 | lv_fs_file_t fd;
|
31 |
|
32 | const char * data;
|
33 |
|
34 | uint8_t is_file;
|
35 |
|
36 | uint32_t f_rw_p;
|
37 |
|
38 | int32_t anim_start;
|
39 |
|
40 | uint16_t width, height;
|
41 |
|
42 | uint16_t depth;
|
43 |
|
44 | int32_t loop_count;
|
45 |
|
46 | gd_GCE gce;
|
47 |
|
48 | gd_Palette * palette;
|
49 |
|
50 | gd_Palette lct, gct;
|
51 |
|
52 | void (*plain_text)(
|
53 |
|
54 | struct _gd_GIF * gif, uint16_t tx, uint16_t ty,
|
55 |
|
56 | uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
|
57 | uint8_t fg, uint8_t bg
|
58 |
|
59 |
|
60 | );
|
61 |
|
62 | void (*comment)(struct _gd_GIF * gif);
|
63 |
|
64 | void (*application)(struct _gd_GIF * gif, char id[8], char auth[3]);
|
65 |
|
66 | uint16_t fx, fy, fw, fh;
|
67 |
|
68 | uint8_t bgindex;
|
69 |
|
70 | uint8_t * canvas, * frame;
|
71 |
|
72 | #if LV_GIF_CACHE_DECODE_DATA
|
73 |
|
74 | uint8_t *lzw_cache;
|
75 |
|
76 | #endif
|
77 |
|
78 | } gd_GIF;
|
Sehe ich das richtig das
1 | gd_GIF gif_base;
|
2 | memset(&gif_base, 0, sizeof(gif_base));
|
da was nicht stimmt.wARUM der Text nicht richtig dargestell habe das
mitNodepad++ erstellt. Muste leider ein CRLF mdoppel machen sonst w#är
der Code nicht lesbar