antirez / ST77xx-pure-MP

Pure MicroPython driver for ST77xx displays. Low memory requirements.
MIT License
22 stars 0 forks source link

Convert PNG to 565 Format #1

Open britesc opened 4 weeks ago

britesc commented 4 weeks ago

Hi, I have tried various ways, but cannot compile the pngto565 converter. I am using ubuntu 22.04 and eventually got round to installing the libpng-dev package as I needed the header files. Even so, the program stoically refuses to compile. Any advice please on how I should proceed. I need to make a small image and some icons. Thank you. jB

antirez commented 4 weeks ago

Please post the compilation error. Thanks.

Salvatore Sanfilippo

"My task is not difficult; all I would need is to be immortal to accomplish it." -- Jorge Luis Borges.

On Mon, 19 Aug 2024 at 14:24, britesc @.***> wrote:

Hi, I have tried various ways, but cannot compile the pngto565 converter. I am using ubuntu 22.04 and eventually got round to installing the libpng-dev package as I needed the header files. Even so, the program stoically refuses to compile. Any advice please on how I should proceed. I need to make a small image and some icons. Thank you. jB

— Reply to this email directly, view it on GitHub https://github.com/antirez/ST77xx-pure-MP/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQAYB5QH5435W7TFDIDI3ZSHPZPAVCNFSM6AAAAABMXW7W7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3TGMRTGI2TKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

britesc commented 4 weeks ago

Also if anyone could convert a couple of small images to 565 format that would also be great. Thank you.

britesc commented 4 weeks ago

Typical Ubuntu VM just crashed.

britesc commented 4 weeks ago

error.txt

britesc commented 4 weeks ago

I must admit that you lib is the smallest and best I can find for display using a Pi Pico W. And I have searched a lot. I have come across a couple of glitches with text output as you .md examples don't appear to match the API, particularly wit regard to text functions. But I cab work round that but really need to display a couple of images. Also create a scrolling menu area...

britesc commented 3 weeks ago

LCD Connection to Raspberry Pi Pico W Waveshre Pico LCD 2" using ST7789V https://www.waveshare.com/wiki/2inch_LCD_Module

LCD Pico


VCC = VSYS GND = GND DIN = GP11 MOSI = 11 CLK = GP10 SCK = 10 CS = 9 DC = 8 RST = 12 BL = 13

HEIGHT = 320 WIDTH = 240

display = st7789_ext.ST7789( SPI(1, baudrate=40000000, phase=0, polarity=1), HEIGHT, WIDTH, reset=Pin(RST, Pin.OUT), dc=Pin(DC, Pin.OUT), cs=Pin(CS, Pin.OUT, value=1), )

display.init(landscape=True,mirror_y=True ,inversion=True) backlight = Pin(BL,Pin.OUT) backlight.off()

britesc commented 1 week ago

Hi, I really need your program to convert the images I have to your 565 format. I have tried various online converters but they do not give the same leena.565 output. Thanks really appreciate any help.

britesc commented 1 week ago

By the looks of it the png.h is not the same as the png.h you may be using. Could you please tell me where to get your version from. Thanks