A Custom Display Interface With Lopaka and Arduino (Part 1)
by Ritchey Vision in Design > Digital Graphics
97 Views, 1 Favorites, 0 Comments
A Custom Display Interface With Lopaka and Arduino (Part 1)
In this tutorial, I’ll show you how I used Lopaka to create the interface for my project.
Instead of designing everything manually, Lopaka allowed me to create my display, generate the code, and quickly test it on my hardware.
This is Part 1 of the project, where I’ll explain how I displayed images and animations on my screen. In the next part, I’ll show the complete interface running on the device.
Supplies
TFT Display (ST7735 or ST7789) – used to show the interface and graphics
Microcontroller Board – any compatible board to run the project (Arduino‑type or similar)
Create a New Project
Create a new project and select the display you’re using.
If your display has a different resolution, make sure to adjust the screen size so it matches your hardware.
Configure the Display
Adjust the width and height of the display.
If your screen uses a different orientation, configure it here before continuing.
Change the Background Color
Choose the background color for your interface.
For this example, I selected a simple background before adding images.
Import an Image
Open the image tools.
Import the image you want to display on the screen.
Position and resize it as needed.
Generate the Code
Once the design is ready, generate the code.
Copy the generated code. We’ll use it inside the Arduino project.
Add the Code to Arduino IDE
Paste the generated code into your Arduino project.
I’m using an example project as the base, so you don’t need to rewrite everything.
Most of the work comes directly from Lopaka.
Initialize the Display
Inside setup(), call:
drawScreen_1();
This displays the interface after the display is initialized.
Depending on your display, you may also need to change the screen rotation.
If the colors appear inverted, enable or disable the color inversion function.
Every display is slightly different, so you may need to experiment.
Display Animations
Lopaka can also generate animations.
Create the animation, then download it.
The exported file should be copied into "C:\Users\name\OneDrive\Documents\Arduino\libraries\Adafruit_GFX_Library" so the IDE can access it.
Then copy the generated animation code into your sketch.
No major modifications are required.
Result
At this point, the interface should be running on the display.
Images and animations can now be displayed directly from the code generated by Lopaka.
Final Result
The techniques shown in this tutorial are exactly what I used to create the interface below.
Instead of stopping at a simple image or animation, I combined everything to build a complete user interface for my own project.
Here is the current version of my design.
This project is still evolving, and I’ll continue sharing new features, improvements, and behind-the-scenes content as I develop it.
If you’d like to follow the journey and see what comes next, you can find me here:
YouTube: Ritchey Vision
Instagram: @ritchey_vision
TikTok: @ritchey_vision
Thank you for reading, and I hope this tutorial inspires you to build something amazing with Lopaka!