Drawing Bitmaps
Here is an example of drawing a bitmap emoji on Tildagon.
- Use the
utils/img2bitmap.py
tool in st7789_mpy repo to convert your image to a compatible bitmap module - Paste the output of this into a new.py
file inside your app directory, e.g.heartimage.py
. - Import your newly created bitmap module (e.g.
from . import heartimage as heartimage
) with the output inside this module - Import
tildagonos
withfrom tildagonos import tildagonos
- Use
tildagonos.tft.bitmap(heartimage, 50, 50)
, replacing theheartimage
, and the x and y values (50
,50
) with your desired values - Found in badge-2024-software