UTFT SCREEN

Hello everybody , I have bought an utft 3.2 screen controled by a mega, to display information from my car. I am at the biggining of the project, It's not connected to the car for the moment.
So the mistake its like i want to display round per minute on the screen with a circle arc witch grew up with the rpm. But is it slow, not fluent, the arc fonction is to slow to display. For exemple with a fill rectangle i can create something fluent.

So have you some idea to make the arc more fluent??

Thanks for help, and sorry for my english, have a nice day. :slight_smile:

But is it slow, not fluent, the arc fonction is to slow to display.

Using some library that you did not share a link to, and some code you didn't share, drawing an arc, on some device that you did not share a link to, is slow.

How are we supposed to make it faster?

yes sorry, I don’t give anything… So I use a no official arduino card with a 3.2" tft screen, I’am using UTFT and UTFT_Geometry librairy, I’ve link a potentiometer on analog imput to simulate voltage from sensor and I want to make a digital manometer on the screen. But if the value of the sensor change a lot the display is not fluent.

#include <UTFT.h>
#include <UTFT_Geometry.h>
#include <avr/pgmspace.h>

int trminPin = 0;
UTFT myGLCD(CTE32HR, 38, 39, 40, 41);
UTFT_Geometry geo(&myGLCD);

void setup() {
myGLCD.InitLCD();
myGLCD.setContrast(40);
myGLCD.setBrightness(15);
myGLCD.clrScr();
myGLCD.setBackColor(0, 0, 0);
geo.drawArc(150, 150, 135, -180, 90, 4);
geo.drawArc(150, 150, 135, -182, -178, 16); // scale 1 of manometer
geo.drawArc(150, 150, 135, -132, -128, 16); // scale 2
geo.drawArc(150, 150, 135, -72, -68, 16); // scale 3
geo.drawArc(150, 150, 135, -12, -8, 16); // scale 4
geo.drawArc(150, 150, 135, 48, 52, 16); // scale 5

}

void loop() {

myGLCD.setColor(VGA_BLUE);
int regime = analogRead(trminPin);
int t = (regime*0.264)-180; //t=90 when regime=1023

geo.drawArc(150,150,120,-180,t,15); // arc of display

myGLCD.setColor(VGA_BLACK);
geo.drawArc(150,150,120,t,90,15); // arc or clear

}

It’s not the right code, I unfortunately erase it. It’s not beautiful but idea is there. So when i change Analog 0 pin voltage the arc grew proportionaly but not fluently. And if you just do a fill rectangle with horizontal scale witch also grew proportionaly with voltage, it works good…

So can i do something to have a fluent arc moving??

Thanks for your help, sorry for my english, and have a nice day :slight_smile: