How to display arduino tft shield lcd

I have a signal program from a potentiometer and I want to display it on the TFT Shield LCD according to the serial plotter I want to use MCUFriend library
I wonder how the program is friends

this is the code

int potentiometer;
int static_variable = 500;

void setup() {
Serial.begin(9600);
}

void loop() {
potentiometer = analogRead(A5);

Serial.print("Variable_1:");
Serial.print(potentiometer);
Serial.print(",");
Serial.print("Variable_2:");
Serial.println(static_variable);
}

I moved your topic to an appropriate forum category @ralisarira.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

whan you run your program and turn the potentiometer what is the serial monitor output?
improve your code presentation by using code tags, e.g. click < CODE > and paste you code where it says 'type or paste code here
what TFT shield do you have? what Arduino are you using?

here is the code i use

int potentiometer;
int static_variable = 500;

void setup() {
  Serial.begin(9600);
}

void loop() {
  potentiometer = analogRead(A1);

  Serial.print("Variable_1:");
  Serial.print(potentiometer);
  Serial.print(",");
  Serial.print("Variable_2:");
  Serial.println(static_variable);
}



and i use library

MCUFRIEND_kbv.h

and use the Arduino TFT LCD Touch Screen 2.4 shield

i want to display on lcd like this picture

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.