russhughes / st7789_mpy

Fast MicroPython driver for ST7789 display module written in C
Other
552 stars 110 forks source link

jpg (96x60) ok but position x,y ko #29

Closed picpic020960 closed 3 years ago

picpic020960 commented 3 years ago

Bonjour Russ , try png to jpg online converters :OK (but not all) then test with jpg.py the icon is displayed at 0,0 position but when change to x,y the icon is always at 0,0 how to debug ? thanks for help Regards

PS : (so can't test more one jpg on the display ...)

russhughes commented 3 years ago

I added conversion instructions and another jpg example for the T-Display. What device are you using?

picpic020960 commented 3 years ago

Thanks Russ Will test tomorrow For hardware see #28 link Regards

edit : test OK likely 'buffer_size=30 30 2' mandatory but only with st7789.FAST (???) Thanks a lot

more one question : when we can compile our self the driver ?

russhughes commented 3 years ago

The buffer should be large enough to hold the bitmap (height width 2) when using the FAST method. You can leave the buffer_size out and the driver will allocate and free memory as needed. Using the buffer_size trades memory for speed.

I’ll be updating the driver to work with the new Cmake build system this week.

russhughes commented 3 years ago

The driver can now be compiled using the new CMake build system.