samavr
Junior Member

Posts: 16
|
Post by samavr on Apr 23, 2022 7:34:17 GMT -8
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
|
|
|
Post by tftlcdcyg on Apr 24, 2022 9:54:43 GMT -8
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.
|
|
dev255
Junior Member

Posts: 16
|
Post by dev255 on May 5, 2022 3:00:12 GMT -8
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. My page on this forum is here if you are interested: gameduino2.proboards.com/thread/1065/solar-powered-display-connected-teensyAlthough just wanted to say hi to another person on here. Kind regards, Neil.
|
|