I have done similar to this, but a half-circle progress bar (180 degrees Arc), using one fixed and one rotating image where it covers the half-circle by rotation, however I have no idea for a full circle (360 degrees Arc) like this
It is possible, but it involves building a function that, based on trigonometry principles, allows you to draw successive straight lines around the center of a circle. Then it's a matter of converting the value to display into a percentage.
It is not a simple function, since it involves various parameters such as the position of the center of the circle, radius, length of the lines to be drawn and, most importantly, processing the value to be represented so that the movement of the dial is as natural as possible.
MCU: Core7XX (STM32F746) TFT: NHD 4.3" FT813
I'm going to look up the example I've been exploring, but if I remember correctly it's a work in progress with a lot of lines of trial and error. I'll see if I can extract the essentials and share it for you to look at and try to understand on your own.
Last Edit: Apr 24, 2022 9:55:59 GMT -8 by tftlcdcyg
Hi and wow, it looks as if you are getting on really well with the dazzler.
I thought I'd see if there was anyone on here with up to date projects as this forum seems very quiet.
I am using the Dazzler to display CNC information both graphically and via text to show what my home solar CNC machine is doing and have also gone through the trigonometry conundrum and had to re-learn it all to progress.