You print different variables within loop() and biti_hlavni().
Whenever you write
int pocet
you create another variable, distinct from other pocets. Remove the "int" to address an already existing variable.
You print different variables within loop() and biti_hlavni().
Whenever you write
int pocet
you create another variable, distinct from other pocets. Remove the "int" to address an already existing variable.