Drawing Bitmaps
Here is an example of drawing a bitmap emoji on Tildagon.
- Use the
utils/img2bitmap.pytool in st7789_mpy repo to convert your image to a compatible bitmap module - Paste the output of this into a new.pyfile 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
tildagonoswithfrom 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