Drawing Bitmaps

Here is an example of drawing a bitmap emoji on Tildagon.

  1. 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.
  2. Import your newly created bitmap module (e.g. from . import heartimage as heartimage) with the output inside this module
  3. Import tildagonos with from tildagonos import tildagonos
  4. Use tildagonos.tft.bitmap(heartimage, 50, 50), replacing the heartimage, and the x and y values (50, 50) with your desired values - Found in badge-2024-software