Re: Zastavování cyklování programu podruhé
Napsal: 25 čer 2020, 12:37
České fórum pro všechny nadšence do Arduina a dalších technologií.
https://forum.hwkitchen.cz/
Kód: Vybrat vše
char array1[17] = " Schvaleno ";
byte tim = 100;
Kód: Vybrat vše
for (int positionCounter1 = 0; positionCounter1 < 16; positionCounter1++)
{
digitalWrite (LED_BLUE, HIGH);
lcd.print(array1[positionCounter1]); // Print a message to the LCD.
delay(tim); //wait for 250 microseconds
}
Kód: Vybrat vše
lcd.setCrusor (0,0);
lcd.print (F("S"));
delay (200);
lcd.setCursor (1,0);
lcd.print (F("CH"));
delay (200);
atd...
Kód: Vybrat vše
for(s=set_seconds;s<60;s++) //Seconds
{
printChar();
nebyl_tam = 0;
digitalWrite (LED_YELLOW, HIGH);
delay(secs-(millis()%1000));
digitalWrite (LED_YELLOW, LOW);
//pak mám kody na zmenu textu na LCD displeji v první řádku
if (text >= 0 && text < 6) {
lcd.clear ();
lcd.setCursor(0, 0);
lcd.print(F("SWver.: 03"));
Serial.println (F("SWver.: 03"));
}
if (text >= 6 && text < 11) {
lcd.clear ();
lcd.setCursor(0, 0);
//lcd.print (F(" "));
lcd.print(F("Zarizeni v chodu"));
Serial.println (F("Zarizeni v chodu"));
}
if (text >= 11 && text <= 15) {
lcd.clear ();
lcd.setCursor(0, 0);
//lcd.print (F(" "));
lcd.print (F("D: "));
Serial.print (F("D: "));
Serial.println (pocet_dnu);
lcd.setCursor (4,0);
lcd.print (pocet_dnu);
lcd.setCursor (8, 0);
lcd.print(h/10);
lcd.print(h%10);
lcd.print(F(":"));
lcd.print(m/10);
lcd.print(m%10);
lcd.print(":");
lcd.print(s/10);
lcd.print(s%10);
}
text++;
if (text > 15)
text = 0;
// a následují další kody..
Jestli není čertovo kopýtko v tomhle:
Kód: Vybrat vše
Syntax
remainder = dividend % divisor;
Parameters
remainder: variable. Allowed data types: int, float, double.
dividend: variable or constant. Allowed data types: int.
divisor: non zero variable or constant. Allowed data types: int.