User Manual
#include nextion.h //view more about the arduino_nextion_library here:https://github.com/i
tead/ITEADLIB_Arduino_Nextion
float getValue;
int value;
float oldvalue;
Nextion bar(j0);
Nextion percent(t0);
void setup() {
Serial.begin(9600);
}
void loop() {
getValue = analogRead(A0);
if (getValue==oldvalue)
{;}
else
{ oldvalue=getValue;
getValue=(getValue*100/1023);
value=getValue;
bar.val(value);
percent.txt(value);
}
delay(100);
}
Step by step image turorial of how to build the Nextion project for this demo HERE
(http://wiki.iteadstudio.com/Nextion_HMI_Solution#Progress_Bar).