01-04-2021, 10:09
A mi się wydaje że dubluje sekundy bo tak po kodzie widać...
int h1 = (timerValue % 60) / 10;
int h2 = (timerValue % 60) % 10;
int m1 = (timerValue / 60) / 10 ;
int m2 = (timerValue / 60) % 10 ;
int s1 = (timerValue % 60) / 10;
int s2 = (timerValue % 60) % 10;
Tu trzeba zmienić
int h1 =( timerValue / 3600) /10;
int h2 = (timerValue / 3600) % 10;
int m1 = (timerValue / 60) / 10 ;
int m2 = (timerValue / 60) % 10 ;
int s1 = (timerValue % 60) / 10;
int s2 = (timerValue % 60) % 10;
Czy jakoś tak bo z pamięci robię...
int h1 = (timerValue % 60) / 10;
int h2 = (timerValue % 60) % 10;
int m1 = (timerValue / 60) / 10 ;
int m2 = (timerValue / 60) % 10 ;
int s1 = (timerValue % 60) / 10;
int s2 = (timerValue % 60) % 10;
Tu trzeba zmienić
int h1 =( timerValue / 3600) /10;
int h2 = (timerValue / 3600) % 10;
int m1 = (timerValue / 60) / 10 ;
int m2 = (timerValue / 60) % 10 ;
int s1 = (timerValue % 60) / 10;
int s2 = (timerValue % 60) % 10;
Czy jakoś tak bo z pamięci robię...
Arduino zostało wymyślone po to, by robić dobrze jedną prostą rzecz – migać diodą.