i plan to install dosing schedule in tft for schedule like that exist on the web,

is this complicated enough in code?, if may know can give sample code for pump 1, others can i duplicate .. that if you have time ..


thank you,
hope you can help.

if (file.open("HDP1.TXT", O_READ))
{
while ((n = file.read(buf, sizeof(buf))) > 0)
{
minutes = atoi(buf); // time in minutes
}
file.close();
}
int reviewDos1 = 0; // review for dos1
void reviewDos(boolean refreshAll = false)
{
int16_t n;
char buf[7];
int minuto = 0;
boolean match = false;
if (file.open("HDP1.TXT", O_READ))
{
while ((n = file.read(buf, sizeof(buf))) > 0)
{
minuto = atoi(buf);
reviewDos1 = minuto;
}
file.close();
}
}
setFont(SMALL, 255, 255, 255, 0, 0, 0);
myGLCD.printNumI(reviewDos1 % 60, 85, 22);
myGLCD.printNumI(reviewDos1 /60, 56, 22);
myGLCD.print(":", 75, 22);
boolean refreshAll = false
reviewDos1 = minuto;
while ((n = file.read(buf, sizeof(buf))) > 0)
setFont(SMALL, 255, 255, 255, 0, 0, 0);
myGLCD.printNumI(reviewDos1 % 60, 85, 22);
myGLCD.printNumI(reviewDos1 /60, 56, 22);
myGLCD.print(":", 75, 22);
Users viewing this topic: No registered users and 0 guests