Problem with displaying C Headers/Images #350
-
Hi, newbie here, so excuse me if this is a stupid question but I´m having the following problem: After finally getting my v7 board to work with a ED060KC1 Display, i converted a test image (with 1072x1448) with the imgconvert.py script to a C Header File using the displays resolution, setting the same resolution in the args. The Header File seems to be correctly converted but when I replace my header file with the dragon.h file in the dragon demo, the new image is updated on the display but is only using about half of the epaper displays size. I already adjusted the resolution in displays.c so that it matches my resolution and it worked correctly for the dragon.h image, so I really don't understand what makes my image render smaller on the screen. printing out epd_width and epd_height and also the image_width and image_height are giving me the correct resolution as well. Would be great if somebody knows what's going on here. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Can you please show how is your displays.c configuration for this display? (1072*1448)/2 = 776128 So if you dump the size of the img_data array it should match that number. Just try:
That could help discovering what is going on. But also might be that the img is there completely and simply the update is not being done in the full display size, check that also. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Yes that seems to be the issue. The waveform timing is not the correct one for this display since the last bar should be full white and you are getting a gray. That is the reason your image renders a gray on the white.
That really does not matter. Just try selecting different waveforms for the display in displays.c. You can try even any other size is actually just a name, size does not matter, they are just different timings. And if any of them works you don't have any other choice but to modify it by hand. Something that is described in this issue:
#226