unsigned long kk = 0;
unsigned long LCDRefreshTime = 0;
String s1 = "";
void setup() {
// put your setup code here, to run once:
kk = 0;
Serial.begin(9600);
LCDRefreshTime = millis();
}
void loop() {
// put your main code here, to run repeatedly:
kk++;
float f = 123.4567;
unsigned long currentMillis = millis();
unsigned long detal = 0;
if(currentMillis >= LCDRefreshTime){
detal = currentMillis - LCDRefreshTime;
}else{
detal = ~LCDRefreshTime + currentMillis - 1;
}
s1 = String(f) + "V";
if(detal > 1000)
{
Serial.println(kk);