images on oled 128x64 are displayed split in two parts with the beginning on the right side of the screen #9819
-
Hi all, I am fairly new to micropython but already I am a big fan. So excuse me, if the following question is stupid. I have one of those small OLED displays with 128 by 64 px (https://www.az-delivery.de/products/0-96zolldisplay) I attached it to the PiCo according to documentation and I am able to display text. The issue is with images, albeit being displayed, they are actually displayed wrong. The images are displayed not from position 0 on the left but far more to the right (I'd say something around 60px) and then the remaining parts of the images are brought to the left - see attached pictures The display is 128x64 and the images are resized to 128x64 as well. I created the images by taking a jpg of the famous steamboat willie animation and converted it to PBM via one of the many online converter tools My code is very simple:
Please can someone tell me what I am doing wrong here? kind regards, Christian |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The file starts with a header that you should skip. |
Beta Was this translation helpful? Give feedback.
The file starts with a header that you should skip.
Look here https://netpbm.sourceforge.net/doc/pbm.html