Advertisement
kris83

Czas

Jul 5th, 2021
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void Czas(void) {
  2. if (czas_e >= 1000) {
  3. sekundy++;
  4. czas_e = czas_e - 1000;
  5. }
  6. if (sekundy > 59) {
  7. sekundy = 0;
  8. minuty++;
  9. }
  10. if (minuty > 59) {
  11. minuty = 0;
  12. godz++;
  13. }
  14. strcpy(sekundy_str, u8x8_u8toa(sekundy, 2));
  15. strcpy(minuty_str, u8x8_u8toa(minuty, 2));
  16. strcpy(godz_str, u8x8_u8toa(godz, 2));
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement