Alx09

Untitled

Jun 20th, 2022 (edited)
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.98 KB | None | 0 0
  1. contor = 0;
  2. while(contor<strlen(sir))
  3.   {
  4.   if (PINA.0==0)
  5.   { dec();
  6.   sir[contor] = val;
  7.   }  
  8.   if (PINA.1==0)
  9.   { inc();
  10.   sir[contor]=val;
  11.   }
  12.   if (PINA.2==0)
  13.   {
  14.   contor++;
  15.   }  
  16.  while(PINA.2!=0){
  17.         lcd_gotoxy(0, 0);
  18.         sprintf(sir,"%d%d:%d%d:%d%d:%d%d", Hour/10, Hour%10, Min/10, Min%10, Sec/10, Sec%10, HSec/10, HSec%10);
  19.         lcd_puts(sir);
  20.         delay(1000);
  21.         sir[contor] = ' ';
  22.         lcd_gotoxy(0, 0);
  23.         lcd_puts(sir);
  24.         delay(1000);
  25. }
  26. }  
  27.   contor = 0;
  28.    while(contor < strlen(sir1))
  29.   {  
  30.           {
  31.   if (PINA.0==0)
  32.   { dec();
  33.   sir1[contor] = val;
  34.   }  
  35.   if (PINA.1==0)
  36.   { inc();
  37.   sir1[contor]=val;
  38.   }
  39.   if (PINA.2==0)
  40.   {
  41.   contor++;
  42.   }
  43.  while(PINA.2!=0){
  44.         lcd_gotoxy(0, 1);
  45.         sprintf(sir1,"%d%d:%d%d:%d", Date/10, Date%10, Month/10, Month%10, Year1);
  46.         lcd_puts(sir1);
  47.         delay(1000);
  48.         sir1[contor] = ' ';
  49.         lcd_gotoxy(0, 1);
  50.         lcd_puts(sir1);
  51.         delay(1000);
  52.   }  
  53.   }
  54.      
  55.      
  56.  
  57. }
Add Comment
Please, Sign In to add comment