Skip to content

March update: Make graphics for ESPHome! ​

Many people asked about ESPHome — it's a system which allows you to turn common microcontrollers into smart home devices. As always with Lopaka: you ask, we deliver!

ESPHome platform ​

I’ve added support for the default display library, including lambda code generation, image and font declarations.

ESPHome has its own single-file YAML config, which can be hard to manage. Now, at least you can create nice graphics for your projects.

  • added some popular Google Fonts
  • If you have painted layers or icons, you’ll need to manually download image files and place them in the esphome directory
  • Check Code Settings for additional options you may want to enable

Custom Background color ​

Some users reported using exotic displays like LCD or E-paper, and it’s helpful to preview the design as close as possible to the real display. That’s why we added a Project setting for background color.

  • It's a project-wide to all screens
  • it doesn't affect code generation
  • you may need to manually write a code to fill the screen with the desired color

Free Drawing mode ​

I have a feeling that Lopaka isn’t just about code generation — it can also be a vector pixel art editor! In Free Drawing Mode, all fonts, colors, and drawing tools are included. Give it a try!

Watchy — Open Source E-Paper Watch ​

Have you ever heard of it? It's a fully open-source wearable device based on the ESP32. https://watchy.sqfmi.com/

The best part is that you can create graphics for it with Lopaka! Choose "AdafruitGFX Mono", set the resolution to 200x200px, and you're ready to go!! Here's the example: https://lopaka.app/gallery/6403/13327

Designing an ESPHome display, step by step ​

Here is the workflow from an empty project to a flashed device:

  1. Create a project, choose ESPHome, and set the screen size to your display's resolution.
  2. Draw the layout. Give each layer a clear name, since layer names become comments and variable names in the output.
  3. In Code Settings, enable Include Fonts for text, Declare Images for icons and painted graphics, and Declare Variables if the screen shows live sensor data.
  4. Turn off Wrapper Function if you paste into an existing lambda: block, so only the it.* draw calls are copied.
  5. Copy the code into your YAML. Put the font: and image: blocks at the root of the file, not inside the lambda.
  6. Download image assets from Code Settings → Images and place them in the images/ folder next to your YAML.

ESPHome loads fonts from Google Fonts when it builds the firmware, so there are no font files to manage. The ESPHome guide covers each step in detail, with troubleshooting for common YAML errors. For a complete example, see the ESP32 smart home dashboard tutorial.

More on e-paper ​

E-paper projects like Watchy can also use GxEPD2, which supports e-paper palettes with black, white, grey, red, and other colors. Read how other makers designed e-paper UIs in WeatherPaper and Cineink.