Hello!
Why are there parentheses around tempartatura?
Just why I forgot to pull out when I changed the code.
Finally, make the array be NULL terminated, by replacing the carriage return (the 6th value read) with a NULL.
When I changed from buf [6] to buf [7] the code passed to return the correct values with 2 houses before and 2 after the decimal point.
I have no idea what t is, but there is no other code that references t, so the value of t.hour and t.min do not change while you are reading the file, so the value of hora never changes. Therefore, this code belongs before the while loop that reads the file.
t=rtc.getTime();
This is necessary because I want is designed only to the printer and the current time.
Which draws a line by lighting up a series of pixels. If your goal is to light just one pixel, why is the drawPixel() function called in a loop?
The intent is to be drawn one pixel for each output value of buf.
Example to the values shown in the image above txt:
For temperature = 26.62, 26.69, 26.69, 26.69, 26.31
The function calls
myGLCD.drawPixel(X,Y);
grafico = (190-((26.62-22.5)*30)); // grafico =66
grafico = (190-((26.69-22.5)*30)); // grafico =64
grafico = (190-((26.69-22.5)*30)); // grafico =64
grafico = (190-((26.69-22.5)*30)); // grafico =64
grafico = (190-((26.31-22.5)*30)); // grafico =75
I want it to be drawn.
myGLCD.drawPixel(40,66);
myGLCD.drawPixel(41,64);
myGLCD.drawPixel(42,64);
myGLCD.drawPixel(43,64);
myGLCD.drawPixel(44,75);
.
.
.
Thank you.
Fernando Garcia