rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

How to create custom characters, use function _make_custom #177

Open sp2ong opened 1 month ago

sp2ong commented 1 month ago

I found in source code function _make_custom to create own custom characters for HD44780

https://github.com/rm-hull/luma.lcd/blob/master/luma/lcd/device.py#L1417

But I did not find info in documentation how to use this function. Any example ?

I would like to add a few own simple icons, use this function to display with text

thijstriemstra commented 1 month ago

see https://luma-lcd.readthedocs.io/en/latest/HD44780.html#graphics-mode-usage

sp2ong commented 1 month ago

Yes, I read and know graphic mode where is used ImageDraw.Draw but I am wonder how use _make_custum function without ImageDraw. It maybe function _make_cutom(img) is used by Image.Draw ???