Python Forum
How to scrolling Picture in x axis - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to scrolling Picture in x axis (/thread-27667.html)



How to scrolling Picture in x axis - kalihotname - Jun-16-2020

I have the picture [Image: 5s7cyv0] like this and i need to scroll this image in x axis following the data that come from the UDP for example if data is 250 the position of image 250 will scroll to the middle of the screen.
I connect the SSD1351 screen with Rpi.

any example to do this?

Thank you


RE: How to scrolling Picture in x axis - DeaD_EyE - Jun-16-2020

You could use this library: https://pypi.org/project/luma.oled/

Here are examples: https://github.com/rm-hull/luma.examples/blob/master/examples/scrolling_pixelart.py