Need help with code -serial

PaulS:

akt_obvod++;

if(akt_obvod >= 6)
  akt_obvod = 0;

Should just be greater than, because in his code, if it's 5, it goes to 6. In your example, it would be set to 0

if (buttonStateTlacitkoA == HIGH) {      

digitalWrite(VstupA, HIGH);
  }
if (buttonStateTlacitkoA == LOW){
    digitalWrite(VstupA, LOW); 
  }

Or cut it down even further:

digitalWrite(VstupA, buttonStateTlacitkoA);